To use the AWS and Elastic Beanstalk command line application, you need to install them using the Python package installer pip.
sudo pip install awscli awsebcli
#!/bin/bash | |
CONFIG=$(zenity --file-selection --file-filter='*.opvn' --title="Select openvpn config file") | |
[ -n "$CONFIG" ] || exit 1 | |
cd $(dirname "$CONFIG") | |
gksudo /usr/sbin/openvpn $CONFIG |
RewriteEngine On | |
RewriteRule ^(\w{5})$ /index.php?key=$1 |
#!/bin/bash | |
HOOK_NAMES="applypatch-msg pre-applypatch post-applypatch pre-commit prepare-commit-msg commit-msg post-commit pre-rebase post-checkout post-merge pre-receive update post-receive post-update pre-auto-gc" | |
HOOK_DIR=$(git rev-parse --show-toplevel)/.git/hooks | |
DIR=$(dirname "$0") | |
for hook in $HOOK_NAMES; do | |
# If the hook already exists, is executable, and is not a symlink | |
if [ ! -h "$HOOK_DIR/$hook" -a -x "$HOOK_DIR/$hook" ]; then | |
mv "$HOOK_DIR/$hook" "$HOOK_DIR/$hook.local" | |
fi |
<VirtualHost *:80> | |
ServerName localhost | |
DocumentRoot /home/arnold/Projects/ | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
</Directory> | |
<Directory /home/arnold/Projects/> | |
Options Indexes FollowSymLinks |
/** | |
* Use em or rem font-size in Bootstrap 3 | |
*/ | |
@font-size-root: 14px; | |
@font-unit: 0rem; // Pick em or rem here | |
// Convert all variables to em |
//this script is based on coding by Reverse Fad http://www.revfad.com | |
function flip() { | |
var result = flipString(document.f.original.value.toLowerCase()); | |
document.f.flipped.value = result; | |
} | |
function flipString(aString) { | |
var last = aString.length - 1; | |
var result = new Array(aString.length) | |
for (var i = last; i >= 0; --i) { | |
var c = aString.charAt(i) |
#!/bin/sh | |
OLD_DB=$1 | |
NEW_DB=$2 | |
TABLES=`echo "SHOW TABLES IN $1;" | mysql -NB` | |
IFS=" | |
" |
<?php | |
/** | |
* Stream filter to convert HTML5 to XML. | |
* | |
* <code> | |
* $dsn = "php://filter/read=htmltoxml/resource=" . $url; | |
* $xml = XMLReader::open($dsn); | |
* </code> | |
* |
<?php | |
/* This script can to be used when your replacing your WordPress site with | |
* a static site, while keeping your blog on WordPress. | |
* | |
* Make sure you increase the number of syndicated posts to include all posts | |
* in Settings > Reading on your WordPress blog. | |
*/ | |
if ($argc < 2) { |
To use the AWS and Elastic Beanstalk command line application, you need to install them using the Python package installer pip.
sudo pip install awscli awsebcli