Skip to content

Instantly share code, notes, and snippets.

@dopey
dopey / kibana-deb.sh
Last active August 29, 2015 14:12 — forked from nbrownus/kibana-deb.sh
# Run this in a path you don't care about, things may get deleted!
VERSION="4.1.1"
BUILD="betable1"
set -e -x
ORIGPWD="$(pwd)"
cd "$(mktemp -d)"
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM
@dopey
dopey / ngrok-deb.sh
Created February 26, 2015 02:24
Ngrok deb
# Run this in a path you don't care about, things may get deleted!
VERSION="1.0"
BUILD="betable1"
set -e -x
ORIGPWD="$(pwd)"
TMP="$(mktemp -d)"
cd $TMP
trap "rm -rf \"$TMP\"" EXIT INT QUIT TERM
@dopey
dopey / certified_deb.sh
Created July 8, 2015 19:25
Certified Deb packager
#!/bin/sh
VERSION="1.0.2"
BUILD="betable1"
set -e -x
ORIGPWD="$(pwd)"
cd "$(mktemp -d)"
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM
@dopey
dopey / httperf_deb.sh
Last active August 29, 2015 14:24
httperf deb packager
#!/bin/sh
VERSION="0.9.0"
BUILD="betable2"
set -e -x
ORIGPWD="$(pwd)"
cd "$(mktemp -d)"
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM
@dopey
dopey / grafana-deb.sh
Created July 10, 2015 02:00
grafana deb packager
# Run this in a path you don't care about, things may get deleted!
VERSION="1.9.1"
BUILD="betable3"
set -e -x
ORIGPWD="$(pwd)"
cd "$(mktemp -d)"
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM
#!/bin/sh
VERSION="0.7.2"
BUILD="betable2"
COMMIT=$1
output=${1-"88e4c98"}
set -e -x
DIRNAME="$(cd "$(dirname "$0")" && pwd)"
#!/bin/sh
VERSION="8u72"
BUILD="betable1"
set -e -x
# Keep track of the original working directory.
OLDESTPWD="$PWD"
@dopey
dopey / haproxy-deb.sh
Created February 10, 2016 01:34 — forked from nbrownus/haproxy-deb.sh
Builds a super basic haproxy deb, no extra crap
#!/bin/sh
VERSION="1.5.8"
BUILD="betable1"
set -e -x
DIRNAME="$(cd "$(dirname "$0")" && pwd)"
OLDESTPWD="$PWD"
@dopey
dopey / main.go
Last active June 26, 2024 13:38 — forked from denisbrodbeck/main.go
How to generate secure random strings in golang with crypto/rand.
package main
import (
"crypto/rand"
"encoding/base64"
"fmt"
"io"
"math/big"
)
@dopey
dopey / submodules.md
Created January 25, 2018 02:32 — forked from manasthakur/submodules.md
Using git submodules to version-control Vim plugins

Using git-submodules to version-control Vim plugins

If you work across many computers (and even otherwise!), it's a good idea to keep a copy of your setup on the cloud, preferably in a git repository, and clone it on another machine when you need. Thus, you should keep the .vim directory along with your .vimrc version-controlled.

But when you have plugins installed inside .vim/bundle (if you use pathogen), or inside .vim/pack (if you use Vim 8's packages), keeping a copy where you want to be able to update the plugins (individual git repositories), as well as your vim-configuration as a whole, requires you to use git submodules.

Creating the repository

Initialize a git repository inside your .vim directory, add everything (including the vimrc), commit and push to a GitHub/BitBucket/GitLab repository:

cd ~/.vim