Skip to content

Instantly share code, notes, and snippets.

@dephiros
dephiros / package.json
Created May 31, 2019 15:44
Webpack + Sapper + Tailwind
{
"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",
@dephiros
dephiros / openAll.md
Last active April 17, 2018 18:12
pinboard open all button
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");}

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:

@dephiros
dephiros / tmux.md
Last active May 3, 2016 16:25
tmux

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)
# 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