Skip to content

Instantly share code, notes, and snippets.

@pgib
pgib / README.md
Last active Aug 29, 2015
Simple Unix program to output a terminal bell (beep)
View README.md

Compile with:

gcc beep.c -o beep

Or on platforms that no longer have gcc by default (e.g. FreeBSD 10):

cc beep.c -o beep

Made for tmux/screen to get your attention in a background window.

View keybase.md

Keybase proof

I hereby claim:

  • I am pgib on github.
  • I am pgib (https://keybase.io/pgib) on keybase.
  • I have a public key whose fingerprint is 68AE 1949 8D8A 05E4 E9B1 4654 A811 19F0 00B6 F040

To claim this, I am signing this object:

@pgib
pgib / .zshrc
Last active Aug 29, 2015
My oh-my-zsh theme.
View .zshrc
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="pgib"
# Example aliases
View Link Target Fixer Bookmarklet.js
View Trimmed wordlist.php
$wordlist = "2on1|3rdeye|3rdleg|3some|420|4twenty|60nine|666|analannie|analsex|anus|ass|assbagger|assblaster|assclown|asscowboy|assfuck|assfucker|asshole|assholes|asshore|assjockey|asskiss|asskisser|assklown|asslick|asslicker|asslover|assman|assmonkey|assmunch|assmuncher|asspacker|asspirate|asspuppies|assranger|asswhore|asswipe|athletesfoot|axingtheweasel|backdoor|backdoorman|backseat|badass|badfuck|balllicker|balls|ballsack|banging|barelylegal|barf|barface|barfface|bastard|bazongas|bazooms|beastality|beastiality|beat-off|beatoff|beatyourmeat|bhard|bi-sexual|biatch|bigass|bigbastard|bigbitch|bigbutt|bisexual|bitch|bitches|bitchin|bitchy|biteme|blackout|blowjob|bm|boner|bong|boobies|boobs|boody|breast|breastjob|breastlover|breastman|budweiser|bullcrap|bulldike|bulldyke|bullshit|bumblefuck|bumfuck|bunghole|butchbabes|butchdike|butchdyke|butt-bang|butt-fuck|butt-fucker|butt-fuckers|buttbang|buttface|buttfuck|buttfucker|buttfuckers|butthead|buttman|buttpirate|buttplug|buttstain|cameltoe|carpetmuncher|carruth|cher
View database_backup.sh
#!/bin/sh
#==========================================================================
# RETRIX HOSTING - INTERNAL USE ONLY
#==========================================================================
#
if [ -z $1 ]; then
cat << __EOT
Usage: $DB_NAME <backup path> <database name> <db user> <db password>
@pgib
pgib / sneak.pl
Created Oct 30, 2009
Proof-of-concept to hide an exploit used to upload and execute a malicious script.
View sneak.pl
#!/usr/bin/perl
$pid = fork();
if ($pid)
{
print("Deleting $0 to be sneaky...");
unlink($0);
exit(0);
}
View delete_messages.sh
delete_messages() { for i in `postqueue -p|grep $1 | awk '{print $1}'`; do postsuper -d $i; done; }
View show_deferred_message.sh
show_deferred_message() { postcat `find /var/spool/postfix -name $1 | grep deferred` | less; }
View delete_tweetie_cache
# add this to your ~/.bash_profile
alias delete_tweetie_cache="~/Library/Caches/com.atebits.tweetie.profile-images"
You can’t perform that action at this time.