Skip to content

Instantly share code, notes, and snippets.

View jesperronn's full-sized avatar

Jesper Rønn-Jensen jesperronn

View GitHub Profile
@jesperronn
jesperronn / instructions.txt
Created October 16, 2012 11:36 — forked from natritmeyer/instructions.txt
Cucumber formatter to list all tags
To list all tags scattered across your feature files...
1) add the following "list_tags.rb" file to your features/support directory
2) cucumber -d -f Cucumber::Formatter::ListTags
The output now has both tags and number of occurrences:
@backend-required 4
@issues 1
@localstub 1
@jesperronn
jesperronn / sublime-cucumber.sh
Created October 4, 2012 07:18
sublime text install Cucumber syntax
cd ~/.config/sublime-text-2/Packages/
git clone https://github.com/npverni/cucumber-sublime2-bundle.git
#restart sublime text
@jesperronn
jesperronn / deploy.log
Created September 13, 2012 14:27
Weblogic prefer local classes fail on weblogic deploy
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:50.578s
[INFO] Finished at: Thu Sep 13 16:19:22 CEST 2012
[INFO] Final Memory: 128M/223M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "DesktopBuild" could not be activated because it does not exist.
[WARNING] The requested profile "LocalNoZips" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (default) on project play-pilot: An Ant BuildException has occured: weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: Task 25 failed: [Deployer:149026]deploy application play-frontend on devWlfAdmin.
@jesperronn
jesperronn / gist:3149173
Created July 20, 2012 06:59
Firefox profiles --working with cookies
echo ' select * from moz_cookies;' | sqlite3 cookies.sqlite
echo ' delete from moz_cookies where name like "__utm%";' | sqlite3 cookies.sqlite
#multiple cookies from multiple folders:
echo ' select * from moz_cookies;' | sqlite3
@jesperronn
jesperronn / preferences.sublime-settings.js
Created July 9, 2012 08:35
Sublime Text 2 (Redhat Linux at wwork)
{
"color_scheme": "Packages/Color Scheme - Default/iPlastic.tmTheme",
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
"target",
"bin",
@jesperronn
jesperronn / git-global-config.sh
Last active November 28, 2020 05:04
Standard Git Config global options
#!/bin/bash
# Standard shortcuts for my usual git configuration
#
# http://www.arthurkoziel.com/2008/05/02/git-configuration/
#
#
# SVN-like shortcuts for often used commands:
git config --global alias.st status -bs
@jesperronn
jesperronn / etc-init.d-unicorn.sh
Created June 14, 2012 20:17 — forked from matiaskorhonen/gist:420880
Unicorn /etc/init.d/unicorn script
#!/bin/bash
### BEGIN INIT INFO
# Provides: Unicorn
# Required-Start: $network $remote_fs
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Short-Description: Start unicorn web server at boot - port 3000
# Description: Enable cancerventetid application at boot time. Start the unicorn web server (port 3000)
### END INIT INFO
@jesperronn
jesperronn / unicorn
Created June 14, 2012 20:01
/etc/init.d script for unicorn
#!/bin/sh
#
# init.d script for single or multiple unicorn installations. Expects at least one .conf
# file in /etc/unicorn
#
# Modified by [email protected] http://github.com/jaygooby
# based on http://gist.github.com/308216 by http://github.com/mguterl
#
## A sample /etc/unicorn/my_app.conf
##
@jesperronn
jesperronn / unicorn
Created June 14, 2012 20:01
/etc/init.d script for unicorn
#!/bin/sh
#
# init.d script for single or multiple unicorn installations. Expects at least one .conf
# file in /etc/unicorn
#
# Modified by [email protected] http://github.com/jaygooby
# based on http://gist.github.com/308216 by http://github.com/mguterl
#
## A sample /etc/unicorn/my_app.conf
##
@jesperronn
jesperronn / unicorn.rb
Created June 13, 2012 20:48 — forked from tobiashm/unicorn.rb
unicorn startup/management script (to work from capistrano)
# ------------------------------------------------------------------------------
# Sample rails 3 config
# ------------------------------------------------------------------------------
# Set your full path to application.
app_path = "/srv/www/xxx/current"
# Set unicorn options
worker_processes 2
preload_app true