Skip to content

Instantly share code, notes, and snippets.

View TimMurphy123's full-sized avatar

Tim Murphy TimMurphy123

  • Ireland
View GitHub Profile

Keybase proof

I hereby claim:

  • I am timmurphy123 on github.
  • I am timmurphy (https://keybase.io/timmurphy) on keybase.
  • I have a public key whose fingerprint is 8F11 0FFF A81B 9D8C 02D1 636B 6AA7 872E C3DA 0D5B

To claim this, I am signing this object:

@TimMurphy123
TimMurphy123 / shellcommand.sh
Created February 27, 2017 20:29 — forked from jankkhvej/shellcommand.sh
script to parse PHP short open tags and convert ones to normal
find project/dir/ -type f -iname "*.php" -exec php -d short_open_tag=On the_script.php {} \;
@TimMurphy123
TimMurphy123 / shellcommand.sh
Created February 27, 2017 20:29 — forked from jankkhvej/shellcommand.sh
script to parse PHP short open tags and convert ones to normal
find project/dir/ -type f -iname "*.php" -exec php -d short_open_tag=On the_script.php {} \;
@TimMurphy123
TimMurphy123 / lynis.sh
Created February 15, 2017 00:48 — forked from foozmeat/lynis.sh
Script to run lynis and notify you if something needs attention
#!/bin/sh
#set -x
EMAIL=someone@example.com
OLDHOME=${HOME}
cd ~/lynis
. /etc/apache2/envvars
./lynis -c -Q -q --profile /etc/lynis/default.prf
@TimMurphy123
TimMurphy123 / bash-cheatsheet.sh
Created February 12, 2017 13:12 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@TimMurphy123
TimMurphy123 / bash-cheatsheet.sh
Created February 12, 2017 13:12 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@TimMurphy123
TimMurphy123 / bash-cheatsheet.sh
Created February 12, 2017 13:11 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@TimMurphy123
TimMurphy123 / update-route53.sh
Created February 7, 2017 00:13 — forked from cobusbernard/update-route53.sh
Route 53 update script.
#!/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
@TimMurphy123
TimMurphy123 / user-data.sh
Created February 6, 2017 12:22 — forked from codeinthehole/user-data.sh
Get the value of an EC2 instance's tag
#!/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:
#
# {
@TimMurphy123
TimMurphy123 / tmux.md
Created February 4, 2017 23:47 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a