Example for Kubernetes DebugContainers
$ git clone https://github.com/kubernetes/kubernetes
# Increase search limit and only print commit IDs
$ git -c diff.renameLimit=99999 log -SDebugContainers --pretty=format:"%h"
# Get latest release for PWD | |
https://github.com/franela/docker-machine-driver-pwd | |
# Unzip, and make sure the PWD driver for the OS is in $PATH | |
# Start a PWD session | |
http://labs.play-with-docker.com/ | |
# Note the PWD ID (full http string) |
**Install Theme** | |
Powerlevel 9k | |
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k (make sure to have Powerline fonts installed first, this method works for oh-my-zsh only) | |
Details and other installation options: https://github.com/bhilburn/powerlevel9k#installation | |
**Edit .zshrc** | |
ZSH_THEME="powerlevel9k/powerlevel9k" | |
DEFAULT_USER=$USER | |
POWERLEVEL9K_PROMPT_ON_NEWLINE=true | |
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=" --" |
close VSCode and gocode close | |
go get -u github.com/rogpeppe/godef | |
go get -u github.com/nsf/gocode |
man zshexpn | |
# echo hellow world | |
^hellow^hello | |
> echo hello world | |
(only works on last command) | |
# replace first arg string in a history command | |
!353:1:s^hello^hi |
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
s := string("\xF0\x9F\x98\x85") | |
b := []byte("\xF0\x9F\x8D\xBB") | |
fmt.Println(s,string(b)) |
# Asuming prefix is C-b and change to C-a | |
C-b + : | |
set-option -g prefix C-a |
Example for Kubernetes DebugContainers
$ git clone https://github.com/kubernetes/kubernetes
# Increase search limit and only print commit IDs
$ git -c diff.renameLimit=99999 log -SDebugContainers --pretty=format:"%h"
https://github.com/ashleyschuett/kubeconfig-cleanup/issues/5 |
youtube-dl https://player.vimeo.com/video/299186608 --referer https://skillsmatter.com/skillscasts/12115-keynote-not-just-events-developing-asynchronous-microservices