Skip to content

Instantly share code, notes, and snippets.

View leifg's full-sized avatar
🏄‍♂️

Leif Gensert leifg

🏄‍♂️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am leifg on github.
  • I am leifg (https://keybase.io/leifg) on keybase.
  • I have a public key whose fingerprint is 9598 366D C247 B2A3 1769 B664 FF97 E8EA DFBA A7C0

To claim this, I am signing this object:

@leifg
leifg / minimal.json
Last active August 29, 2015 14:09
packer digitalocean for github issue: https://github.com/mitchellh/packer/issues/1670
{
"builders": [
{
"type": "digitalocean",
"client_id": "...",
"api_key": "..."
}
]
}
@leifg
leifg / bundler information
Created June 12, 2012 13:12
Necessary information for bundler issue with ruby 1.8.7 and native extension
Command I ran:
bundle install --path vendor/local
---
stacktrace:
stacktrace:
Fetching gem metadata from http://rubygems.org/..
@leifg
leifg / default.rb
Created November 7, 2012 13:46 — forked from nstielau/default.rb
A simple Chef recipe to install Jenkins
#
# Cookbook Name:: jenkins
# Recipe:: default
#
# https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu
# This is super-simple, compared to the other Chef cookbook I found
# for Jenkins (https://github.com/fnichol/chef-jenkins).
#
# This doesn't include Chef libraries for adding Jenkin's jobs via
@leifg
leifg / index.html
Created November 10, 2012 17:22
fixed z-index positioning in newest webkit
<!-- should always be on top -->
<div class="wrapper">
<div class="overlay">
overlay
</div>
</div>
<!-- should always be in the back -->
<div class="main">
main
@leifg
leifg / add_to_volume_group
Created November 14, 2012 13:52
Resize logical volume in virtual machine
export VGNAME=ubuntu-10-04-i386
export SIZE=50G
sudo vgdisplay
sudo vgextend $VGNAME /dev/sdb
sudo lvresize -L +$SIZE /dev/$VGNAME/root
sudo resize2fs -p /dev/$VGNAME/root
df -h
@leifg
leifg / rbenv_bundler
Created November 18, 2012 18:41
Output for broken bundler installation
[~]$ RBENV_DEBUG=1 bundle
+ '[' -z /Users/leifg/.rbenv ']'
+ RBENV_ROOT=/Users/leifg/.rbenv
+ export RBENV_ROOT
+ '[' -z '' ']'
++ pwd
+ RBENV_DIR=/Users/leifg
+ export RBENV_DIR
+ shopt -s nullglob
++ abs_dirname /usr/local/bin/rbenv
@leifg
leifg / adn_machine_only
Created November 28, 2012 20:49
First Steps of creating app.net machine_only posts
curl -H 'Authorization: Bearer $ADN_TOKEN' \
-F 'machine_only=true' \
https://alpha-api.app.net/stream/0/posts
-->
{
"meta": {
"code": 400,
"error_id": "54b71169b64e46e2b4586f71b0f72779$5f7e8eac12afb013ab7205b2ec9aaecc",
@leifg
leifg / adn_machine_only_second
Created November 28, 2012 22:08
Second Step of ADN machine only post
curl -H 'Authorization: Bearer $ADN_TOKEN' \
-d '{"machine_only":true,"annotations":[{"type":"bla","value":"blub"}]}' \
https://alpha-api.app.net/stream/0/posts
--->
{
"meta": {
"code": 400,
"error_id": "b56ff451b98446ef803ac48325d5bb17$5f7e8eac12afb013ab7205b2ec9aaecc",