This file contains 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 . -type f -print0 | xargs -0 cat | sed 's/[[:punct:]|{|}]/ /g' | sed -r 's/\s+/\n/g' | sed 's/[[:digit:]]*//' |sort | uniq -c | sort -n | less |
This file contains 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
#!/bin/bash | |
if [ $# != 1 ]; then | |
echo "Usage: $(basename $0) filename" | |
echo " If filename is not found in the current directory then subdirectories are searched" | |
echo " The file is then edited in Notepad++" | |
exit -1 | |
fi | |
if [ -f "$1" ]; then | |
FN=$1 | |
else |
This file contains 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
#!/bin/bash | |
# see http://dound.com/2009/04/git-forever-remove-files-or-folders-from-history/ | |
# Author: David Underhill (original) | |
# Author: Mike Slinn (runs from any directory) | |
# Script to permanently delete files/folders from your git repository. To use | |
# it, cd to your repository's root and then run the script with a list of paths | |
# you want to delete, e.g., git-remove-history path1 path2 |
This file contains 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
#!/bin/bash | |
# Commits all git and svn directories below current directory or specified directory | |
# Skips directories that contain a file called .ignore | |
HIGHLIGHT="\e[01;34m" | |
NORMAL='\e[00m' | |
REPO=origin | |
MSG="-" | |
while getopts "dm:\?" opt; do | |
case $opt in |
This file contains 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
#!/bin/bash | |
function help { | |
echo "Searches path for .class files compiled from specified Scala or Java class" | |
echo "Usage: $(basename $0) fileName [className]" | |
echo " -c classpath; if not specified then all classes under target/scala-* are searched" | |
echo " -e Exact match required for fileName, or className if specified" | |
echo " -s Show javap decompilation output" | |
exit -1 | |
} |
This file contains 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 controllers | |
import play.api._ | |
import libs.ws.WS | |
import play.api.mvc._ | |
import com.micronautics.paypal.{TransactionProcessor, PaypalTransactions} | |
import java.net.URLEncoder | |
import concurrent.{Await, ExecutionContext} | |
import concurrent.duration.Duration | |
import java.util.concurrent.TimeUnit |
This file contains 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.micronautics.paypal | |
import java.util.{ List, Map } | |
import collection.JavaConversions._ | |
import collection.immutable.HashMap | |
import controllers.Email | |
import org.joda.time.DateTime | |
import slick.driver.MySQLDriver.simple._ | |
import java.util |
This file contains 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.micronautics.paypal | |
import play.api.db.DB | |
import anorm._ | |
import play.api.Play.current | |
object AnormTest { | |
DB.withConnection { implicit connection => | |
val sql = SQL( | |
"""insert into paypal_transaction( |
This file contains 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
#!/bin/bash | |
export JPDA_PORT=9998 | |
export play21='/home/mslinn/work/experiments/scala/Play20/play' | |
$play21 "run 9001" |
This file contains 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
#!/bin/bash | |
`cygpath -a $WINDIR/system32/explorer` /select,`cygpath -ad .` |