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
tell application "Notes" | |
set i to 1 | |
repeat with theNote in notes | |
set noteName to name of theNote | |
set noteName to my replace(" ", "_", noteName) | |
set noteName to my replace("&", "and", noteName) | |
set noteName to my replace("(", "[", noteName) | |
set noteName to my replace(")", "]", noteName) | |
set theDir to (path to desktop as text) | |
set theFile to ((path to desktop as text) & "notes:" & i & "_" & noteName & ".html") |
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
dir_mappings() { | |
case $1 in | |
'ABC_DET') echo 'ABC_DET';; | |
'DDD_DET') echo 'DDD_DET';; | |
'ZZZ_DET') echo 'ZZZ_DET';; | |
'ZZZ_1') echo 'ZZZ_DET';; | |
'ZZZ_2') echo 'ZZZ_DET';; | |
'ZZZ_3') echo 'ZZZ_DET';; | |
*) echo 'nope';; | |
esac |
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
du -ahxd 1 . | sort -h |
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
Importing jars etc for: | |
_ _ | |
_ __ | | __ _ _ _| | | |
| '_ \| |/ _' | || |_| | |
| __/|_|\____|\__ (_) | |
|_ | |__/ | |
0. ensure this env var : export SBT_OPTS="-Dsbt.override.build.repos=true" | |
1. rm -rf ~/.ivy2 | |
2. Setup repositories file in .sbt/repositories as follows |
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 all files in the last 45 mins, print them null separated and from that create an new tgz using standard-in as a file | |
# | |
find . -cmin -45 -type f -print0 | tar -cvzf ../../foo.tgz --null -T - | |
# | |
# Same as above however first searches for .nexus|.meta dir and prunes. | |
# | |
find . -not \( -name \.nexus -prune \) -not \( -name \.meta -prune \) -not \( -name central-m1 -prune \) -cmin -45 -type f -print0 | tar -cvzf ../../foo.tgz --null -T - |
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
#setup target VM, DONT use docker, the fakesystemd throws things off | |
vagrant init bento/centos-7.1 | |
vagrant ssh | |
#Add in your repo e.g: | |
sudo tee /etc/yum.repos.d/docker.repo <<-'EOF' | |
[dockerrepo] | |
name=Docker Repository |
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
apply plugin: 'maven' | |
//this is essential! even though not really needed | |
//there is a bug in gradle whereby if you don't have this it | |
//just doesn't work | |
apply plugin: 'java' |
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
import static org.freecompany.redline.payload.Directive.NONE; | |
apply plugin: 'java' | |
apply plugin: 'rpm' | |
buildscript { | |
repositories { | |
mavenLocal() | |
maven { url = mavenServer+mavenRepo } |