Skip to content

Instantly share code, notes, and snippets.

View bwagner's full-sized avatar

Bernhard Wagner bwagner

  • Zürich
  • LinkedIn in/bernhardw
View GitHub Profile
rm -f wavegain
gcc -arch i386 -s -DHAVE_CONFIG_H -o wavegain audio.c dither.c gain_analysis.c getopt.c getopt1.c main.c misc.c recurse.c wavegain.c -lm
audio.c:698:31: warning: passing 'char [8]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
opt->gain_scale = READ_D64(buf_double);
^~~~~~~~~~
audio.c:191:35: note: passing argument to parameter 'cptr' here
double read_d64_be(unsigned char *cptr)
^
1 warning generated.
ld: warning: option -s is obsolete and being ignored
@bwagner
bwagner / HTMLClipboard.py
Last active April 28, 2023 13:55 — forked from Erreinion/HTMLClipboard.py
HTMLClipboard with updates for Python 3. Includes exception handling for locked clipboard. Improvement of: http://code.activestate.com/recipes/474121/
#!/usr/bin/env python
"""
Created on Sep 24, 2013
@author: RandomHardcoreJerks
Requires pywin32
original: http://code.activestate.com/recipes/474121/