Skip to content

Instantly share code, notes, and snippets.

@steeef
steeef / download_and_bootstrap.sh
Last active Apr 21, 2018
bootstrap my dotfiles
View download_and_bootstrap.sh
#!/bin/bash
#
# to install:
# curl -sL https://gist.githubusercontent.com/steeef/2cf6345055bdec2c9b8781267e8299ab/raw/download_and_bootstrap.sh | bash -ex
REPO=https://github.com/steeef/dotfiles
LOCALDIR=${HOME}/.dotfiles
if command -v git >/dev/null 2>&1; then
mkdir -p ${LOCALDIR}
@steeef
steeef / userdata
Created Sep 20, 2016
stp5net coreOS userdata
View userdata
#cloud-config
---
coreos:
etcd2:
name: core0
advertise-client-urls: http://127.0.0.1:2379
initial-advertise-peer-urls: http://127.0.0.1:2380
initial-cluster: core0=http://127.0.0.1:2380
fleet:
View keybase.md

Keybase proof

I hereby claim:

  • I am steeef on github.
  • I am steeef (https://keybase.io/steeef) on keybase.
  • I have a public key whose fingerprint is D474 2F1D B8B4 4D91 B829 CD19 70BD B78A 3362 F2EE

To claim this, I am signing this object:

@steeef
steeef / osxsetup.md
Last active Nov 18, 2015
Setup for new OS X machine
View osxsetup.md

Homebrew

http://brew.sh/

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew install

brew install reattach-to-user-namespace git zsh wget
@steeef
steeef / cVimrc
Last active Jun 14, 2017
cvimrc file for cVim
View cVimrc
set noautofocus
set cncpcompletion
set nosmoothscroll
set nohud
set noautohidecursor
set numerichints
set typelinkhints
set autoupdategist
let barposition = "bottom"
View README.md

This is a pretty opinionated solution that we use internally. It's strictly designed to post to slack via the API and it uses our notion of wrapping EVERYTHING with a role. All of our plugins automatically use brain storage as well. To be able to execute anything with hubot, you have to be a rundeck_admin role user (per the hubot-auth plugin).

HUBOT_RUNDECK_URL should be set to the root URL of your Rundeck server, not including the path to the current api version. NOTE: Currently relying on Rundeck API version 12.

You should be able to tease out the rundeck API stuff specifically.

It depends on a common format for your job defs in rundeck. We have two types of jobs in rundeck that we use via this plugin:

View znc systemd unit with docker
Unit]
Description=ZNC
Requires=docker.service
After=docker.service
[Service]
EnvironmentFile=/etc/default/znc
User=docker
Restart=on-failure
RestartSec=10
View Dockerfile.tmpl
# using VirtualBox version $VBOX_VERSION
FROM boot2docker/boot2docker
RUN apt-get install p7zip-full
RUN mkdir -p /vboxguest && \
cd /vboxguest && \
curl -L -o vboxguest.iso http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso && \
7z x vboxguest.iso -ir'!VBoxLinuxAdditions.run' && \
sh VBoxLinuxAdditions.run --noexec --target . && \