View .vimrc
" Use Vim settings rather than Vi settings
" Required to be at the beginning of file
set nocompatible
" Required
filetype off
" Turn on syntax highlighting
syntax on
View .tmux.conf
# Ring the bell if any background window rang a bell
set -g bell-action any
# Default termtype. If the rcfile sets $TERM, that overrides this value.
set -g default-terminal screen-256color
# Keep your finger on ctrl, or don't
bind-key ^D detach-client
# Split panes using | and -
View .fvwm2rc
## Environmental variables
# Preferred applications
SetEnv fvwm_browser firefox
SetEnv fvwm_terminal xterm
SetEnv fvwm_editor "xterm -e vim"
SetEnv fvwm_mail "xterm -e mutt"
SetEnv fvwm_chat "xterm -e irssi"
SetEnv fvwm_player "xterm -e cmus"
SetEnv fvwm_filemanager pcmanfm
View .vimrc
" Use Vim settings rather than Vi settings
" Required to be at the beginning of file
set nocompatible
" Required
filetype off
" Turn on syntax highlighting
syntax on
View keybase.md

Keybase proof

I hereby claim:

  • I am grahamg on github.
  • I am grahamg (https://keybase.io/grahamg) on keybase.
  • I have a public key whose fingerprint is 660A 240E 0B96 3C7B 4ADD 89A8 1B3F 81A6 8BC9 33DD

To claim this, I am signing this object:

View djangix.py
#!/usr/bin/python
import os, pwd, grp, subprocess
#Base directory of your django sites
wwwroot = "/var/www/"
#Create list of directories inside wwwroot
dirs = os.listdir(wwwroot)
#Default django project directory
View maldet_automate.sh
#!/bin/bash
download_location=http://www.rfxn.com/downloads/maldetect-current.tar.gz
scan_location=/home?/?
maldet=/usr/local/sbin/maldet
dump_file='/root/maldet_$(pidof -x $maldet)_$(date +"%m-%d-%Y-%T").dump'
hash maldet 2>&- || {
echo >&2 "Maldetect not installed. Installing...";
wget --progress=dot $download_location -O /root/maldetect-current.tar.gz
View find_admin_cpanel.pl
#!/usr/bin/perl
##
# Admin Control Panel Finder v2.1.4
# Home: server@root
##
use HTTP::Request;
use LWP::UserAgent;
View ftp_backup.sh
#!/bin/bash
FTPU="user" # ftp login name
FTPP="passwd" # ftp password
FTPS="ftp.server.com" # remote ftp server
FTPF="/home/backup/" # remote ftp server directory for $FTPU & $FTPP
LOCALD="backup.$(date +%d.%m.%y).tgz"
ncftpput -m -u $FTPU -p $FTPP $FTPS $FTPF $LOCALD
View Linux Command Reference
Plesk port: 8443
R1Soft CDP port: 1167
cPanel port: WHM over SSL = 2087
cPanel over SSL = 2083
regular WHM = 2086
regular cPanel = 2082
feedback loop information:
http://www.eliteemail.com/features/email-delivery/feedback-loops/