This file contains 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 | |
# swap virt modules for ubuntu 14 LTS | |
VBOX_SUBMODS="vboxnetadp vboxnetflt vboxpci" | |
VBOX_MOD_DIR="/var/lib/dkms/virtualbox/$(vboxmanage --version | tail -n 1 | awk -F'_' '{print $1}')/build" | |
KVM_MOD_CPU=$([[ $(lscpu | grep -ic 'intel') -gt 0 ]] && echo "intel" || echo "amd") | |
KVM_MOD_DIR="/lib/modules/$(uname -r)/kernel/arch/x86/kvm" | |
VBOX_ON=$(sudo /sbin/lsmod | grep -c vbox) |
This file contains 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
call plug#begin('~/.vim/plugged') | |
Plug 'vim-scripts/CycleColor' | |
Plug 'flazz/vim-colorschemes' | |
Plug 'fatih/vim-go', { 'for': 'go' } | |
Plug 'derekwyatt/vim-scala', { 'for': 'scala' } | |
Plug 'jimenezrick/vimerl', { 'for': 'erlang' } | |
Plug 'leafgarland/typescript-vim', { 'for': 'typescript' } |
This file contains 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 | |
set -x | |
# only for ubuntu 14.04 LTS | |
start_install() { | |
SCALA_VERSION=${SCALA_VERSION:-2.11.4} | |
ACTIVATOR_VERSION=${ACTIVATOR_VERSION:-1.3.6} | |
CLANG_VERSION=${CLANG_VERSION:-3.6} | |
GO_VERSION=${GO_VERSION:-1.5.1} |
This file contains 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
export PS1="\[\e[35;1m\]\u\[\e[0m\]@\[\e[32;1m\]\h\[\e[0m\]:\[\e[37m\][\w]\[\e[35;1m\] \n\[\e[31;1m\]\\$ \[\e[0m\]" |
This file contains 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
(while [[ -f $FILE ]]; do sleep 1; done; for i in {1..10}; do echo -en '\a'; sleep .1; done) |
This file contains 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 | |
# | |
# INSTALL: | |
# chmod +x pre-push | |
# mv -i pre-push .git/hooks/pre-push | |
warning=false | |
alias grep='grep --color=auto' | |
LINTS="TODO |
This file contains 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/sh | |
# TODO | |
# findGitDir() { | |
# } | |
install() { | |
set +x | |
curl https://gist.github.com/waiteb3/b694eea1e9b470bee1ee -o .git/hooks/pre-push | |
chmod +x .git/hooks/pre-push |
This file contains 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
// JavaScript has 6 falsy values (that evaluate to false when coerced to a boolean) | |
// false | |
// 0 | |
// "" | |
// null | |
// undefined | |
// NaN | |
// Using != null, we can safely check against null and undefined rather than multiple underscore functions, typeofs, etc |
This file contains 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
function name1() { | |
return 1 | |
} | |
const name2 = new Function(`return function name2() { | |
return 1 | |
}`)() | |
let start1 = 0, end1 = 0; | |
let start2 = 0, end2 = 0; |
This file contains 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: ssh-remote | |
namespace: kube-system | |
spec: | |
type: NodePort | |
ports: | |
- nodePort: 32222 | |
port: 32222 |
OlderNewer