Skip to content

Instantly share code, notes, and snippets.

View logiconcepts819's full-sized avatar

Ron Wright logiconcepts819

View GitHub Profile
@logiconcepts819
logiconcepts819 / Audacity-Acoustic-Preset.txt
Last active September 24, 2023 12:43
This is the EQ filter curve for the "acoustic" EQ preset from Audacity versions older than 1.3.13. To apply this effect in newer versions of Audacity, go to "Effect" -> "Filter Curve". Then under "Manage", click "Import..." and select the Audacity-Acoustic-Preset.txt file. Then click OK in the effect window to apply the effect.
FilterCurve:f0="30" f1="31" f2="50" f3="63" f4="70" f5="100" f6="125" f7="200" f8="250" f9="300" f10="400" f11="500" f12="600" f13="700" f14="800" f15="900" f16="1000" f17="2000" f18="3000" f19="4000" f20="5000" f21="6000" f22="7000" f23="8000" f24="9000" f25="10000" f26="15000" f27="16000" FilterLength="8191" InterpolateLin="0" InterpolationMethod="B-spline" v0="-20" v1="-20" v2="-20" v3="5" v4="4.4" v5="3.3" v6="2.5" v7="1.7" v8="0" v9="0" v10="0" v11="0" v12="0" v13="0" v14="0" v15="0" v16="0" v17="0" v18="-1.5" v19="-2.5" v20="-3.3" v21="-4" v22="-4.5" v23="-5" v24="-10" v25="-15" v26="-20" v27="-20"
#!/usr/bin/env python3
import sys, time
# This string tells stdout to set the cursor to the beginning of the line and
# clear the line. \r is a carriage return, which sets the cursor to the
# beginning of the line, and \033[K is an ANSI escape sequence that clears
# everything from the current cursor position to the end of the line.
CLEAR_LINE_CODE = '\r\033[K'
@logiconcepts819
logiconcepts819 / stack-smash.c
Last active May 12, 2016 03:27
An example of a stack smash buffer overflow on an x86-64 Linux OS
/**
* An example of a stack smash buffer overflow on an x86-64 Linux OS
* Author: Ronald Joseph Wright
*
* Recommended build command (after exploit is working):
*
* gcc -O0 -zexecstack -fno-stack-protector -o stack-smash stack-smash.c
**/
#include <stdint.h>
@logiconcepts819
logiconcepts819 / pennsylvania-cities-without-es.py
Last active March 21, 2016 16:09
This is a Python script that obtains the list of Pennsylvania cities without e's. This script has been tested with both Python 2.7.6 and Python 3.4.3 on Ubuntu 14.04 on Monday, March 21, 2016.
import sys
if sys.version_info[0] < 3:
# Python 2.x
import urllib2
def read_from_url(url):
return urllib2.urlopen(url).read()
else:
# Python 3.x
import urllib.request
def read_from_url(url):