Skip to content

Instantly share code, notes, and snippets.

Jesper Rønn-Jensen jesperronn

Block or report user

Report or block jesperronn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jesperronn
jesperronn / gist:9344831
Last active Aug 29, 2015
IntelliJ Jasmine tab triggers. Here are my definitions so that you can type ”it” and “desc” in your javascript test file.
View gist:9344831
Abbreviation: desc
Description: jasmine describe()
Applicable in: Javascript
Expand with: Default (Tab)
Template text:
describe('$SYSTEM_UNDER_TEST$', function() {
beforeEach(function() {
//First top level needs configure:
//jasmine.configure()
View git-grafts-example
# grafts define parents for commits see https://git.wiki.kernel.org/index.php/GraftPoint
#
# save this file as .git/info/grafts
#
#
# format:
# <commit sha1> <parent sha1> [<parent sha1>]*
#
# each entry terminated by a newline
#
@jesperronn
jesperronn / color_prompt.sh
Last active Aug 29, 2015
Color command prompt (git aware)
View color_prompt.sh
export PS1='$(tput dim)\t $(tput setaf 5)[\w]$(tput setaf 2)$(__git_ps1 "(%s)")$(tput sgr0)\$ '
@jesperronn
jesperronn / git filter-branch
Created Jan 21, 2015
git filter-branch author EMAIL
View git filter-branch
NEW_MAIL="jesp....@gmail.com"
git filter-branch --env-filter '
> if [[ "$GIT_AUTHOR_EMAIL" = "EMAIL" || "$GIT_AUTHOR_EMAIL" = "$NEW_MAIL" ]]
> then
> if [[ "$GIT_AUTHOR_NAME" = "Ben Alman" ]]
> then
> GIT_AUTHOR_NAME="Jesper Rønn-Jensen"
> GIT_COMMITTER_NAME="Jesper Rønn-Jensen"
> export GIT_AUTHOR_NAME
> export GIT_COMMITTER_NAME
View index.html
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style>
#before, #after {display: none;}
</style>
<style id="jsbin-css">
@jesperronn
jesperronn / svn_create.sh
Created Apr 15, 2015
SVN manipulate history
View svn_create.sh
#!/usr/bin/env bash
# set -x
# script here will create new subversion repository (file based).
# then it will make 10 commits
# Then we will manipulate the commit dates of the ten commits
START_FOLDER=$(pwd)
REPO=repo02
WD=working2
HOOKFILE=$REPO/hooks/pre-revprop-change
View check.sh
#!/usr/bin/env bash
BASEDIR=$(dirname $0)
. $BASEDIR/functions.sh
# step "Remounting / and /boot as read-write:"
# try mount -o remount,rw /
# try mount -o remount,rw /boot
# next
#
# usecases:
@jesperronn
jesperronn / osx_files_for_new_laptop
Created Feb 3, 2009
filelist for script to download and install essential sw on a new laptop
View osx_files_for_new_laptop
#list of the files I want to instal on my server
# requires previous install of XCode
# from http://developer.apple.com/technology/xcode.html
#recent ruby
ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz
#recent git
http://kernel.org/pub/software/scm/git/git-1.6.1.2.tar.gz
#and manpages
@jesperronn
jesperronn / config.xml
Created Jul 10, 2009
.hudson/jobs/ExpensereportAllFeatures/config.xml
View config.xml
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<logRotator>
<daysToKeep>5</daysToKeep>
<numToKeep>-1</numToKeep>
</logRotator>
<keepDependencies>false</keepDependencies>
<properties>
View .autotest
# cat ~/.autotest
require 'autotest_notification'
require 'autotest/fsevent'
require 'autotest/growl'
Autotest.add_hook :initialize do |autotest|
%w{.git .svn .hg .DS_Store ._* vendor}.each {|exception| autotest.add_exception(exception) }
false
end
You can’t perform that action at this time.