I hereby claim:
- I am drizzlyowl on github.
- I am drizzlyowl (https://keybase.io/drizzlyowl) on keybase.
- I have a public key ASAWR06KilncQvc-xv_imgXHLuXfHH9MzkBQQOCu63NnAQo
To claim this, I am signing this object:
# Run apachetop on multiple files as a result of find | |
apachetop $(find /var/log/apache2/ -name "*access.log" -print | sed 's/^/-f '/) -q -l -d 1 |
#! /bin/bash | |
# | |
# Author: Ash Davies | |
# Description: Analyse disk space usage per directory within the apache document root. | |
# Useful for running on a cron job to monitor directory sizes. | |
host=$(hostname) | |
apachedir="/var/www/vhosts" | |
echo "Server name: $host" | |
lsb_release -d |
# applescript | |
# add login item | |
osascript -e 'tell application "System Events" to make login item at end with properties {name: "Notes",path:"/Applications/Notes.app", hidden:false}' | |
# delete login item | |
osascript -e 'tell application "System Events" to delete login item "itemname"' | |
# list loginitems | |
osascript -e 'tell application "System Events" to get the name of every login item' |
#! /bin/bash | |
####################################################################### | |
## USAGE ## | |
####################################################################### | |
## To use these helper functions you first need to make the target ## | |
## environment available by defining the SSH Port number and the ## | |
## branch you wish to deploy from. ## | |
## Substitute 12345 with your port. ## | |
## ## | |
## $ export SSH_PORT=12345 ## |
#! /usr/bin/python | |
# Load libs | |
import os | |
import re | |
import argparse | |
# Register CLI args | |
parser = argparse.ArgumentParser( | |
description='Parse all your WordPress templates to determine which PHP components are not in use', |
#! /bin/bash | |
# | |
# A quick bash script to make it easier for non tech-savvy folks | |
# to set up TLS for a Virtual Host | |
# | |
# @author Ash Davies <a.davies@mixd.co.uk> | |
# @version 1.0.0 | |
# | |
asksure() { |
// ---- | |
// Sass (v3.4.21) | |
// ---- | |
@for $var from 1 through 100 { | |
.n { | |
@if ($var % 3) == 0 and ($var % 5) == 0 { | |
count: "fizzbuzz" | |
} @else if ($var % 3) == 0 { | |
count: "fizz" |
I hereby claim:
To claim this, I am signing this object:
#! /bin/bash | |
# | |
# Author: Ash Davies <github.com/drizzlyowl> | |
# Requires: wp-cli, curl, python, sendmail | |
# Description: Checks through all vhost directories to determine whether WordPress is | |
# installed and whether the version is out of date and sends a summary email to | |
# a recipient | |
# | |
touch $HOME/wordpress-versions.tmp |
#! /bin/bash | |
# | |
# A quick bash script to make it easier for non tech-savvy folks | |
# to create a vhost conf file and enable it for apache2. | |
# | |
# @author Ash Davies <a.davies@mixd.co.uk> | |
# @version 1.1.0 | |
# | |
asksure() { |