Skip to content

Instantly share code, notes, and snippets.

View dcorking's full-sized avatar

David Corking dcorking

View GitHub Profile
@kylemanna
kylemanna / connmanctl.md
Last active July 29, 2025 14:50
Connmanctl Cheat Sheet
@jasonrudolph
jasonrudolph / 00-about-search-api-examples.md
Last active June 25, 2025 15:36
5 entertaining things you can find with the GitHub Search API
anonymous
anonymous / gist:5796801
Created June 17, 2013 13:19
1968 gem install capybara-webkit -v '1.0.0'
1969 sudo gem install capybara-webkit -v '1.0.0'
1970 sudo apt qmake
1971 apt-install qmake
1972 sudo apt-get qmake
1973 sudo apt-get install qmake
1974 sudo gem install capybara-webkit -v '1.0.0'
1975 sudo apt-get install qt4-qmake
1976 sudo gem install capybara-webkit -v '1.0.0'
1977 sudo apt-get install libqtwebkit-dev
@juanoliver
juanoliver / gist:5796640
Created June 17, 2013 12:52
Error compiling capybara-webkit
g++ -c -include webkit_server -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -o NetworkReplyProxy.o NetworkReplyProxy.cpp
NetworkReplyProxy.cpp: In constructor âNetworkReplyProxy::NetworkReplyProxy(QNetworkReply*, QObject*)â:
NetworkReplyProxy.cpp:15:21: error: âsetFinishedâ was not declared in this scope
NetworkReplyProxy.cpp: In member function âvoid NetworkReplyProxy::handleFinished()â:
NetworkReplyProxy.cpp:37:19: error: âsetFinishedâ was not declared in this scope
make[1]: *** [NetworkReplyProxy.o] Error 1
make[1]: Leaving directory `/home/ubuntu/.bundler/tmp/20603/gems/capybara-webkit-1.0.0/src'
make: *** [sub-src-webkit_server-pro-make_default-ordered] Error 2
Command 'make' failed
@frankshearar
frankshearar / dotify-package-deps.st
Last active December 18, 2015 12:19
Visualising package dependencies in Squeak
| allDeps toDigraph |
toDigraph := [:hash | | s |
s := WriteStream on: String new.
s nextPutAll: 'digraph {'; lf.
hash keysAndValuesDo: [:pkg :pkgDeps |
pkgDeps do: [:dep |
(pkg includesSubString: 'Test')
ifTrue: [s nextPutAll: ' "'; nextPutAll: pkg; nextPutAll: '" [color="gray"]'; lf].
s nextPutAll: ' "'; nextPutAll: pkg; nextPutAll: '" -> "'; nextPutAll: dep; nextPutAll: '"'.
(pkg includesSubString: 'Test') ifTrue: [s nextPutAll: ' [color="gray"]'].
anonymous
anonymous / gist:5636346
Created May 23, 2013 14:11
Heroku and how it ignores your database.yml
saasbook@saasbook:~/LocalSupport$ heroku run bash
Running bash attached to terminal... up, run.9534
~ $ cat config\database.yml
cat: configdatabase.yml: No such file or directory
~ $ ls
app config db Gemfile log README spec vendor
autotest config.ru doc Gemfile.lock public README.md test
bin COPYING features lib Rakefile script tmp
~ $ cd config
~/config $ database.yml
anonymous
anonymous / gist:5635727
Created May 23, 2013 12:32
Thanks for that, very helpful. As it happens we have two stagings instances.
http://harrowcn-staging-eu.herokuapp.com
http://harrowcn-staging.herokuapp.com
I just tried to run our cucumber and rspec tests on the latter, and got the following
saasbook@saasbook:~/Documents/github/LocalSupport$ heroku run rake cucumber
The plugin heroku-sql-console has been deprecated. Would you like to remove it? (y/N) N
Running rake cucumber attached to terminal... up, run.5774
@joshski
joshski / flame.lua
Created April 21, 2013 10:52
Generates a little flame. Works in Codea.
-- a little flame in a functional style
function particle(step, style, t)
local newStyle = step(style, t)
return {
style = newStyle,
next = function()
return particle(step, newStyle, t + 1)
end
}
@mislav
mislav / rbenv-doctor.sh
Created February 7, 2013 03:50
A debugging script to analyze rbenv-specific setups
rbenv --version || rbenv 2>&1 | head -1
rbenv versions
rbenv global
env | grep -E 'PATH|RUBY|BUNDLE|RBENV'
which gem
rbenv which gem
@soderlind
soderlind / config.ru
Created December 4, 2012 20:54 — forked from paulcook/config.ru
config.ru for Pow + Wordpress - based on http://stuff-things.net/2011/05/16/legacy-development-with-pow/. Added rewrite rule for WordPress Multi Site. More at http://soderlind.no/archives/2012/12/02/wordpress-and-pow/
# config.ru for Pow + Wordpress, based on http://stuff-things.net/2011/05/16/legacy-development-with-pow/
# added hackery to work around wordpress issues - Patrick Anderson ([email protected])
# added rubygems, replaced script_path with script from path_parts, added to_return to fix return error - Paul Cook
# clearly this could be cleaner, but it does work
# added rewrite rule for WordPress Multi Site - Per Soderlind (see also http://soderlind.no/archives/2012/12/02/wordpress-and-pow/)
require 'rubygems'
require 'rack'
require 'rack-legacy'
require 'rack-rewrite'