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/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
# `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
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
# Run Apptus on Ubuntu (using Vagrant) | |
# vagrant up | |
# vagrant ssh | |
sudo apt-get install openjdk-7-jdk | |
/esales/install_server.sh | |
###### |
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
dig +short myip.opendns.com @resolver1.opendns.com |
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
more_set_headers "Access-Control-Allow-Origin: $http_origin"; | |
more_set_headers "Access-Control-Allow-Credentials: true"; | |
# OPTIONS indicates a CORS pre-flight request | |
if ($request_method = 'OPTIONS') { | |
more_set_headers "Access-Control-Max-Age: 1728000"; | |
more_set_headers "Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH, OPTIONS"; | |
more_set_headers "Access-Control-Allow-Headers: Authorization,Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx-ReqToken,Keep-Alive,X-Requested-With,If-Modified-Since"; | |
more_set_headers "Content-Length: 0"; |
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
# test | |
machine: | |
environment: | |
CIRCLECI: false | |
CI: false | |
branches: | |
ignore: | |
- /.*/ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>VM iframe</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
</head> | |
<body> | |
<iframe src="http://www.victoriamilan.com/" scrolling="no" style="width: 1000px; height: 800px; border: 0px; overflow: auto;"></iframe> |
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
# Show which process is on this port: | |
netstat -tulpn | grep :80 | |
# List urls which miss: | |
varnishtop -i txurl | |
# Activity by IP: | |
varnishlog -b -m TxHeader:88.88.88.88 | |
# Purge URL from curl: |