Skip to content

Instantly share code, notes, and snippets.

View sporkmonger's full-sized avatar

Bob Aman sporkmonger

View GitHub Profile
cask 'dusty' do
version '0.6.4'
sha256 'abcdef1234567890'
install_root = '/Library/LaunchDaemons'
plist_name = 'com.gamechanger.dusty.plist'
url "https://github.com/gamechanger/dusty/releases/download/#{version}/dustybin.tar.gz"
appcast 'https://github.com/gamechanger/dusty/releases.atom',
:sha256 => 'abcdef1234567890'
rdr pass proto tcp from any to any port {80,20559} -> 127.0.0.1 port 20559
anchor "250.PowFirewall/*"
Verifying that +sporkmonger is my openname (Bitcoin username). https://onename.io/sporkmonger
@sporkmonger
sporkmonger / output_log.txt
Created September 10, 2014 19:40
IR+TweakScale issue
This file has been truncated, but you can view the full file.
Initialize engine version: 4.5.2f1 (9abb1b59b47c)
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 9.0c [nvd3dumx.dll 9.18.13.4052]
Renderer: NVIDIA GeForce GT 750M
Vendor: NVIDIA
VRAM: 1985 MB (via DXGI)
Caps: Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=0 INTZ=1 RAWZ=0 NULL=1 RESZ=0 SlowINTZ=0
Begin MonoManager ReloadAssembly
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.dll (this message is harmless)
diff --git a/lib/addressable/uri.rb b/lib/addressable/uri.rb
index a13601f..f297244 100644
--- a/lib/addressable/uri.rb
+++ b/lib/addressable/uri.rb
@@ -1449,21 +1449,16 @@ module Addressable
# The query component for this URI, normalized.
#
# @return [String] The query component, normalized.
- def normalized_query
- self.query && @normalized_query ||= (begin
@sporkmonger
sporkmonger / couchdb
Created May 22, 2012 15:13
Clean install on OS X via Homebrew
$ couchdb
Apache CouchDB 1.2.0 (LogLevel=info) is starting.
Apache CouchDB has started. Time to relax.
[info] [<0.31.0>] Apache CouchDB has started on http://127.0.0.1:5984/
[info] [<0.124.0>] 127.0.0.1 - - GET /_utils/ 200
[error] [<0.124.0>] Badarg error in HTTP request
[info] [<0.124.0>] Stacktrace: [{erlang,localtime_to_universaltime,
[{{2012,5,19},{11,12,36}},true],
[]},
{calendar,local_time_to_universal_time_dst,1,
gem 'signet', '~> 0.3.0'
require 'signet/oauth_2/client'
gem 'google-api-client', '~> 0.4.3'
require 'google/api_client'
require 'google/api_client/client_secrets'
client_secrets = Google::APIClient::ClientSecrets.load('client_secrets.json')
client = Google::APIClient.new(
:authorization => Signet::OAuth2::Client.new(
:client_id => client_secrets.client_id,
:client_secrets => client_secrets.client_secrets,
@sporkmonger
sporkmonger / rot13.rb
Created April 16, 2012 13:54
ZOMG, don't do this!
class String
def rot13
self.tr "A-Za-z", "N-ZA-Mn-za-m"
end
end
@sporkmonger
sporkmonger / flexbox.html
Created September 18, 2011 19:37
Flexbox Layout
<!DOCTYPE html>
<html>
<head>
<title>Flexbox Layout</title>
<style>
article {
border: 1px solid red;
display: -webkit-box;
display: -moz-box;
display: box;
@sporkmonger
sporkmonger / offline_debug.js
Created April 27, 2011 10:44
Offline Application Cache Debugging
// Adapted from a snippet by Jonathan Stark
var cacheStatusValues = [];
cacheStatusValues[0] = 'uncached';
cacheStatusValues[1] = 'idle';
cacheStatusValues[2] = 'checking';
cacheStatusValues[3] = 'downloading';
cacheStatusValues[4] = 'updateready';
cacheStatusValues[5] = 'obsolete';