Skip to content

Instantly share code, notes, and snippets.

View koenongena's full-sized avatar

Koen Ongena koenongena

View GitHub Profile
************************************ A ***************************
******************************************************************
About a Mile
Action Action
Action Bronson & Dan Auerbach
Adam Clayton and Larry Mullen
Adam Ant
Adam & The Ants
Adam and Andrew
Afrojack and Eva Simons
@koenongena
koenongena / gist:7e85f7b0cd715fb221e0
Created August 6, 2014 15:46
mysql logging into table
SET global general_log = 1;
SET global log_output = 'table';
select * from mysql.general_log order by event_time desc;
@koenongena
koenongena / clickable row
Created November 26, 2013 13:49
clickable row in JS
this.el.click(function (e) {
var elem, evt = e ? e:event;
if (evt.srcElement){elem = evt.srcElement;}
else if (evt.target){elem = evt.target;}
if (elem.tagName.toUpperCase() == 'A'){
return;
}
var url = $(this).find("a" + (linkSelector||':first')).attr('href');
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
@koenongena
koenongena / gradleBuildFileRename
Created May 27, 2013 07:50
Rename build.gradle files to ${projectName}.gradle
import static groovy.io.FileType.*
import static groovy.io.FileVisitResult.*
def currentFolder = new File(".")
def handleBuildFile = {File it ->
def folderName = it.parentFile.getName()
if (folderName != '.'){
it.renameTo(new File(it.getParentFile(), "${folderName}.gradle"))
}
@koenongena
koenongena / gist:5013088
Created February 22, 2013 12:28
.gitignore
*.zargo~
*.db
*.iml
*.iws
*.ipr
.classpath
build/
target/
out/
.idea/
@koenongena
koenongena / gist:3342202
Created August 13, 2012 16:04
git aliases
[alias]
current-branch =rev-parse --abbrev-ref HEAD
[alias]
rebase-onto-master = !CURRENT=$(git rev-parse --abbrev-ref HEAD) && git checkout master && git pull && git checkout $CURRENT && git rebase -i master
[alias]
merge-into-master = !CURRENT=$(git rev-parse --abbrev-ref HEAD) && git checkout master && git merge $CURRENT
@koenongena
koenongena / ntp
Created July 9, 2012 09:24
Update Linux time by NTP
ntpdate -s -b -p 8 -u pool.ntp.org
@koenongena
koenongena / gist:1891942
Created February 23, 2012 09:37
git config http.postBuffer 524288000
git config http.postBuffer 524288000
@koenongena
koenongena / rampart_vs_intellij
Created January 25, 2012 13:11
Running rampart dependent unit tests in IntelliJ
-Xbootclasspath/a:E:\repository\org\apache\rampart\rampart\1.4\rampart-1.4.mar