Skip to content

Instantly share code, notes, and snippets.

Half-Gray jack126guy

Block or report user

Report or block jack126guy

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
@jack126guy
jack126guy / electribe-sampler-e2ssample-format.md
Last active Jun 13, 2019
Partial format specification for the e2sSample.all file used by the Korg Electribe Sampler
View electribe-sampler-e2ssample-format.md

Electribe Sampler e2sSample.all Data Format

Based on examination of the source code for e2sEdit and Oe2sSLE.

Overview

The file is just a concatenation of WAVE files with a header to indicate where each file begins. Additional metadata such as sample name and loop point are stored in each WAVE file as a RIFF chunk with type "korg", which is conventionally at the end of the file.

Unless otherwise specified, all integers are little-endian unsigned.

@jack126guy
jack126guy / gradient-test.svg
Last active Mar 24, 2019
Test of support for "currentColor" in SVG gradients
View gradient-test.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jack126guy
jack126guy / babscon-https.md
Created Nov 27, 2018
Comments on BABSCon's HTTPS config
View babscon-https.md

The HTTPS on BABSCon's website (babscon.com) is a little funky.

The following tests were conducted around 2018-11-27T06:32Z (the time stamps indicated are UTC-8).

$ wget -O /dev/null --server-response https://babscon.com/
--2018-11-26 22:32:09--  https://babscon.com/
View clean_eff_3d20.py
#!/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 Dec 23, 2017
Shell script to demonstrate generation loss in an audio file
View genloss.sh
#!/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
@jack126guy
jack126guy / audiocmp.py
Created Aug 12, 2017
Check if two audio files have identical audio
View audiocmp.py
#!/usr/bin/env python
"""Check if two audio files have identical audio.
The ffmpeg command-line utility must be installed.
Usage: python audiocmp.py [file 1] [file 2]
"""
import sys
View 30-comic-sans-aliases.conf
<?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 / sonic-pi-debian-stretch.md
Created Jan 23, 2016
Notes on compiling Sonic Pi on Debian Stretch
View sonic-pi-debian-stretch.md

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 Jan 14, 2016
Dockerfile for jack126guy/debian-jessie-us
View Dockerfile
#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 Jan 5, 2016
phpDocumentor test
View test.php
<?php
/**
* Test file
*
* @author Jack126Guy someanon126@gmail.com
* @license http://creativecommons.org/publicdomain/zero/1.0/
* Creative Commons CC0 1.0 Universal
*/
namespace {
You can’t perform that action at this time.