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 | |
JIRA_HOST="https://jira.atlassian.com" | |
ISSUE="" | |
DEFAULT_PROJECT=PCDR | |
if [ "$1" == "" ]; then | |
current_branch=`git rev-parse --abbrev-ref HEAD` | |
if [ $? == 0 ] && [[ "${current_branch}" =~ [A-Za-z]-[0-9] ]]; then | |
echo "Using git branch name as JIRA issue" |
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 java.util.concurrent.LinkedBlockingQueue | |
import java.util.concurrent.TimeUnit | |
import rx.Observable | |
import rx.Subscriber | |
import rx.schedulers.Schedulers | |
class ObservableQueue<T> { | |
protected long pollTimeout = 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
@Grapes([ | |
@Grab(group='com.squareup.retrofit', module='retrofit', version='2.0.0-beta2'), | |
@Grab(group='com.squareup.retrofit', module='converter-jackson', version='2.0.0-beta2'), | |
@Grab(group='com.fasterxml.jackson.core', module='jackson-core', version='2.6.3'), | |
@Grab(group='com.fasterxml.jackson.core', module='jackson-databind', version='2.6.3'), | |
@Grab(group='org.slf4j', module='slf4j-simple', version='1.7.12') | |
]) | |
import retrofit.Retrofit | |
import retrofit.Call |
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 ch.qos.logback.classic.Level.DEBUG | |
import static ch.qos.logback.classic.Level.INFO | |
final String APP = 'my-app' | |
final String LOG_PATH = "/var/log/${APP}" | |
include 'org/springframework/boot/logging/logback/base.xml' | |
appender('STDOUT', ConsoleAppender) { | |
encoder(PatternLayoutEncoder) { |
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 java.io.ByteArrayOutputStream | |
import java.util.zip.GZIPOutputStream | |
import java.util.zip.GZIPInputStream | |
final String THE_RAVEN = '''Once upon a midnight dreary, while I pondered, weak and weary, | |
Over many a quaint and curious volume of forgotten lore— | |
While I nodded, nearly napping, suddenly there came a tapping, | |
As of some one gently rapping, rapping at my chamber door. | |
“’Tis some visitor,” I muttered, “tapping at my chamber door— | |
Only this and nothing more.” |
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 | |
### | |
### This is the script I use to setup time machine to work with my LinkSys attched NAS (USB 3.0 Hard Drive) | |
### | |
#### Configurable Parameters ######### | |
SIZE=300g | |
NAME="Z.org Time Machine Backup" |
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 | |
host=${1} | |
domain=service.consul | |
environment=staging | |
#environment=prod | |
credprefix=mycompany | |
# IP address of jumphost |
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 | |
set -e | |
# Keypairs | |
echo "Finding Key Pairs..." | |
KEY_PAIRS_JSON=`aws ec2 describe-key-pairs --filters 'Name=key-name,Values=packer*'` | |
KEY_PAIRS=`echo "${KEY_PAIRS_JSON}" | grep 'KeyName' |sed -e 's/.*"KeyName": "//' -e 's/",* *$//'` | |
# Security Groups |
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
231a ⌚ 231b ⌛ 23e9 ⏩ 23ea ⏪ 23eb ⏫ 23ec ⏬ 23f0 ⏰ 23f3 ⏳ 25fd ◽ 25fe ◾ 2614 ☔ 2615 ☕ 2648 ♈ 2649 ♉ 264a ♊ 264b ♋ | | |
264c ♌ 264d ♍ 264e ♎ 264f ♏ 2650 ♐ 2651 ♑ 2652 ♒ 2653 ♓ 267f ♿ 2693 ⚓ 26a1 ⚡ 26aa ⚪ 26ab ⚫ 26bd ⚽ 26c4 ⛄ 26c5 ⛅ | | |
26ce ⛎ 26d4 ⛔ 26ea ⛪ 26f2 ⛲ 26f3 ⛳ 26f5 ⛵ 26fa ⛺ 26fd ⛽ 2705 ✅ 270a ✊ 270b ✋ 2728 ✨ 274c ❌ 274e ❎ 2753 ❓ 2754 ❔ | | |
2755 ❕ 2757 ❗ 27bf ➿ 2b1b ⬛ 2b1c ⬜ 2b50 ⭐ 2b55 ⭕ | |
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 org.zirbes.grails.functional.remote | |
import grails.util.BuildSettingsHolder | |
import groovyx.remote.transport.http.HttpTransport | |
/** | |
* Adds null safe grails specific convenient no arg constructor. | |
* https://jira.grails.org/browse/GRAILS-10661 | |
*/ | |
class RemoteControl extends groovyx.remote.client.RemoteControl { |