Skip to content

Instantly share code, notes, and snippets.

View rgbkrk's full-sized avatar
🌎
Think globally, act locally

Kyle Kelley rgbkrk

🌎
Think globally, act locally
View GitHub Profile
@rgbkrk
rgbkrk / ☃.markdown
Last active August 29, 2015 13:57
☃☃☃☃☃☃☃☃
13:22:21 (master) ~/.atom/packages/☃$ apm unpublish ☃
Are you sure you want to unpublish ☃? (yes) yes
Unpublishing ☃ ✗
Unpublishing failed: Internal Server Error
13:23:57 (master) ~/.atom/packages/☃$ apm publish patch
Registering ☃ ✓
Preparing and tagging a new version ✓
Pushing v0.0.1 tag ✓
Publishing ☃@v0.0.1 ✗
In [2]: result
Out[2]: <generator object instances at 0x10eba0be0>

In [3]: result.
result.close       result.gi_code     result.gi_frame    result.gi_running  result.next        result.send        result.throw

In [3]: result.next()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
@rgbkrk
rgbkrk / keybase.md
Created March 16, 2014 14:57
keybase.md

Keybase proof

I hereby claim:

  • I am rgbkrk on github.
  • I am rgbkrk (https://keybase.io/rgbkrk) on keybase.
  • I have a public key whose fingerprint is FC2A 03FD 39EC D148 3B95 FB55 C8C0 A1AE C05F 6544

To claim this, I am signing this object:

@rgbkrk
rgbkrk / gist:9715777
Created March 22, 2014 22:57
System calls when touching a file on OS X
$ sudo dtruss -f -t open touch /tmp/test
PID/THRD SYSCALL(args) = return
70595/0x44601c: open("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x0, 0x0) = 3 0
70595/0x44601c: open("/tmp/test\0", 0x201, 0x1B6) = 3 0
70595/0x44601c: open("/dev/dtracehelper\0", 0x2, 0x7FFF5BAE9410) = 3 0
@rgbkrk
rgbkrk / build_network.md
Last active August 29, 2015 13:58
Bootstrap a Windows box on Rackspace for DevOps Automation

Flavor: performance2-15 Image: 6110edfe-8589-4bb1-aa27-385f12242627

$ nova network-create "BuildNet" "192.168.4.0/24"
+----------+--------------------------------------+
| Property | Value                                |
+----------+--------------------------------------+
| cidr     | 192.168.4.0/24                       |
| id       | e22b534d-4835-43dd-9896-f5b3f6123569 |
@rgbkrk
rgbkrk / jclouds_example.sh
Created May 12, 2014 03:14
jclouds Rackspace example
javac -version
mvn -version
mkdir jclouds
cd jclouds
wget https://raw.githubusercontent.com/jclouds/jclouds-examples/master/rackspace/pom.xml
mvn dependency:copy-dependencies "-DoutputDirectory=./lib"
mkdir -p org/jclouds/examples/rackspace/cloudfiles/
cd org/jclouds/examples/rackspace/cloudfiles/
wget https://raw.githubusercontent.com/jclouds/jclouds-examples/master/rackspace/src/main/java/org/jclouds/examples/rackspace/cloudfiles/CloudFilesPublish.java
wget https://raw.githubusercontent.com/jclouds/jclouds-examples/master/rackspace/src/main/java/org/jclouds/examples/rackspace/cloudfiles/Constants.java
#!/usr/bin/env bash
SCRIPT_NAME=`basename $0`
echo "I, $SCRIPT_NAME, am $$"
ALL_PIDS="$(pgrep -f $SCRIPT_NAME)"
NUM_ALL_PIDS=$(echo "$ALL_PIDS" | wc -l)
if (( $NUM_ALL_PIDS > 1 )); then
@rgbkrk
rgbkrk / wavepot303mod.js
Last active August 29, 2015 14:02
wavepot303mod.js - Paste in http://wavepot.com/
/*!
*
* stagas - got some 303
*
*/
var bpm = 80;
var tuning = 160;
var transpose = -1;
@rgbkrk
rgbkrk / tasks.py
Last active August 29, 2015 14:04
CoreOS cluster via invoke+tools
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Sets up a CoreOS cluster on rackspace, utilizing the CoreOS discovery service
to create a brand-spanking-new cluster.
'''
import os
import requests
import tempfile
@rgbkrk
rgbkrk / IO Performance in a Container.ipynb
Created July 25, 2014 02:40
IO Performance in a Docker container
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.