This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 | |
| #Script requires 'md5' and 'terminal-notifier' to be installed | |
| JBOSS_LOG=/usr/local/opt/jboss-eap-6.4/standalone/log/server.log | |
| #Monitors JBoss logfile for keyword, notifies | |
| while x=0; | |
| fileHash=$(md5 $JBOSS_LOG | cut -d "=" -f2) | |
| sleep 1 |
This file contains hidden or 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
| //Paste into your URL bar in Chrome, remove this comment line (make sure you keep the "javascript:" bit, it might get stripped): | |
| javascript: var imgList = document.querySelectorAll('.s-access-image'); document.querySelector('body').innerHTML = ''; for (i=0; i < imgList.length; i++) {document.querySelector('body').innerHTML += imgList[i].outerHTML.replace('src', 'onclick="this.parentNode.removeChild(this)" src');} |