PATH=$PATH:~/.local/bin
source /home/tao/.local/bin/virtualenvwrapper.sh
pip install virtualenvwrapper --user #make everything locally!!
vim, zsh is very hard to install locally without sudo permission.
| { | |
| "extends": "eslint-config-airbnb", | |
| "parser": "babel-eslint", | |
| "env": { | |
| "browser": true, | |
| "node": true, | |
| "mocha": true | |
| }, | |
| "rules": { | |
| "react/jsx-boolean-value": 0, |
| // Place your settings in this file to overwrite the default settings | |
| { | |
| "editor.fontSize": 15, | |
| "editor.fontFamily": "Consolas", | |
| "editor.tabSize": 2, | |
| "editor.wordWrapColumn": 80, | |
| "editor.fontLigatures": true, | |
| "editor.snippetSuggestions": "top", | |
| "editor.minimap.enabled": true, | |
| "files.exclude": { |
| const fs = require('fs'); | |
| const { promisify } = require('util'); | |
| import _ from 'lodash'; | |
| const promisifiedWriteFile = promisify(fs.writeFile); | |
| const main = [ | |
| { |
| xcode-select --install # Install Command Line Tools if you haven't already. | |
| sudo xcode-select --switch /Library/Developer/CommandLineTools # Enable command line tools |
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"
git config --global alias.lol "log --graph --decorate --pretty=oneline --abbrev-commit --all"
git config --global alias.mylog "log --pretty=format:'%h %s [%an]' --graph"
To check that they've been added correctly, first run git config --list. You should see something like this in the midst of all your other configuration:
alias.hist=log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short
| # Copy the last commit in the current branch, or if passed as a parameter, a different branch. | |
| # | |
| # See the blog post documenting the surprisingly lengthly process of building this here: | |
| # https://macarthur.me/posts/building-a-shell-function-to-copy-latest-commit-sha | |
| function clc { | |
| COLOR_GREEN="\033[0;32m" | |
| COLOR_RESET="\033[0m" | |
| [[ -z $1 ]] && BRANCH=$(git rev-parse --abbrev-ref HEAD) || BRANCH=$1 | |
| LAST_COMMIT_SHA=$(git rev-parse $BRANCH | tail -n 1) |
| NAMESPACE=my-namespace | |
| cat <<EOF | kubectl apply -n $NAMESPACE -f - | |
| apiVersion: networking.k8s.io/v1 | |
| kind: NetworkPolicy | |
| metadata: | |
| name: debug | |
| spec: | |
| podSelector: | |
| matchLabels: | |
| app: debug |