Skip to content

Instantly share code, notes, and snippets.

View Geesu's full-sized avatar

Josh Becker Geesu

View GitHub Profile
Process: 7DaysToDie [29993]
Path: /Users/USER/Library/Application Support/Steam/*/7DaysToDie.app/Contents/MacOS/7DaysToDie
Identifier: unity.The Fun Pimps.7 Days To Die
Version: Unity Player version 5.3.3p3 (5.3.3p3)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: 7DaysToDie [29993]
User ID: 501
Date/Time: 2016-04-06 12:04:31.566 -0400
@Geesu
Geesu / swearfilter_mysql.sma
Created January 5, 2016 19:35
Swear filter for AMX Mod
/* AMX Mod script.
*
* (c) 2003, [?]Mother
*
* Based on code by Djey, JustinHoMi, and RAV
*
* This file is provided as is (no warranties).
*
* This AMX plugin requires MySQL module.
*
@Geesu
Geesu / gist:0a99266515944cca3c1e
Created September 8, 2015 00:37
Gridcoin compilation failure on os x 10.10
➜ src git:(master) make -f makefile.osx
/bin/sh ../share/genbuild.sh obj/build.h
llvm-g++ -g -msse2 -Wall -Wextra -Wformat -Wno-ignored-qualifiers -Wformat-security -Wno-unused-parameter -DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE -DUSE_UPNP=1 -I/Users/Josh/development/Gridcoin-Research/src/leveldb/include -I/Users/Josh/development/Gridcoin-Research/src/leveldb/helpers -DHAVE_BUILD_INFO -I"/Users/Josh/development/Gridcoin-Research/src" -I"/Users/Josh/development/Gridcoin-Research/src"/obj -I"/opt/local/include" -I"/opt/local/include/db48" -o gridcoinresearchd -L"/opt/local/lib" -L"/opt/local/lib/db48" obj/alert.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/irc.o obj/keystore.o obj/main.o obj/miner.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/rpcnet.o obj/rpcmining.o obj/rpcwallet.o obj/rpcblockchain.o obj/rpcrawtransaction.o obj/script.o obj/sync.o obj/util.o obj/wallet.o obj/walletdb.o obj/noui.o obj/pbkdf2.o obj/kern
@Geesu
Geesu / gist:dc9ca283da3fba05c9e4
Created May 11, 2015 18:11
Octopus exception with sidekiq
14:06:04 worker_sunspot.1 | 2015-05-11T18:06:04.008Z 56712 TID-oumuuj9is WARN: /Users/Josh/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:443:in `checkout_new_connection'
14:06:04 worker_sunspot.1 | /Users/Josh/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `acquire_connection'
14:06:04 worker_sunspot.1 | /Users/Josh/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:351:in `block in checkout'
14:06:04 worker_sunspot.1 | /Users/Josh/.rbenv/versions/2.1.4/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
14:06:04 worker_sunspot.1 | /Users/Josh/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:350:in `c
<%
require 'cgi'
require 'uri'
begin
uri = URI.parse(Rails.configuration.read_db_url)
rescue URI::InvalidURIError
uri = URI.parse(Rails.configuration.master_db_url)
rescue URI::InvalidURIError
raise "Unable to set the read database url"
@Geesu
Geesu / gist:d1eae0b336766ddf8711
Created January 6, 2015 17:46
Four wheel NodeBot control
var five = require("johnny-five");
var board = new five.Board();
var stdin = process.stdin;
stdin.setRawMode(true);
stdin.resume();
board.on("ready", function () {
var wheels = {
frontLeft: new five.Servo({ pin: 4, type: 'continuous' }),
@Geesu
Geesu / gist:4296f7d4c6c368d6986d
Created December 26, 2014 19:57
make command for mono on OS X Yosemite
➜ mono git:(master) ✗ make
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /Volumes/3TB_OSX/Users/Josh/Projects/mono/missing autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
Git submodules updated successfully
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in po
➜ mono git:(master) ✗ PATH=$PREFIX/bin:$PATH
➜ mono git:(master) ✗ CC='cc -m32' ./autogen.sh --prefix=$PREFIX --disable-nls --build=i386-apple-darwin11.2.0
Running libtoolize...
glibtoolize: putting auxiliary files in `.'.
glibtoolize: copying file `./ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
glibtoolize: copying file `m4/libtool.m4'
glibtoolize: copying file `m4/ltoptions.m4'
glibtoolize: copying file `m4/ltsugar.m4'
glibtoolize: copying file `m4/ltversion.m4'
@Geesu
Geesu / assets.rake
Created December 8, 2014 16:55
Disable asset precompilation on heroku
Rake::Task["assets:precompile"].clear
namespace :assets do
task 'precompile' do
puts "Not pre-compiling assets..."
end
end
module Aperture
module Redis
class Pool < ::ConnectionPool
attr_accessor :namespace
def initialize(options = {})
super(options.delete :pool) { ::Redis.new options }
end
def with_namespace(ns)