Skip to content

Instantly share code, notes, and snippets.

View pietvanzoen's full-sized avatar

Piet van Zoen pietvanzoen

View GitHub Profile
@pietvanzoen
pietvanzoen / README.md
Last active December 1, 2018 08:07
A tool for cloning and automatically organising local git repos.

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 June 11, 2020 13:44
Setting up Commento as a systemd service
COMMENTO_PORT=9000
COMMENTO_DATABASE_FILE=/var/commento/commento.db
AKISMET_KEY=<your-akismet-key>
@pietvanzoen
pietvanzoen / node_dev_list.sh
Last active November 10, 2017 13:39
Create a list of all production dependency npm urls for the current node project.
#!/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 August 31, 2017 12:10
Git annotated tag release script

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

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 October 31, 2016 21:51
Using Yarn in CircleCI
dependencies:
pre:
- ./install-yarn.sh
cache_directories:
- ~/.yarn
- ~/.yarn-cache
override:
- yarn install
@pietvanzoen
pietvanzoen / Default (OSX).sublime-keymap
Created February 5, 2015 23:00
Piet's sublime keybindings.
[
// Simplify command pallet
{
"keys": ["super+p"], "command": "show_overlay",
"args": {"overlay": "command_palette"} ,
"context": [ { "key": "overlay_visible", "operand": false }
},
// Join lines
@pietvanzoen
pietvanzoen / Preferences.sublime-settings
Created February 5, 2015 22:51
Piet's sublime settings.
{
"additional_path_items":
[
"/usr/local/Cellar/git/2.1.2/libexec/git-core"
],
"animation_enabled": false,
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
@pietvanzoen
pietvanzoen / slack_monokia_theme
Created August 8, 2014 20:33
Monokia theme for slack
#222222,#2F2F2F,#F92772,#FFFFFF,#A6E22D,#FFFFFF,#66D9EF,#BE84F2
@pietvanzoen
pietvanzoen / list-git-branches.sh
Last active August 29, 2015 14:02
List current branch in multiple repos and show status. Optionally pass `-f` or `--fetch` to run a fetch on each branch first.
#!/bin/bash
# root repo folder
REPOROOT="$HOME/Projects"
# folder search glob
REPOGLOB="cozy[-_]*"
OUTDATA=""
fetch_msg="Fetching.."