Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# Ask for the administrator password upfront
# As my dotfiles are private, I need to configure github auth first
# USAGE: /bin/bash -c "export BW_SERVER=vault.bitwarden.com && $(curl -fsSL https://gist.githubusercontent.com/nkg/b134a6319e3bd1653ea28dd123b36e5d/raw/pre_bootstrap.sh)”
set -ufo pipefail
sudo -v

Keybase proof

I hereby claim:

  • I am nkg on github.
  • I am nkg (https://keybase.io/nkg) on keybase.
  • I have a public key ASCFPczClbOK9b-OtthACFGAKtICN10WQP4UM36LDyQmKQo

To claim this, I am signing this object:

@nkg
nkg / keybase.md
Last active March 21, 2020 15:08
keybase.md

Keybase proof

I hereby claim:

  • I am nkg76 on github.

  • I am nkg (https://keybase.io/nkg) on keybase.

  • I have a public key ASDsBbg-abcZw22lqg_lzEBAEFl41WZ7GFSNF37J7l97RAo

@nkg
nkg / bumpme
Last active July 24, 2019 14:40
Wed Jul 24 14:40:09 UTC 2019
@nkg
nkg / bumpme
Created November 2, 2018 10:34
0
@nkg
nkg / README.md
Created June 24, 2013 15:14 — forked from leifg/README.md

This is an example of adding Jenkins build status to a [dashing-dashboard](https://github.com/Shopify/dashing

If a job is running, the widget will have a grey background. If a job succeeded at its last run, it will have a green background. If a job failed at its last run, it will have a red background.

Requirements:

#!/usr/bin/env bash
apt-get -y update
apt-get -y upgrade
apt-get -y install git build-essential autoconf zlib1g-dev libssl-dev \
libreadline-dev libyaml-dev libcurl4-openssl-dev curl python-software-properties \
ruby1.9.1 ruby1.9.1-dev rubygems1.9.1 irb1.9.1 ri1.9.1 rdoc1.9.1 python-pip zsh-beta \
ack-grep
gem install puppet ruby-shadow --no-ri --no-rdoc
@nkg
nkg / ubuntu-12.04-lts.erb.sh
Created May 18, 2012 10:36 — forked from RobertLowe/ubuntu-12.04-lts.erb.sh
chef ubuntu 12.04 LTS bootstrap
bash -c '
if [ ! -f /usr/bin/chef-client ]; then
apt-get update
apt-get -y upgrade
apt-get install -y build-essential wget zlib1g-dev libssl-dev libffi-dev libncurses-dev libreadline-dev libyaml-dev libffi6 libssl0.9.8
wget https://s3.amazonaws.com/dev.ops/ruby-1.9.3-p194-perf_without_psych_no_warnings_amd64.deb
dpkg -i ruby-1.9.3-p194-perf_without_psych_no_warnings_amd64.deb
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.23.tgz
@nkg
nkg / app.js
Created April 3, 2012 19:47 — forked from dawsontoth/app.js
Rate my app in Appcelerator Titanium Mobile
/**
* The following snippet will ask the user to rate your app the second time they launch it.
* It lets the user rate it now, "Remind Me Later" or never rate the app.
*/
var win = Ti.UI.createWindow({ backgroundColor: '#fff' });
win.addEventListener('open', checkReminderToRate);
win.add(Ti.UI.createLabel({ text: 'This is a simple app that will remind you to rate it.' }));
win.open();
function checkReminderToRate() {