AWS cli
Installation
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
<VirtualHost *:80> | |
ServerName localhost | |
DocumentRoot /home/arnold/Projects/ | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
</Directory> | |
<Directory /home/arnold/Projects/> | |
Options Indexes FollowSymLinks |
#!/bin/sh | |
OLD_DB=$1 | |
NEW_DB=$2 | |
TABLES=`echo "SHOW TABLES IN $1;" | mysql -NB` | |
IFS=" | |
" |
<?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) { |
<?php | |
/** | |
* Parent class | |
*/ | |
class mother | |
{ | |
protected $myvar; | |
function __construct($value) |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ ../thumb.php [QSA,L] | |
</IfModule> |
#!/bin/bash | |
for ID in $(xinput list | grep "Logitech Unifying Device" | perl -pe 's/^.*?id=(\d+).*$/\1/'); do | |
xinput set-button-map $ID 1 2 3 4 5 6 7 8 9 2 11 12 13 14 15 16 17 18 19 20 2>/dev/null | true; | |
done |
function mvdown { mv "$1" /tmp/_mvdown_; rmdir $(dirname "$1"); mv /tmp/_mvdown_ $(dirname "$1"); } |
<?php | |
/** | |
* A very simple autoloader | |
*/ | |
class Autoloader | |
{ | |
/** | |
* Only use this class statically. | |
* @ignore |
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 |