I hereby claim:
- I am frntn on github.
- I am frntn (https://keybase.io/frntn) on keybase.
- I have a public key whose fingerprint is CE46 FE45 3E9E 935C A68C 81D0 D385 289F A809 234F
To claim this, I am signing this object:
| hardstatus alwayslastline | |
| hardstatus string '%{Yk}%-w%{.Yk}%n %t%{-}%+w %=%{.w} %{kY}%C' | |
| shell -$SHELL | |
| deflogin on | |
| backtick 1 5 5 uptime | |
| bind f eval "caption splitonly" "hardstatus ignore" | |
| bind F eval "caption always" "hardstatus alwayslastline" | |
| #defscrollback 12000 | |
| #bind ^j focus down |
| #!/bin/bash | |
| function outerr { | |
| echo "this is on standard ouput (blank color)" | |
| echo "but this one is on error ouput (red color)" >&2 | |
| } | |
| exec 3>&1 | |
| outerr 2>&1 >&3 | sed -e 's/^/'$(printf "\033[1;31m")'/' -e 's/$/'$(printf "\033[39m")'/' | |
| exec 3>&- |
| root@precise32:~# curl -L http://install.ohmyz.sh | sh | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 100 104 100 104 0 0 159 0 --:--:-- --:--:-- --:--:-- 650 | |
| 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 | |
| 100 1779 100 1779 0 0 1119 0 0:00:01 0:00:01 --:--:-- 42357 | |
| Cloning Oh My Zsh... | |
| Cloning into '/root/.oh-my-zsh'... | |
| remote: Reusing existing pack: 10071, done. | |
| Receiving objects: 100% (10071/10071), 2.04 MiB | 500 KiB/s, done. |
| gcloud auth | |
| gcloud auth activate-refresh-token | |
| gcloud auth activate-service-account | |
| gcloud auth git-helper | |
| gcloud auth list | |
| gcloud auth login | |
| gcloud auth print-access-token | |
| gcloud auth print-refresh-token | |
| gcloud auth revoke | |
| gcloud components |
| <!-- http POST data with cli --> | |
| { | |
| "HostConfig": { | |
| "RestartPolicy": { | |
| "MaximumRetryCount": 0, | |
| "Name": "" | |
| }, | |
| "NetworkMode": "bridge", | |
| "SecurityOpt": null, | |
| "VolumesFrom": null, |
| azure | |
| account | |
| list [options] #List the imported subscriptions | |
| show [options] [subscriptionNameOrId] #Show details about a subscription | |
| set [options] <subscriptionNameOrId> #Set the current subscription | |
| clear [options] #Remove a subscription or environment, or clear all of the stored account and environment info | |
| import [options] <file> #Import a publishsettings file or certificate for your account | |
| download [options] #Launch a browser to download your publishsettings file | |
| env... #Commands to manage your account environment |
| # clone repo and extract all DOCKER_* environment variables used in the code | |
| git clone https://github.com/docker/docker.git | |
| cd docker | |
| grep -rn "os.Getenv" . | sed -r 's/([^:]*:[0-9]*:).*os.Getenv\(([^\)]*)\).*/\2/' | grep DOCKER_ | sort -u | |
| # remove all documented DOCKER_* envrionemnt variables (https://docs.docker.com/engine/reference/commandline/cli/#environment-variables) | |
| "DOCKER_BINARY" | |
| "DOCKER_CONTAINER_NAT" |
I hereby claim:
To claim this, I am signing this object:
| # Pull all | |
| git clone [email protected]:frntn/sample.git | |
| cd sample/ | |
| git checkout --detach | |
| git fetch origin '+refs/heads/*:refs/heads/*' | |
| # Push all | |
| git remote add alternate [email protected]:frntn/sample.git | |
| git push -u alternate --all | |
| git push -u alternate --tags |
| #!/bin/bash | |
| cd "$(dirname "$0")" | |
| GIT_KEYS="gitkey_*" # my git keys are always loaded but agent forwarding is limited specific Hosts | |
| SSH_KEYS="" # my ssh keys are never loaded | |
| SSH_AGENT_PID=1 # `kill -0 1` will always fail for non-root | |
| SSH_AGENT_ENV=".agent_env" | |
| [ -f "${SSH_AGENT_ENV}" ] && source "${SSH_AGENT_ENV}" > /dev/null # load latest known agent pid | |
| kill -0 $SSH_AGENT_PID 2>/dev/null && return # and stop here if still running (do not 'exit' because file may be source'd) |