Skip to content

Instantly share code, notes, and snippets.

Avatar
🐧
Seizing the machines of production

Rowan James rowanj

🐧
Seizing the machines of production
View GitHub Profile
@rowanj
rowanj / go-dependency-sources.sh
Created May 15, 2019
List all go files in dependency tree
View go-dependency-sources.sh
go list -f '{{ join .Deps "\n" }}' | xargs -n 1 go list -f '{{ $path := .ImportPath}}{{ range $file := .GoFiles }}{{ $path }}{{ $file }}{{ "\n" }}{{ end }}'
View keybase.md

Keybase proof

I hereby claim:

  • I am rowanj on github.
  • I am rvalue (https://keybase.io/rvalue) on keybase.
  • I have a public key ASCtrdu-MVr7c7alNt9_Uqb8iEGZ5Zejk3nuQQUQgyUFeAo

To claim this, I am signing this object:

View test_wp_func.php
<?php
require_once('wp-includes/post-thumbnail-template.php');
$test_post = "some post specifier";
$result = get_post_thumbnail_id($test_post);
print("testing the function: $result");
?>
View authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDWDCNKxGWwzjLkgyJpHL5GblAotM436Lkg8UgomxrCQ6IPqw8nh5aaLOTEo8I6Sv5npiovAAlJhXoNIECcZXMgameg+/SAqWwlvrP3qsBK7twQv98ilROy8C79oSfmPmpEWlC58YVLhpY7nlzTYRLKKRdJN9OofcF8i/uhq79reP6afG/9y3VujBvhPbv7r/h7eRmV3jCNnabYmp5btnG1NeovDgvCDE+uUZUibvHGx4azgomcFXS1U1p6x0MZmHs+WS/QzLypHpe7Z1FroPl5sSyqvIPks20ncESlJy5C1cSKEG8FEBQf7nlh7BjdS3BckSiZL6TW4xXYfFdkDDtB rowanj@the_sneak
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtukmF2Wey++fnyKxo55MBI8hZHDm/+RQTKBRximJV7wHpRu444kMt6bxFjc1W/6c94J/6H6XBfr8/WZW1uEa8zdjmFu/la12jECcpC5QWfQdK9v5IC/3hbIvLQ0SAaj2q8TapG0j20CmA8yrJUjOi1R9Y0MPPk7ANYu+p2aaUZwBEAsG/Ue3+SVpi5t/2ra00dIB73uxMTqUd8iRJYnOK8BcKmQ3szLOS/HpHSB06OBvDiuWoYBNZ6XmzUwV1SoH9YQjOfpf8vYmT444fHJTotdb77mcFos/Ll1U4rkq5llEB6LWFGE7RZ8FFS2lWwyyq5vt2F3AoAfEiQi9eoOix rowanj@largo-linux
@rowanj
rowanj / XVM.xc
Last active Aug 29, 2015
My XVM configuration
View XVM.xc
/**
* Config was created in XVM Editor v0.7417
* at Sat Mar 15 14:02:43 GMT+1100 2014
*/
{
"configVersion": "5.0.1",
"editorVersion": "0.74",
"definition": {
"author": "rvalue (based on QuickyBaby)",
"date": "15/03/2014",
@rowanj
rowanj / BinaryPoint dark.dvtcolortheme
Last active Dec 28, 2015
Dark Xcode colour scheme based on Solarized palette by Ethan Schoonover: http://ethanschoonover.com/solarized Put it in ~/Library/Developer/Xcode/UserData/FontAndColorThemes
View BinaryPoint dark.dvtcolortheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0.127549 0.462659 0.782314 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Menlo-Bold - 12.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0.127549 0.462659 0.782314 1</string>
@rowanj
rowanj / GalleryView.rib
Created Aug 15, 2013
XIB and Interface Builder replacement
View GalleryView.rib
{
"controller": "GalleryViewController",
"name": "background",
"color": {
"red": 0.16862745098039,
"green": 0.16862745098039,
"blue": 0.16862745098039
},
"subviews": [
{
@rowanj
rowanj / InstallProvisioning.py
Last active Dec 18, 2015
Script to install or update all .mobileprovision files under the current path
View InstallProvisioning.py
__author__ = 'rowanj@burninator.net'
import os
import fnmatch
import plistlib
import filecmp
import shutil
import sys
View gist:5762587
[gui "net.phere.GitX"]
key = value
@rowanj
rowanj / UIImage+Extensions.h
Last active Dec 16, 2015 — forked from troystribling/UIImage+Extensions.h
Make a blank UI image with a given size, and optional fill color
View UIImage+Extensions.h
#import <Foundation/Foundation.h>
@interface UIImage (Extensions)
+ (UIImage*)blankImage:(CGSize)_size;
+ (UIImage*)blankImage:(CGSize)_size withColor:(UIColor*)_color;
@end