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
# mntpart - mount & view a partition from a disk image file | |
# (C) 2015 Gunnar Andersson | |
# License: MPLv2 | |
mntpart () | |
{ | |
function _mntpartusage () | |
{ | |
echo "Usage: mntpart <file> <partition-number> [mountpoint]"; | |
echo "(Default mountpoint is /mnt)" |
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
# Shell function to pull a PR into a branch to study it locally | |
# ...original from unkonwn source (but probably from GitHub documentation) | |
review_pr () | |
{ | |
[ -z "$1" ] && { | |
echo "reviewpull <pull-request-number>"; | |
return 1 | |
}; | |
echo "git fetch origin pull/$1/head:pr_$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
#!/bin/bash | |
# (C) 2017 Gunnar Andersson | |
# What: It wipes all OLD dirs/files, when a new one appears | |
# WARNING hacky and probably pretty buggy | |
user=go | |
workingdir=/tmp/pipelines | |
current=/tmp/current | |
new=/tmp/new |
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
$ service go-agent start | |
[Wed Feb 8 17:57:13 UTC 2017] using default settings from /etc/default/go-agent | |
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/thoughtworks/go/agent/bootstrapper/AgentBootstrapper : Unsupported major.minor version 52.0 | |
at java.lang.ClassLoader.defineClass1(Native Method) | |
at java.lang.ClassLoader.defineClass(ClassLoader.java:803) | |
at com.simontuffs.onejar.JarClassLoader.defineClass(JarClassLoader.java:693) | |
at com.simontuffs.onejar.JarClassLoader.findClass(JarClassLoader.java:599) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:425) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) |
NewerOlder