Skip to content

Instantly share code, notes, and snippets.

View jack126guy's full-sized avatar

Half-Gray jack126guy

View GitHub Profile
@jack126guy
jack126guy / clean_eff_3d20.py
Created September 1, 2018 07:09
Convert EFF's 3d20 passphrase word files ( https://www.eff.org/deeplinks/2018/08/dragon-con-diceware ) to raw lists
#!/usr/bin/env python3
from argparse import ArgumentParser
import re
arg_parser = ArgumentParser(description="Convert EFF's 3d20 passphrase word files to raw lists")
arg_parser.add_argument("input_file", help="Original word file")
arg_parser.add_argument("output_file", help="Raw word list file")
args = arg_parser.parse_args()
@jack126guy
jack126guy / genloss.sh
Created December 23, 2017 08:32
Shell script to demonstrate generation loss in an audio file
#!/bin/sh
COUNT=0
MAX=50
SOURCE='source_file.flac'
FORMAT='genloss%03d.mp3'
FLAGS='-b:a 128k'
while [ $COUNT -lt $MAX ]; do
if [ $COUNT -eq 0 ]; then
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>Comic Sans MS</family>
<accept>
<family>Comic Neue</family>
</accept>
</alias>
</fontconfig>
@jack126guy
jack126guy / JackBot.java
Last active April 8, 2016 09:50
JackBot (Canternet)-specific files for PCommandBot
/*
Main class for JackBot. Like the default main class, it requires a path to the configuration file to be provided on the command line.
PCommandBot: http://github.com/jack126guy/pcommandbot
Custom responders:
* tk.halfgray.pcommandbot.responders.XkcdResponder: http://github.com/jack126guy/pcb-xkcd
Available under the MIT License (below):
@jack126guy
jack126guy / sonic-pi-debian-stretch.md
Created January 23, 2016 20:55
Notes on compiling Sonic Pi on Debian Stretch

Compiling Sonic Pi on Debian Stretch

This supplements the Linux installation instructions from Sonic Pi:

  • Just install ruby instead of ruby2.1. The default is now 2.2, and it works just fine.
  • Of the "try these" packages, I installed only libffi-dev. I don't know if this is strictly necessary.
  • You must use the Qt5 version of Scintilla because of this bug. Follow the instructions for using Qt5.
  • If you get the error:

lrelease: could not exec '/usr/lib/...': No such file or directory

@jack126guy
jack126guy / Dockerfile
Last active January 14, 2016 18:13
Dockerfile for jack126guy/debian-jessie-us
#This file is in the public domain (http://creativecommons.org/publicdomain/zero/1.0/)
FROM debian:jessie
MAINTAINER Jack126Guy <someanon126@gmail.com>
RUN sed -i -e s/httpredir/ftp.us/ /etc/apt/sources.list
@jack126guy
jack126guy / test.php
Last active January 5, 2016 07:42
phpDocumentor test
<?php
/**
* Test file
*
* @author Jack126Guy someanon126@gmail.com
* @license http://creativecommons.org/publicdomain/zero/1.0/
* Creative Commons CC0 1.0 Universal
*/
namespace {
@jack126guy
jack126guy / cl
Created October 12, 2015 02:57
"microsoft-c++-express-2010" Debian package contents
#!/bin/sh
CONF_DIR='/etc/microsoft-c++-express-2010'
if [ -f "$CONF_DIR/cl-base" ]; then
#Trim whitespace
CC="`cat "$CONF_DIR/cl-base" | \
sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
`"
else
@jack126guy
jack126guy / control
Created October 12, 2015 02:53
"dosoption" Debian package contents
Package: dosoption
Version: 1.1
Section: misc
Priority: optional
Architecture: all
Installed-Size: 2
Maintainer: Jack126Guy <someanon126@gmail.com>
Description: Execute programs using DOS-style options
This package contains a script that converts DOS-style
options into Unix-style options.
@jack126guy
jack126guy / questioner.c
Last active August 29, 2015 14:27
Question-binary encoder ("questioner") and decoder ("questions")
/*
Question-binary encoder.
Reads data from standard input and outputs question-binary.
Available under the MIT License (below).
----------
The MIT License (MIT)
Copyright (c) 2015 Jack126Guy