This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export PS1='$(tput dim)\t $(tput setaf 5)[\w]$(tput setaf 2)$(__git_ps1 "(%s)")$(tput sgr0)\$ ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Find all java classes in tree. (including auto-generated classes in 'target' folders: | |
| find . -name "*.java" | xargs egrep -o "class [A-Z]\w+" | awk '{print $2}' | sort | uniq -c | sort -n | grep -v 1 | |
| # Use git (faster). | |
| #Ignores any auto-generated classes since they are typically inside ignored 'target' folders | |
| git grep --extended-regexp --no-index "class [A-Z]\w+" | egrep -o "class [A-Z]\w+" | awk '{print $2}' | sort | uniq -c | sort -n | grep -v 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/ruby | |
| # | |
| # release notes script | |
| # takes two git tags and prints any changes between them | |
| # | |
| # usage: | |
| # ./releasenotes.sh [from] [to] [releasename] | |
| # | |
| # with [from] and [to] being git tags |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Webservice(name="", serviceName="") | |
| package javax.jws; | |
| public @interface WebService {} | |
| maven pom: | |
| <dependency> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.my.collections; | |
| import java.io.Serializable; | |
| import java.util.*; | |
| /** | |
| * <p/> | |
| * Superclass for handling a collection of objects. He super class contains |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function isDefined() { | |
| varname=$1; | |
| declare -p $varname >/dev/null 2>&1; | |
| if [ "$?" -eq 0 ]; then | |
| echo Defined; | |
| fi; | |
| } | |
| http://nixcraft.com/shell-scripting/15375-testing-bash-variable-existence.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name 'Læs også'-- men senere | |
| // @namespace jespersscripts | |
| // @version 0.1 | |
| // @description "Læs også"-links flyttet til bund af artikel. Jeg var så træt af at der står "LÆS OGSÅ: ..." efter hvert andet afsnit på DRs websider. | |
| // @match http://www.dr.dk/* | |
| // @match http://dr.dk/* | |
| // @copyright 2012+, Jesper Rønn-Jensen | |
| // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Line below added by jesper in idea.sh | |
| IDEA_JDK="/opt/tools/jdk1.7.0_09" | |
| #end line add |