Skip to content

Instantly share code, notes, and snippets.

@pgib
pgib / README.md
Last active August 29, 2015 13:58
Simple Unix program to output a terminal bell (beep)

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.

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 August 29, 2015 14:08
My oh-my-zsh theme.
# 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
$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
#!/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 October 30, 2009 23:55
Proof-of-concept to hide an exploit used to upload and execute a malicious script.
#!/usr/bin/perl
$pid = fork();
if ($pid)
{
print("Deleting $0 to be sneaky...");
unlink($0);
exit(0);
}
delete_messages() { for i in `postqueue -p|grep $1 | awk '{print $1}'`; do postsuper -d $i; done; }
show_deferred_message() { postcat `find /var/spool/postfix -name $1 | grep deferred` | less; }
# add this to your ~/.bash_profile
alias delete_tweetie_cache="~/Library/Caches/com.atebits.tweetie.profile-images"