Skip to content

Instantly share code, notes, and snippets.

View gsiener's full-sized avatar
🚴‍♂️
NYC

Graham Siener gsiener

🚴‍♂️
NYC
View GitHub Profile
@gsiener
gsiener / .deps...remix-tests...remix_accounts.sol
Created December 14, 2021 14:03
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;

Keybase proof

I hereby claim:

  • I am gsiener on github.
  • I am gsiener (https://keybase.io/gsiener) on keybase.
  • I have a public key whose fingerprint is 3A66 E6F2 28D0 3011 4905 87AA 1590 0997 9F45 D4BC

To claim this, I am signing this object:

#!/usr/bin/env ruby
#
# Proof-of-Concept exploit for Rails Remote Code Execution (CVE-2013-0156)
#
# ## Advisory
#
# https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ/discussion
#
# ## Caveats
#
@gsiener
gsiener / ia.rb
Created February 3, 2012 16:27
Intuit Anywhere sample code
#<!--
# Copyright Intuit, Inc 2011
# Intuit Anywhere Sample Code
# This sample demonstrates how to complete the authentication with an IA application and make IA specific API calls
# This sample is for reference purposes only.
#
#
# Copyright (c) 2011 Intuit Inc. All rights reserved.
# Redistribution and use in source and binary forms, with or without modification, are permitted in conjunction
@gsiener
gsiener / bluedotmenu.cs
Created February 3, 2012 01:25
Blue Dot Menu
/*
* Copyright (c) 2011 Intuit, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.opensource.org/licenses/eclipse-1.0.php
* Contributors:
*
* Intuit Partner Platform - initial contribution
*
@gsiener
gsiener / postgresql.rb
Created December 3, 2011 19:49 — forked from zedtux/postgresql.rb
Brew formula to install Postgresql 8.4.4 with working url
require 'formula'
require 'hardware'
class Postgresql <Formula
homepage 'http://www.postgresql.org/'
url 'http://ftp.riken.go.jp/pub/FreeBSD/distfiles/postgresql/postgresql-8.4.4.tar.bz2'
md5 '4bf2448ad965bca3940df648c02194df'
depends_on 'readline'
depends_on 'libxml2' if MACOS_VERSION < 10.6 # Leopard libxml is too old
@gsiener
gsiener / km.rb
Created August 25, 2011 13:58
A much simpler approach to using Kissmetrics instead of the provided gem. Requires delayed_job and httparty gems.
class KM
@id = nil
@key = nil
class << self
def init(key)
@key = key
end
@gsiener
gsiener / inuit.css
Created April 26, 2011 13:04
Inuit CSS
/*------------------------------------*\
INUIT.CSS
\*------------------------------------*/
/*
Author: Harry Roberts
Twitter: @inuitcss
Author URL: csswizardry.com
Project URL: inuitcss.com
Version: 1.2
Codename: Eskimo
@gsiener
gsiener / gist:40188
Created December 27, 2008 04:32 — forked from peterc/gist:33337
# SUPER DARING APP TEMPLATE 1.0
# By Peter Cooper
# Link to local copy of edge rails
inside('vendor') { run 'ln -s ~/dev/rails/rails rails' }
# Delete unnecessary files
run "rm README"
run "rm public/index.html"
run "rm public/favicon.ico"