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
ps -ef | grep "standalone" | grep -v -e 'grep\|Java'; if [[ $? -eq 1 ]]; then; sh /usr/local/opt/jboss-eap-6.4/bin/standalone.sh; else; tail -f /usr/local/opt/jboss-eap-6.4/standalone/log/server.log; fi; |
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
# No .editorconfig files above the root directory | |
root = true | |
[*] | |
indent_style = space | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
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
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH | |
SSLProtocol All -SSLv2 -SSLv3 | |
SSLHonorCipherOrder On | |
SSLSessionTickets Off | |
Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains; preload" | |
Header always set X-Frame-Options DENY | |
Header always set X-Content-Type-Options nosniff | |
# Requires Apache >= 2.4 | |
SSLCompression off | |
SSLUseStapling on |
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
var request = require('request'), | |
baseUrl = "https://s3.amazonaws.com/Minecraft.Download/versions/", | |
queryUrl = baseUrl + "versions.json", | |
downloadUrl = "https://s3.amazonaws.com/Minecraft.Download/versions/"; | |
request(queryUrl, function(error, response, body) { | |
var mcReply = JSON.parse(body); | |
console.log(downloadUrl + mcReply.latest.snapshot + "/minecraft_server." + mcReply.latest.snapshot + ".jar"); | |
}); |
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 | |
#Use cautiously, cherry picks can end up in merge conflicts...and cherry-pick --continue abort etc. | |
#Array of SHAs to cherry pick | |
shas=("6736214" "6364c9c" "b25a80e" "6af051f" "571bf75" "5099a13" "c2caa98") | |
#Array length | |
shasLength=${#shas[@]} |
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
(function() { | |
var demoRelated = jQuery('tr > td:contains("DEMO")').parent(); | |
var par = jQuery('tr > td:contains("DEMO")').parents('#pull-requests-table'); | |
var demoCollector = []; | |
var orderedItems = []; | |
var patReg = /[0-9]+/; | |
for (var i = 0; i < demoRelated.length; i++) { | |
var demoItemText = jQuery(demoRelated[i]).find('a:contains("DEMO")').text().match(patReg); | |
var demoItemSelector = jQuery(demoRelated[i]).data('pullrequestid'); | |
var demoItem = { |
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/sh | |
#Path to your git needs to be here | |
PATH=/usr/local/bin:/usr/bin | |
#6 columns markdown table doc | |
echo "|PR TAG|DATE|AUTHOR|SHA|ORIGINAL BRANCH|MESSAGE|" > demo-diff.md | |
# TAGS USED BELOW ARE STATIC, ADJUST | |
# Ensure pretty format has same amount of columns as above echo, this appends into that file |
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 | |
#Array of image ids, find these by checking `tugboat images` | |
images=("14191201" "14191223" "14191250" "14191302" "14191377" "14191400" "14191425" "14191441" "14191462" "14191483" "14191505" "14191517" "14191537" "14191615" "14191636" "14191655" "14191674" "14191698" "14191729" "14191747" "14191793" "14191768" "14191812") | |
#Array length | |
imageLength=${#images[@]} | |
for (( i=0; i<${imageLength}; i++)); | |
do |
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/sh | |
PATH=/usr/local/bin:/bin:/usr/bin | |
if [ "$1" = "on" ]; then | |
tugboat create mikecraft -i `tugboat images | grep "mikecraft" | awk -F: '{print $2}' | sed 's/,.*//'` -r3 -s63 && tugboat wait mikecraft -s active && tugboat password-reset mikecraft && yes | tugboat destroy_image _mikecraft | |
elif [ "$1" = "off" ]; then | |
tugboat halt mikecraft && tugboat wait -n mikecraft -s off && tugboat snapshot `/bin/date +%s`_mikecraft mikecraft && sleep 180 && yes | tugboat destroy mikecraft | |
else | |
echo 'Turn Mikecraft on or off?' | |
fi |
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
#!/usr/bin/env ruby | |
# | |
# CLI tool for locating and removing a Homebrew installation | |
# http://brew.sh/ | |
# | |
# Copyright (C) 2014 Stephen C. Benner | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |