Skip to content

Instantly share code, notes, and snippets.

View tmux.md

SSH without executing config file

ssh -t dev 'zsh -f'

Start tmux on login

test -z "$TMUX" && (tmux attach -t anguyen || tmux new -s anguyen)
View keybase.md

Keybase proof

I hereby claim:

  • I am dephiros on github.
  • I am dephiros (https://keybase.io/dephiros) on keybase.
  • I have a public key whose fingerprint is BA25 2890 D8AB BBFA 2663 AC09 8539 1705 6DA2 B254

To claim this, I am signing this object:

View clean_up_merged_git_branch.sh
# http://stevenharman.net/git-clean-delete-already-merged-branches
# delete branch that is already merge to head
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
# delete git branch that is already merge to master
git branch --merged master | grep -v "\* master" | xargs -n 1 git branch -d
# delete git branch that is already merge to origin master
git branch --merged origin/master | grep -v "\*" | xargs -n 1 git branch -d
@dephiros
dephiros / openAll.md
Last active Apr 17, 2018
pinboard open all button
View openAll.md
javascript:if (window.location.host === "pinboard.in") {Array.prototype.slice.call(document.querySelectorAll("#bookmarks a.bookmark_title")).forEach(function(link) { window.open(link.href, "_blank"); }); } else {alert("only work in pinboard");}
@dephiros
dephiros / package.json
Created May 31, 2019
Webpack + Sapper + Tailwind
View package.json
{
"scripts": {
"dev": "sapper dev",
"format:check": "prettier --check './**/*.{js,ts,css,html,svelte}'",
"format": "prettier --write './**/*.{js,ts,css,html,svelte}'",
"build": "NODE_ENV=production sapper build",
"export": "NODE_ENV=production sapper export",
"start": "node __sapper__/build",
"cy:run": "cypress run",