Keybase proof
I hereby claim:
- I am kyledrake on github.
- I am kyledrake (https://keybase.io/kyledrake) on keybase.
- I have a public key whose fingerprint is 9C30 FA7B EA38 CBCD AB4D B12C 8BE7 2107 2E18 64BE
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var stealth = require('stealth.js') | |
var b = require('bitcoinjs-lib') | |
// Receiver generates a scan and spend keypair | |
var receiverScanPrivateKey = new b.ECKey(undefined, true) | |
var receiverScanPublicKey = receiverScanPrivateKey.getPub() | |
var receiverSpendPrivateKey = new b.ECKey(undefined, true) | |
var receiverSpendPublicKey = receiverSpendPrivateKey.getPub() |
# The Nginx configuration based on https://coderwall.com/p/rlguog | |
http { | |
ssl_certificate server.crt; | |
ssl_certificate_key server.key; | |
ssl_session_timeout 15m; | |
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; | |
ssl_prefer_server_ciphers on; | |
ssl_session_cache shared:SSL:10m; |
# Example xorg.conf.d snippet that assigns the touchpad driver | |
# to all touchpads. See xorg.conf.d(5) for more information on | |
# InputClass. | |
# DO NOT EDIT THIS FILE, your distribution will likely overwrite | |
# it when updating. Copy (and rename) this file into | |
# /etc/X11/xorg.conf.d first. | |
# Additional options may be added in the form of | |
# Option "OptionName" "value" | |
# | |
Section "InputClass" |
# Everything else was worse... | |
# https://developer.paypal.com/docs/api/ | |
require 'rest_client' | |
require 'addressable/uri' | |
require 'thread' | |
class Paypal | |
OAUTH2_IS_INCREDIBLY_SHITTY_COMEDY_TIME_PADDING = 10 | |
SANDBOX_URI = Addressable::URI.parse 'https://api.sandbox.paypal.com/v1' | |
LIVE_URI = Addressable::URI.parse 'https://api.paypal.com/v1' |
require 'rubygems' | |
require 'sinatra' | |
require 'geoloqi' | |
GEOLOQI_REDIRECT_URI = 'http://yourwebsite.net' | |
enable :sessions | |
configure do | |
Geoloqi.config :client_id => 'YOUR OAUTH CLIENT ID', :client_secret => 'YOUR CLIENT SECRET' |
### TEST 1: Simple Rack app RAW AND DUMB | |
class HelloRubinius | |
def call(env) | |
return [ | |
200, | |
{'Content-Type' => 'text/html'}, | |
['Hello #rbxday!'] | |
] | |
end |
require 'rubygems' | |
require 'sinatra/base' | |
require 'kirk' | |
require 'ruby-debug' | |
run Sinatra.new { | |
get '/' do | |
# debugger | |
$stdout.puts 'Testing $stdout!' | |
$stderr.puts 'Testing $stderr!' | |
'hi' |
require 'aws/s3' | |
class D7Obj < AWS::S3::S3Object | |
set_current_bucket_to "kd-test" | |
end | |
class S3Handler | |
AWS::S3::Base.establish_connection!( | |
:access_key_id => 'ID', |
module Sequel | |
module ParanoidDelete | |
def self.included(base) | |
base.extend(ClassMethods) | |
end | |
# Instead of actually deleting, we just set is_deleted to true, | |
# and look for it with our default dataset filter. | |
def delete |