I hereby claim:
- I am ffledgling on github.
- I am ffledgling (https://keybase.io/ffledgling) on keybase.
- I have a public key ASDIDtlKG35WXAbfBJu1XkQ3jOFrflk2RkZleXRSrVMaeQo
To claim this, I am signing this object:
| #define PRINT_MAP(M) for(auto m: M) cout << m.first << "," << m.second << " "; cout << endl; |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # Simple prompt addon to display kubernetes ns and cluster context | |
| # To use, add the following in your .bashrc: | |
| # ``` | |
| # source $PATH_TO_FILE/kube-prompt.sh | |
| # KUBE_PROMPT_COLORS=y | |
| # PS1='{$(__kube_ps1)}'$PS1 | |
| # ``` |
| #!/bin/bash | |
| sudo apt update -y | |
| sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo apt-key fingerprint 0EBFCD88 | |
| sudo add-apt-repository \ | |
| "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
| $(lsb_release -cs) \ | |
| stable" |
| # Custom prompt for debian/ubuntu AWS instances the default is garbage | |
| # Works best with dark terminals, tested often with solarized dark | |
| # Define colors | |
| black="$(tput setaf 0)" | |
| red="$(tput setaf 1)" | |
| green="$(tput setaf 2)" | |
| yellow="$(tput setaf 3)" | |
| blue="$(tput setaf 4)" | |
| magenta="$(tput setaf 5)" |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: debug-pod | |
| spec: | |
| hostNetwork: true | |
| nodeSelector: | |
| kubernetes.io/hostname: kubenode.example.com | |
| containers: | |
| - name: myshell |
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: echo | |
| spec: | |
| template: | |
| metadata: | |
| labels: | |
| app: echo | |
| spec: |
| #!/bin/bash | |
| # Can be sourced, or just copy the function you need | |
| # Index | |
| # * openremotefile REMOTE FILENAME | |
| # : Downloads a file from the remote and opens it for viewing on your local machine. Useful when no X/VNC on remote. | |
| openremotefile() { |
Download and install a custom version of libvirt/virsh
CUSTOM_ROOT=/home/ajaisingh/n4/nested-vm/
mkdir -p $CUSTOM_ROOT/src
wget https://libvirt.org/sources/libvirt-4.0.0.tar.xz
# Compiling a new version of libvirt (v4.0.0), requires libnl-devel, libnl-route, libyajl-devel, libdevmapper-devel
sudo apt-get install libnl-route-3-dev