Skip to content

Instantly share code, notes, and snippets.

View dcorking's full-sized avatar

David Corking dcorking

View GitHub Profile
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
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
@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"]'].
@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
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
@jasonrudolph
jasonrudolph / 00-about-search-api-examples.md
Last active January 3, 2025 03:54
5 entertaining things you can find with the GitHub Search API
@kylemanna
kylemanna / connmanctl.md
Last active June 27, 2023 23:12
Connmanctl Cheat Sheet
@sjahandideh
sjahandideh / How to demo feature specs.md
Last active December 28, 2015 01:49
How to demo your feature specs

In order to demo your feature specs, follow these steps:

  1. Add capybara, poltergeist, launchy and selenium-webdriver to your Gemfile under test and development group.
  2. Add the attached demo helper to your spec/support.
  3. Add the capybara config to your spec_helper file.
  4. Run bundle install.
  5. Write your feature with its scenario specs.
  6. Put a demo filter on each scenario you want to demo. ( refer to the example below )
  7. Run bundle exec rspec spec.
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten
@maoueh
maoueh / Gemfile
Last active May 30, 2022 08:50
Simple Ruby files to statically serve files
source "https://rubygems.org"
gem 'rack', '~> 1.5'
gem 'rack-cache', '~> 1.2'
gem 'puma', '~> 2.7'