(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
#!/usr/bin/env bash | |
# | |
# Get the value of a tag for a running EC2 instance. | |
# | |
# This can be useful within bootstrapping scripts ("user-data"). | |
# | |
# Note the EC3 instance needs to have an IAM role that lets it read tags. The policy | |
# JSON for this looks like: | |
# | |
# { |
#!/bin/bash | |
# Copied from http://willwarren.com/2014/07/03/roll-dynamic-dns-service-using-amazon-route53/ | |
# Externalizing the zone ID and CNAME | |
if [ -z "$1" ] | |
then | |
echo "The first argument needs to be the Hosted Zone ID, i.e. BJBK35SKMM9OE" | |
exit 1 | |
fi |
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
#!/bin/sh | |
#set -x | |
EMAIL=someone@example.com | |
OLDHOME=${HOME} | |
cd ~/lynis | |
. /etc/apache2/envvars | |
./lynis -c -Q -q --profile /etc/lynis/default.prf |
find project/dir/ -type f -iname "*.php" -exec php -d short_open_tag=On the_script.php {} \; |
find project/dir/ -type f -iname "*.php" -exec php -d short_open_tag=On the_script.php {} \; |