Skip to content

Instantly share code, notes, and snippets.

View steeef's full-sized avatar

Stephen Price steeef

View GitHub Profile
@steeef
steeef / download_and_bootstrap.sh
Last active March 21, 2023 22:03
bootstrap my dotfiles
#!/usr/bin/env 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 / cVimrc
Last active June 14, 2017 16:32
cvimrc file for cVim
set noautofocus
set cncpcompletion
set nosmoothscroll
set nohud
set noautohidecursor
set numerichints
set typelinkhints
set autoupdategist
let barposition = "bottom"
@steeef
steeef / README.md
Last active February 4, 2017 03:11 — forked from lusis/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:

@steeef
steeef / userdata
Created September 20, 2016 17:33
stp5net coreOS 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:
@steeef
steeef / keybase.md
Last active September 10, 2016 21:19

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 November 18, 2015 23:11
Setup for new OS X machine

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
Unit]
Description=ZNC
Requires=docker.service
After=docker.service
[Service]
EnvironmentFile=/etc/default/znc
User=docker
Restart=on-failure
RestartSec=10
# 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 . && \