Skip to content

Instantly share code, notes, and snippets.

View Jon-Schneider's full-sized avatar

Jon Schneider Jon-Schneider

View GitHub Profile
@Lazza
Lazza / Twitter-ads-hiding.md
Created January 3, 2023 16:03
Hiding Twitter ads (January 2023)

Hiding Twitter ads (January 2023)

Ads on post-Elon Twitter are becoming more and more obnoxious. You can hide them if you use a content blocking extension, such as the awesome uBlock Origin.

By targeting the little icon that appears near the "Sponsored" label, the filter works on Twitter in every language.

Simply add the following rule to your ad-blocker:

! 2023-01-02 https://twitter.com

@Jon-Schneider
Jon-Schneider / wav_header.h
Created November 29, 2016 15:59
C Wav Header Struct
// WAV header spec information:
//https://web.archive.org/web/20140327141505/https://ccrma.stanford.edu/courses/422/projects/WaveFormat/
//http://www.topherlee.com/software/pcm-tut-wavformat.html
typedef struct wav_header {
// RIFF Header
char riff_header[4]; // Contains "RIFF"
int wav_size; // Size of the wav portion of the file, which follows the first 8 bytes. File size - 8
char wave_header[4]; // Contains "WAVE"