Skip to content

Instantly share code, notes, and snippets.

Piet van Zoen pietvanzoen

Block or report user

Report or block pietvanzoen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pietvanzoen
pietvanzoen / README.md
Last active Dec 1, 2018
A tool for cloning and automatically organising local git repos.
View README.md

Git get

Like go get, git-get organizes repos in directories according to 1) host, 2) user, and 3) project name.

Example

git get git@github.com:pietvanzoen/dotfiles.git will clone the project into $GIT_PATH/github.com/pietvanzoen/dotfiles.

Installation

@pietvanzoen
pietvanzoen / .commento_env
Last active May 1, 2018
Setting up Commento as a systemd service
View .commento_env
COMMENTO_PORT=9000
COMMENTO_DATABASE_FILE=/var/commento/commento.db
AKISMET_KEY=<your-akismet-key>
@pietvanzoen
pietvanzoen / node_dev_list.sh
Last active Nov 10, 2017
Create a list of all production dependency npm urls for the current node project.
View node_dev_list.sh
#!/bin/bash
# Returns a list of all unique production dependencies for the current node project.
if [[ ! -f package.json ]]; then
echo "Not a node project"
exit 1
fi
npm list --prod |
head -n -2 |
@pietvanzoen
pietvanzoen / README.md
Last active Aug 31, 2017
Git annotated tag release script
View README.md

Git annotated tag release script

Install

cd <where-you-want-to-run-your-script-from>
curl -O https://gist.githubusercontent.com/pietvanzoen/40dd1bb43bcf49223532a4beb941c384/raw/git-release.sh
chmod +x git-release.sh
View keybase.md

Keybase proof

I hereby claim:

  • I am pietvanzoen on github.
  • I am pietvanzoen (https://keybase.io/pietvanzoen) on keybase.
  • I have a public key ASBpau9eiT0n4A_JsFaaI7N3YxFkXl65sVihMr03vSZd8Qo

To claim this, I am signing this object:

@pietvanzoen
pietvanzoen / circle.yml
Last active Oct 31, 2016
Using Yarn in CircleCI
View circle.yml
dependencies:
pre:
- ./install-yarn.sh
cache_directories:
- ~/.yarn
- ~/.yarn-cache
override:
- yarn install
View Default (OSX).sublime-keymap
[
// Simplify command pallet
{
"keys": ["super+p"], "command": "show_overlay",
"args": {"overlay": "command_palette"} ,
"context": [ { "key": "overlay_visible", "operand": false }
},
// Join lines
View Preferences.sublime-settings
{
"additional_path_items":
[
"/usr/local/Cellar/git/2.1.2/libexec/git-core"
],
"animation_enabled": false,
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
View slack_monokia_theme
#222222,#2F2F2F,#F92772,#FFFFFF,#A6E22D,#FFFFFF,#66D9EF,#BE84F2
@pietvanzoen
pietvanzoen / list-git-branches.sh
Last active Aug 29, 2015
List current branch in multiple repos and show status. Optionally pass `-f` or `--fetch` to run a fetch on each branch first.
View list-git-branches.sh
#!/bin/bash
# root repo folder
REPOROOT="$HOME/Projects"
# folder search glob
REPOGLOB="cozy[-_]*"
OUTDATA=""
fetch_msg="Fetching.."
You can’t perform that action at this time.