{
"body": {
"client": {
"name": "keybase.io node.js client",
"version": "0.7.3"
},
"key": {
"fingerprint": "b06fb3d84098936d4f8e283e3f856f90c9051fde",
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.saturngod.net/articles/emoji-with-mysql/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias docker-bash-api='docker exec -it $(docker ps | grep api | awk '\''{print $1}'\'') bash' | |
alias docker-bash-www='docker exec -it $(docker ps | grep www | awk '\''{print $1}'\'') bash' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker rm $(docker ps -a -q) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List docker containers and their IPs | |
docker inspect -f '{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run GrumPHP via Docker container instead of local env. | |
-- .git/hooks/pre-commit | |
(cd "./" && printf "%s\n" "${DIFF}" | docker-compose -f docker-compose.local.yml run api vendor/phpro/grumphp/bin/grumphp git:pre-commit --skip-success-output) | |
-- .git/hooks/commit-msg | |
(cd "./" && printf "%s\n" "${DIFF}" | docker-compose -f docker-compose.local.yml run api vendor/phpro/grumphp/bin/grumphp git:commit-msg "--git-user=$GIT_USER" "--git-email=$GIT_EMAIL" "$COMMIT_MSG_FILE") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker rmi $(docker images | grep "^<none>" | awk "{print $3}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate | |
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat | |
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=default | |
cp = cherry-pick | |
s = status | |
cl = clone | |
c = commit -m | |
co = checkout | |
cob = checkout -b |