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 python | |
# Thanks to https://github.com/tomekwojcik/flask-htauth/blob/master/flask_htauth/htpasswd.py | |
import argparse | |
import os | |
import sys | |
import base64 | |
import codecs | |
import crypt | |
from hashlib import md5, sha1 | |
import logging |
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 python | |
import sys | |
import time | |
import os.path | |
import subprocess | |
import multiprocessing.pool as mpool | |
puppet = '/usr/bin/puppet' | |
results = [] | |
start = time.time() |
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 | |
set -e | |
TAG="$1" | |
TIMESTAMP="$(date "+%Y%m%d.%H%M%S")" | |
BRANCH="$( git branch | awk '{ print $NF }' )" | |
## If this is a development build, then set tag depending on last tag +1 | |
if [ "${BRANCH}" == "develop" ] ; then | |
TAG="$( git tag -l | tail -n 1 )1" |
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
# this is an rsync-excludes format list of files to exclude. |
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 | |
[ -f ./mage ]|| { echo "Mage not found! Exiting!"; exit 1; } | |
chmod +x mage | |
./mage mage-setup . | |
./mage config-set preferred_state stable | |
./mage sync | |
./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force | |
php shell/indexer.php reindexall |
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 -X PURGE --header 'Host: www.domein.nl' http://<loadbalancer ip>/.* -A "UserAgentString" |
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 | |
PATH='/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin' | |
INSTALL_WORDPRESS_EXTENSIONS=( | |
"better-wp-security" | |
"disqus-comment-system" | |
"redis-cache" | |
"wp-smushit" | |
"w3-total-cache" | |
"wp-optimize" |
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 python | |
# for example itself see: https://gist.github.com/fliphess/7836469 | |
import argparse | |
import bcrypt | |
import getpass | |
import sys | |
import os.path | |
import re | |
def parse_options(): |
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 | |
header('Pragma: no-cache'); | |
header('Cache-Control: private, no-cache, no-store, max-age=0, must-revalidate, proxy-revalidate'); | |
echo "Flushing redis cache\n"; | |
echo shell_exec('/usr/bin/redis-cli -n 0 "flushall"'); | |
?> |
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 | |
header('Pragma: no-cache'); | |
header('Cache-Control: private, no-cache, no-store, max-age=0, must-revalidate, proxy-revalidate'); | |
$a = shell_exec('varnishstat -1'); | |
echo "<pre>$a</pre>"; | |
?> |
OlderNewer