Run two Claude Code accounts simultaneously on macOS without re-authenticating by using separate configuration directories.
- Create Separate Config Directories
mkdir ~/.claude-account1 mkdir ~/.claude-account2
| name: CI | |
| on: [push] | |
| jobs: | |
| tslint: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| job: [0, 1, 2, 3, 4] |
If you're coming to this page in search of jq related AWS commands, but come from xpath or e4x (jsonpath) domains, then you may find this article helpful: https://github.com/stedolan/jq/wiki/For-JSONPath-users.
Another good learning site: https://shapeshed.com/jq-json/
The jq playground (live testing): https://jqplay.org
A lovely tutorial: https://programminghistorian.org/lessons/json-and-jq
| myip=$(dig +short myip.opendns.com @resolver1.opendns.com) # this will fetch my current IP | |
| #myip=$(curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//') | |
| mkdir -p "./tmp" | |
| touch "./tmp/old_ip.txt" | |
| removing_ip=$(cat ./tmp/old_ip.txt) | |
| adding_ip=$myip | |
| echo $adding_ip > ./tmp/old_ip.txt |
| #!/usr/bin/env bash | |
| # | |
| # Add the security groups you want to allow the current IP address | |
| # SSH access to by updating the "groups" array below. The user | |
| # running the script must have the aws-cli installed and configured. | |
| # Their credentials will be used for API calls, so access should be | |
| # controlled that way. | |
| # | |
| # Note: It's a good idea to clean up these security groups regularly. | |
| # I prefer to have a security group that I can remove all ingress rules |
Create a policy like this, substituting your AWS account number, then attach it to all groups and roles. It will prevent deletion of RDS instances containing the string "prod" in their name.
Note: This is intended to prevent accidental deletion, and is easily sidestepped.
A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
| otto | |
| https://ottoproject.io/ | |
| https://github.com/hashicorp/otto | |
| deis | |
| https://deis.com/ | |
| https://github.com/deis/deis | |
| has 5 full-time devs | |
| flynn |
| #!/usr/bin/env bash | |
| NGINX_VER=1.6.3 | |
| HEADERS_MORE_VER=0.28 | |
| PWD=`pwd` | |
| cd /usr/local/src | |
| # get nginx source. | |
| wget http://nginx.org/download/nginx-${NGINX_VER}.tar.gz |
| #!/bin/bash | |
| apt-get update | |
| apt-get -y upgrade | |
| # Install s3cmd to get the validation.pem | |
| pip install python-dateutil | |
| cd /tmp | |
| wget https://github.com/s3tools/s3cmd/releases/download/v1.5.2/s3cmd-1.5.2.tar.gz | |
| tar -xf s3cmd-1.5.2.tar.gz |