Skip to content

Instantly share code, notes, and snippets.

Dan Church h3xx

Block or report user

Report or block h3xx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@h3xx
h3xx / wiki-100k.txt
Created Mar 5, 2012
Wictionary top 100,000 most frequently-used English words [for john the ripper]
View wiki-100k.txt
#!comment: This is a list of the top 100,000 most frequently-used English words
#!comment: according to Wiktionary.
#!comment:
#!comment: It was compiled in August 2005 and coalesced into a handy list for
#!comment: use in John the Ripper.
#!comment:
#!comment:
#!comment: Pull date: Sun Jan 15 22:03:54 2012 GMT
#!comment:
#!comment: Sources:
View reboot-surfboard.pl
#!/usr/bin/perl -w
use strict;
# Reboot a Surfboard modem because it'll give wired connections a little bit of
# bandwidth while hogging wifi users are forced to renegotiate a connection.
# >:-)
# Last updated 2016-06-20
use constant USER => '*****';
use constant PASS => '*****';
@h3xx
h3xx / README.md
Last active Aug 3, 2018 — forked from ryotarai/README.md
git-commit && change committer and author automatically
View README.md

git-commit-auto

  1. Clone
$ git clone http://gist.github.com/5675296.git /path/to/somewhere
$ echo 'export PATH="/path/to/somewhere:$PATH"' >> ~/.bashrc
$ source ~/.bashrc
@h3xx
h3xx / gifsicle_remove2.sh
Created Jul 28, 2017 — forked from aug2uag/gifsicle_remove2.sh
remove every second frame of GIF with gifsicle
View gifsicle_remove2.sh
#!/bin/bash
# This script will take an animated GIF and delete every other frame
# Accepts two parameters: input file and output file
# Usage: ./<scriptfilename> input.gif output.gif
# Make a copy of the file
cp $1 $2
echo "copy completed"
# Get the number of frames
numframes=`gifsicle $1 -I | grep -P "\d+ images" --only-matching | grep "[0-9][0-9]*" --only-matching`
View REDDIT-modwarning.js
// ==UserScript==
// @name REDDIT-modwarning
// @namespace reddit
// @include http://www.reddit.com/r/*/comments/*
// @include https://www.reddit.com/r/*/comments/*
// @require https://code.jquery.com/jquery-2.2.4.min.js
// @version 0.02
// ==/UserScript==
(function () {
View bluesandbullets-anachronisms.txt
Blues and Bullets - Anachronisms & Historical Inaccuracies
Chapter 2:
(~1950-1957)
- Black guy comes into diner and sits down (diners were segregated until 1964)
(~1930-1937 - "20 years earlier")
- Ness drinks from bottle of liquor (Prohibition in full effect, the real Ness
didn't drink until after prohibition ended)
@h3xx
h3xx / qq.cpp
Last active Feb 7, 2016
Solver for Energy Balance
View qq.cpp
// GistID: c61ccc4fe17d876defa7
#include <iostream>
#include <fstream>
#include <vector>
#include <math.h>
#include <algorithm>
using namespace std;
template <typename T>
@h3xx
h3xx / glitch-jpeg.pl
Created Dec 26, 2013
Add deliberate errors to JPEG files (or any files)
View glitch-jpeg.pl
#!/usr/bin/perl -w
use strict;
use Getopt::Std qw/ getopts /;
sub HELP_MESSAGE {
my $fh = shift || *STDOUT;
print $fh qq%
Usage: $0 IMG_IN IMG_OUT
Cause deliberate errors in an image file (or any file).
View this server is protected by Chuck Norris.txt
▗▄▄▄▄▄▄▄▟▄▄▄▄▄▄
▐██████████████████▙▄▄
███████████████████████▄
▐████████████████████████▌
██████████████████████████
▐██████████████████████████▌
███████████████████████████▌
▗███████████████████████████▀
▟███████████████████████████████████▄▄▖
▐████████████████████████████████████████▄
@h3xx
h3xx / rapidsvn-0.12.0-1_wxWidgets_api_compat.patch
Created Mar 9, 2012
Fix rapidsvn-0.12.0-1 wxWidgets 2.8 compatibility
View rapidsvn-0.12.0-1_wxWidgets_api_compat.patch
This patch fixes the following error in rapidsvn-0.12.0-1 when compiling against wxWidgets without 2.6 compatibility enabled:
preferences_dlg.cpp: In member function 'bool PreferencesDlg::SelectExecutable(const wxString&, wxTextCtrl*)':
preferences_dlg.cpp:129:41: error: 'wxOPEN' was not declared in this scope
listener.cpp: In member function 'void Listener::Data::callbackSslClientCertPrompt()':
listener.cpp:170:44: error: 'wxOPEN' was not declared in this scope
listener.cpp:170:53: error: 'wxFILE_MUST_EXIST' was not declared in this scope
diff -ru rapidsvn-0.12.0-1.orig/src/listener.cpp rapidsvn-0.12.0-1/src/listener.cpp
--- rapidsvn-0.12.0-1.orig/src/listener.cpp 2009-10-20 01:49:10.000000000 -0500
You can’t perform that action at this time.