Skip to content

Instantly share code, notes, and snippets.

View dfischer's full-sized avatar

0x44 0x46 dfischer

View GitHub Profile
@dfischer
dfischer / sclang-dynamic-effects.sc
Created June 2, 2022 06:50 — forked from ckmahoney/sclang-dynamic-effects.sc
Demonstrating a method to route effects dynamically in SuperCollider.
/**
Routing dynamic effects for any Synth
The issue was that a list of arguments can not be passed in as args for SynthDef.
For examle say you want to apply both a reverb and delay to a hat sound.
One way is to write explicit args for each effect :
SynthDef(\hat, {|out=0, reverbChannel =4, delayChannel = 6|
@dfischer
dfischer / static-files-dynamic-compressor.sc
Created June 2, 2022 06:50 — forked from ckmahoney/static-files-dynamic-compressor.sc
Creating a dynamic compressor applied from two standard audio files in SuperCollider.
/**
Here we create a "sidechain compressor" effect.
Given two audio files, we are able to have one of the files change its volume in response to the other.
This is an extremely useful and versatile effect: All professional music mastering involves dynamic compression
at many scales.
In contemporary and art music, it is applied lightly. In dance music and popular styles, it is often heavy.
This is a heavy example, for drastic effect. Here we are:
@dfischer
dfischer / support-for-harmonic-theory.sc
Created June 2, 2022 06:50 — forked from ckmahoney/support-for-harmonic-theory.sc
An empirical example demonstrating the use of harmonics to generate music from noise
/**
How to Emperically measure the Quality of Music,
or Applying Harmonics to Non-Musical Source to Produce a Musical Signal
When people ask for empirical evidence that Harmonic Theory works,
we must first agree on a method to measure the "musicality" of a signal.
Generally we can agree that a pure White Noise signal (even distribution of frequencies across the given range in Hertz) is not musical. In the domain of sound, it is the antithesis of music because there is no discrete rhythmic structure and no discrete harmonic structure (example 1)
@dfischer
dfischer / six_step_reframe.py
Created May 16, 2022 04:03 — forked from calroc/six_step_reframe.py
This is Python pseudocode for the deprecated Six Step Reframe pattern.
from nlp import unconscious_connection
behavior = 'some behaviour you want to change'
urmind = unconscious_connection()
G = urmind.get_generative_part()
I = urmind.intention_of(behavior)
@dfischer
dfischer / socat_caesar_dpi.md
Created February 27, 2022 22:03 — forked from gmurdocca/socat_caesar_dpi.md
Circumventing Deep Packet Inspection with Socat and rot13

Circumventing Deep Packet Inspection with Socat and rot13

I have a Linux virtual machine inside a customer's private network. For security, this VM is reachable only via VPN + Citrix + Windows + a Windows SSH client (eg PuTTY). I am tasked to ensure this Citrix design is secure, and users can not access their Linux VM's or other resources on the internal private network in any way outside of using Citrix.

The VM can access the internet. This task should be easy. The VM's internet gateway allows it to connect anywhere on the internet to TCP ports 80, 443, and 8090 only. Connecting to an internet bastion box on one of these ports works and I can send and receive clear text data using netcat. I plan to use good old SSH, listening on tcp/8090 on the bastion, with a reverse port forward configured to expose sshd on the VM to the public, to show their Citrix gateway can be circumvented.

Rejected by Deep Packet Inspection

I hit an immediate snag. the moment I try to establish an SSH or SSL connection over o

@dfischer
dfischer / uaf_to_prevsize.c
Created September 18, 2021 17:56 — forked from ignis-sec/uaf_to_prevsize.c
If this is turns out to be a new method, i nominate "House of Flames"
int main(){
unsigned long* a = malloc(0x508);
unsigned long* b = malloc(0x508);
memset(a,'A',0x508);
memset(b,'B',0x508);
printf("################ A: %lx\n",a);
printf("################ B: %lx\n",b);
printf("################ A->size: %llx\n",*(a-1));
#https://twitter.com/officialmcafee/status/1397568860082122752
#https://twitter.com/ahakcil/status/1397888724936105987
import random
import copy
RST = '\033[0m'
def rand_data(size):
d = []
@dfischer
dfischer / MergeNodeAlgorithm.hpp
Created September 18, 2021 15:15 — forked from vy/MergeNodeAlgorithm.hpp
Merging Two Binary Search Trees in O(logn) Space
#ifndef MERGE_NODE_ALGORITHM_HPP
#define MERGE_NODE_ALGORITHM_HPP
template <class T>
class MergeNodeAlgorithm {
public:
virtual bool empty() const = 0;
virtual void pop() = 0;
virtual T get() const = 0;
@dfischer
dfischer / 0_tweegeemee.txt
Created August 21, 2021 16:06 — forked from rogerallen/0_tweegeemee.txt
tweegeemee archive 10/19/2019
Archive of the code for images posted to https://twitter.com/tweegeemee
Started October 19, 2019
:clisk-random-seed 191019
Learn more at https://github.com/rogerallen/tweegeemee
@dfischer
dfischer / carl_hewitt_actor_model.md
Created March 31, 2021 23:03 — forked from rbishop/carl_hewitt_actor_model.md
Notes from Carl Hewitt on the Actor Model

Carl Hewitt on Actors

Actor - Fundamental unit of computation, a computation model - not just a form of concurrency

An Actor has three essential elements:

  • 1 - Processing - you have to get something done
  • 2 - Storage - you have to be able to remember things
  • 3 - Communication