Skip to content

Instantly share code, notes, and snippets.

@novi
novi / swift-on-arch-linux.md
Last active July 13, 2018 07:09
Swift on Arch Linux

Install debootstrap.

# pacman -S arch-install-scripts debootstrap

Install Ubuntu base system into $ROOTFS.

$ export ROOTFS=$HOME/rootfs
$version = "2.0.5"
$hash = "4cb9620fbb68571be11ba13afc8911fd434561b9ff661040a128618af19bbbb5"
class Cmysql < Formula
homepage "https://github.com/novi"
url "https://github.com/novi/cmysql/archive/#{$version}.tar.gz"
sha256 $hash
version $version
depends_on "pkg-config"
@novi
novi / perso_b.c
Last active May 13, 2020 14:56
Playing audio file (PCM) on NEXTSTEP 3.3
//Written by J. Laroche at the Center for Music Experiment at UCSD, San Diego //California. December 1990.
// File useful to test the stream control capabilities of the driver for
// writing streams (to the DACS). Currently (V. 2.0 prerelease fushia),
// aborting the stream wedges more or less the driver.
// Moreover, pause and resume work on any tagged region, whatever its tag is.
#import <sound/sound.h>
#import <sound/sounddriver.h>
#import <mach/mach.h>
#import <mach/mach_error.h>