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
curl -u username:password \ | |
--header 'X-GitHub-OTP: your_code_here' \ | |
--request POST \ | |
--data '{"title":"Merge staging into master", "head":"staging", "base":"master"}' \ | |
https://api.github.com/repos/zoozoo-ab/zoozoo/pulls |
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
# `symfony:verify_console` task verify if application is bootable (config¶meters.yml contains all required keys). | |
# It outputs error text if app/console can't boot. | |
after "symfony:composer:install", "symfony:verify_console" | |
################################################################# | |
namespace :symfony do | |
task :verify_console do | |
capifony_pretty_print "--> Run app/console to verify if parameters.yml has all required keys and application is runnable" |
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 | |
# This is universal part for all FontAwesome projects (I suppose :) | |
find src -type f -iname '*.css' -or -iname '*.js' -or -iname '*.twig' -exec sed -i -r \ | |
-e "s,(['\"\t ])icon-fixed-width(['\"\t ]),\1fa-fw\2,g" \ | |
-e "s,(['\"\t ])icon-large(['\"\t ]),\1fa-lg\2,g" \ | |
-e "s,(['\"\t ])icons-ul(['\"\t ]),\1fa-ul\2,g" \ | |
-e "s,(['\"\t ])icon-li(['\"\t ]),\1fa-li\2,g" \ | |
-e "s,(['\"\t ])icon-spin(['\"\t ]),\1fa-spin\2,g" \ |
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 | |
time ./s3-mp-upload.py -f -np 10 -s 20 -t 300 --insecure archive.zip s3://builds.antonbabenko.com/archive.zip | |
s3cmd setacl --acl-public s3://builds.antonbabenko.com/archive.zip |
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 | |
##### | |
# Watch changes in default.vcl and reload a varnish config: | |
# sudo su - | |
# fswatch -o /usr/local/etc/varnish/default.vcl | xargs -n1 /Users/Bob/bin/reloadvcl | |
#### | |
FILE="/usr/local/etc/varnish/default.vcl" |
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 | |
{ varnishd -V; } 2> version_file ; cat version_file | head -1 | awk '{ print out substr($4, 0, 7) }' |
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
Process: varnishd [50834] | |
Path: /usr/local/Cellar/varnish/4.0.2/sbin/varnishd | |
Identifier: varnishd | |
Version: 0 | |
Code Type: X86-64 (Native) | |
Parent Process: varnishd [50225] | |
Responsible: varnishd [50834] | |
User ID: -2 | |
Date/Time: 2014-12-11 21:53:15.438 +0100 |
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
<?php | |
// Fetch the raw POST body containing the message | |
$postBody = file_get_contents('php://input'); | |
error_log($postBody); | |
// JSON decode the body to an array of message data | |
$message = json_decode($postBody, true); | |
if ($message) { |
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
curl -H "Authorization: token $GITHUB_TOKEN" \ | |
-X POST https://api.github.com/repos/antonbabenko/myrepo/issues/123/comments \ | |
--data '{"body": "Nice change"}' |
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
2016/08/10 13:16:58 [INFO] Terraform version: 0.7.0 | |
2016/08/10 13:16:58 [DEBUG] Detected home directory from env var: /Users/Bob | |
2016/08/10 13:16:58 [DEBUG] Detected home directory from env var: /Users/Bob | |
2016/08/10 13:16:58 [DEBUG] Attempting to open CLI config file: /Users/Bob/.terraformrc | |
2016/08/10 13:16:58 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2016/08/10 13:16:58 [DEBUG] Detected home directory from env var: /Users/Bob | |
2016/08/10 13:16:59 [WARN] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id | |
2016/08/10 13:16:59 [TRACE] Graph after step *terraform.ConfigTransformer: | |
data.terraform_remote_state.application - *terraform.GraphNodeConfigResource |