Skip to content

Instantly share code, notes, and snippets.

diff --git a/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp b/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp
index 71caf42d8..39146d7d6 100644
--- a/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp
+++ b/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp
@@ -7,7 +7,6 @@
#include "glm/common.hpp"
#include "ofLog.h"
#include "ofEvents.h"
-#include <sndfile.h>
#include <yaml-cpp/yaml.h>
#include <iostream>
#include <string>
int main() {
YAML::Node node = YAML::Load(R"foo(
a:
b: c
d: 1
)foo");
@kerrickstaley
kerrickstaley / gist:34fab4f49b8bc264332fb3dd055a5b68
Created February 23, 2021 05:17
Clang -isystem option does not take precedence over /usr/local/include
$ clang++ -isystem src -Wp,-v -E -
clang -cc1 version 12.0.0 (clang-1200.0.32.29) default target x86_64-apple-darwin19.6.0
ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/local/include"
ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
src
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include
@kerrickstaley
kerrickstaley / main.cc
Created May 11, 2020 22:05
Program for reproducing flamegraph issue with pprof
#include <iostream>
#include <cstdint>
uint64_t square(uint64_t n) {
return n * n;
}
uint64_t square_sum(uint64_t m) {
uint64_t ret = 0;
for (uint64_t i = 1; i <= m; i++) {
➜ build curl https://aur.archlinux.org/cgit/aur.git/snapshot/afl-qemu.tar.gz | tar -xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3732 0 3732 0 0 6390 0 --:--:-- --:--:-- --:--:-- 6379
➜ build cd afl-qemu
➜ afl-qemu makepkg
==> Making package: afl-qemu 2.52b-1 (Sun 26 Apr 2020 03:38:05 PM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...

Keybase proof

I hereby claim:

  • I am kerrickstaley on github.
  • I am kerrickstaley (https://keybase.io/kerrickstaley) on keybase.
  • I have a public key ASCULihrEnYPTLqGeZRmT_PZxTQ8wqc_S967pXM5sX69Vgo

To claim this, I am signing this object:

@kerrickstaley
kerrickstaley / dmesg.log
Created May 10, 2019 07:46
Output of sudo dmesg
[ 0.000000] microcode: microcode updated early to revision 0x9a, date = 2018-07-16
[ 0.000000] Linux version 5.0.13-arch1-1-ARCH (builduser@heftig-13472) (gcc version 8.3.0 (GCC)) #1 SMP PREEMPT Sun May 5 18:05:41 UTC 2019
[ 0.000000] Command line: initrd=\intel-ucode.img initrd=\initramfs-linux.img root=/dev/nvme0n1p3 rw
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
@kerrickstaley
kerrickstaley / journalctl.log
Created May 10, 2019 07:28
Output of sudo journalctl -b
-- Logs begin at Sun 2017-10-29 22:05:16 CET, end at Fri 2019-05-10 09:24:57 CEST. --
May 10 09:17:42 lillun kernel: microcode: microcode updated early to revision 0x9a, date = 2018-07-16
May 10 09:17:42 lillun kernel: Linux version 5.0.13-arch1-1-ARCH (builduser@heftig-13472) (gcc version 8.3.0 (GCC)) #1 SMP PREEMPT Sun May 5 18:05:41 UTC 2019
May 10 09:17:42 lillun kernel: Command line: initrd=\intel-ucode.img initrd=\initramfs-linux.img root=/dev/nvme0n1p3 rw
May 10 09:17:42 lillun kernel: KERNEL supported cpus:
May 10 09:17:42 lillun kernel: Intel GenuineIntel
May 10 09:17:42 lillun kernel: AMD AuthenticAMD
May 10 09:17:42 lillun kernel: Hygon HygonGenuine
May 10 09:17:42 lillun kernel: Centaur CentaurHauls
May 10 09:17:42 lillun kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
@kerrickstaley
kerrickstaley / parse_serato_crates.py
Created March 22, 2019 17:02
Functions for parsing Serato DJ crates
import struct
def decode_struct(data):
ret = []
i = 0
while i < len(data):
tag = data[i:i+4].decode('ascii')
length = struct.unpack('>I', data[i+4:i+8])[0]
value = data[i+8:i+8+length]
value = decode(value, tag=tag)
@kerrickstaley
kerrickstaley / gist:9c16dcac4d7cde5313c3ce46c81da2ba
Created December 25, 2017 07:04
ip a output when tethering on phone
2: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether d4:25:8b:e8:b7:d7 brd ff:ff:ff:ff:ff:ff
inet 192.168.43.80/24 brd 192.168.43.255 scope global dynamic noprefixroute wlp2s0
valid_lft 3554sec preferred_lft 3554sec
inet6 2600:1014:b10c:39ba:cec7:c529:f589:2812/64 scope global dynamic noprefixroute
valid_lft 3556sec preferred_lft 3556sec
inet6 fe80::2617:ffec:acbc:34bf/64 scope link noprefixroute
valid_lft forever preferred_lft forever