>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found
/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
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
| #!/usr/bin/env python | |
| """ Print all of the clone-urls for a GitHub organization. | |
| It requires the pygithub3 module, which you can install like this:: | |
| $ sudo yum -y install python-virtualenv | |
| $ mkdir scratch | |
| $ cd scratch | |
| $ virtualenv my-virtualenv |
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
| # install Homebrew if you don't already have it: http://mxcl.github.io/homebrew/ | |
| # install nano from homebrew | |
| brew install nano | |
| # update your nanorc file with the contents of the nanorc file below | |
| nano ~/.nanorc | |
| # re-open your terminal and you'll have syntax highlighting |
Principles of Adult Behavior
- Be patient. No matter what.
- Don’t badmouth: Assign responsibility, not blame. Say nothing of another you wouldn’t say to him.
- Never assume the motives of others are, to them, less noble than yours are to you.
- Expand your sense of the possible.
- Don’t trouble yourself with matters you truly cannot change.
- Expect no more of anyone than you can deliver yourself.
- Tolerate ambiguity.
- Laugh at yourself frequently.
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
| #!/usr/bin/env bash | |
| # -*- coding: utf-8 -*- | |
| # use t CLI to fetch follower count and other stats from twitter | |
| # save results to a csv file | |
| if [ -z "$1" ]; then | |
| echo "no username specified" >&2 | |
| exit 1 | |
| else |
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
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
- On the master node:
Edit the vsphere.conf file within the
kubeadm-master.shto match your environment. Copykubeadm-master.shto the master node:
sudo chmod u+x kubeadm-master.sh
sudo ./kubeadm-master.sh
- On each worker node copy
kubeadm-worker.sh:
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
| eXtreme Go Horse (XGH) Process | |
| Source: http://gohorseprocess.wordpress.com | |
| 1. I think therefore it's not XGH. | |
| In XGH you don't think, you do the first thing that comes to your mind. There's not a second option as the first one is faster. | |
| 2. There are 3 ways of solving a problem: the right way, the wrong way and the XGH way which is exactly like the wrong one but faster. | |
| XGH is faster than any development process you know (see Axiom 14). |
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
| #!/bin/bash | |
| export TERM=xterm-color | |
| export CLICOLOR=1 | |
| export GREP_OPTIONS='--color=auto' | |
| # export LSCOLORS=Exfxcxdxbxegedabagacad | |
| export LSCOLORS=gxfxcxdxbxegedabagacad # Dark lscolor scheme | |
| # Don't put duplicate lines in your bash history | |
| export HISTCONTROL=ignoredups | |
| # increase history limit (100KB or 5K entries) | |
| export HISTFILESIZE=100000 |