Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
if [ "$1" = '-h' -o "$1" = '--help' ]; then
me="${0##*/}"
echo "$me: list ALSA devices and relevant information."
exit 0
fi
if [ -e '/proc/asound/version' ]; then
cat '/proc/asound/version'
#!/bin/bash
echo "========================================"
echo "Part I: ALSA"
if [ -e '/proc/asound/version' ]; then
cat '/proc/asound/version'
echo
fi
--- a/cairo-1.14.0/src/win32/cairo-win32-display-surface.c 2013-08-29 06:04:28.000000000 +0200
+++ b/cairo-1.14.0/src/win32/cairo-win32-display-surface.c 2014-10-25 12:57:06.773382276 +0200
@@ -450,33 +450,42 @@
if (surface->image)
goto done;
if (surface->fallback == NULL) {
surface->fallback =
_cairo_win32_display_surface_create_for_dc (surface->win32.dc,
diff --git a/libs/canvas/canvas.cc b/libs/canvas/canvas.cc
index 133e094..cbedcd1 100644
--- a/libs/canvas/canvas.cc
+++ b/libs/canvas/canvas.cc
@@ -727,7 +727,10 @@ GtkCanvas::item_going_away (Item* item, boost::optional<Rect> bounding_box)
bool
GtkCanvas::on_expose_event (GdkEventExpose* ev)
{
+ static int on = 1;
Cairo::RefPtr<Cairo::Context> cairo_context = get_window()->create_cairo_context ();
// gcc -o fftw_concurrency_test fftw_concurrency_test.c -Wall -pthread `pkg-config --cflags --libs fftw3f` -lfftw3f_threads
/* 2 is sufficient to produce crashes, 8 makes it more likely */
#define MAXTHREAD 8
/* there is no c-header for this, yet */
extern void fftwf_make_planner_thread_safe ();
#include <stdio.h>
#include <stdlib.h>
// test signal *power* to dBFS conversion
// gcc -O3 -o logspeed logspeed.c -Wall -lm
// -ffast-math -fno-finite-math-only
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <sys/time.h>
#/bin/sh
set -e
for d in ~/.u-he/*/dialog.[36][24]; do
if test -f $d.real; then continue; fi
mv "$d" "$d.real"
cat > $d << EOF
#!/bin/sh
unset LD_LIBRARY_PATH
exec \$(readlink -f \$0).real "\$@"
EOF
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
ardour {
["type"] = "EditorHook",
name = "OSC Marker Msg",
author = "Ardour Lua Task Force",
description = "Send a OSC message when playing through a marker",
}
function action_params ()
return
{
#!/bin/bash
## the general idea is to run this script in a pbuilder/cowbuilder
## environment (system-wide libs matching the target CPU arch)
## keep a copy of the sources here:
: ${SRCDIR=/var/tmp/src_cache}
## builder location
: ${ROOTDIR=$HOME/builder/}
## target architecture