View qq.cpp
// GistID: c61ccc4fe17d876defa7 | |
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <math.h> | |
#include <algorithm> | |
using namespace std; | |
template <typename T> |
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) |
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 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 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 => '*****'; |
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: |
OlderNewer