This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
## | |
# Admin Control Panel Finder v2.1.4 | |
# Home: server@root | |
## | |
use HTTP::Request; | |
use LWP::UserAgent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
=begin | |
1) When I create a "CoffeePot" object, it should be empty and I will know this because it returns true when I ask it "coffee_pot.is_empty?", and it tells me 0 when I ask it "coffee_pot.cups_left" | |
2) When I call the "coffee_pot.fill" method it should change state to have 10 cups left in it, so when I call the "coffee_pot.cups_left" method it returns 10. If I ask "coffee_pot.is_empty?", it should return false. | |
3) every time I call the "coffee_pot.pour_cup" method, there should be one less cup remaining. | |
4) if I call "coffee_pot.pour_cup" when the pot is empty, it should raise an exception. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Backbone example</title> | |
<script type="text/javascript" src="jquery.min.js"></script> | |
<script type="text/javascript" src="underscore.js"></script> | |
<script type="text/javascript" src="backbone.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Destination host machine name | |
DEST="beta.grahamg.org" | |
# User that rsync will connect as | |
# Are you sure that you want to run as root, though? | |
USER="remote_backup" | |
# Directory to copy from on the source machine. |