Skip to content

Instantly share code, notes, and snippets.

View ftrvxmtrx's full-sized avatar
🍑
9front

Sigrid Solveig Haflínudóttir ftrvxmtrx

🍑
9front
View GitHub Profile
@ftrvxmtrx
ftrvxmtrx / vuescan.nix
Created January 22, 2024 15:27
VueScan for NixOS
{ stdenv
, lib
, gawk
, fetchurl
, gnutar
, autoPatchelfHook
, glibc
, gtk2
, xorg
, libgudev
@ftrvxmtrx
ftrvxmtrx / bcdn
Last active May 6, 2020 14:53
download a bandcamp album, pass it a link to the album
#!/bin/rc
hget $1 | grep '^[ ]*(current:|trackinfo:|.*image_src)' | sed 's/","/\n/g;s/":"/ /g;s/":{"/\n/g;s/"},"/\n/g;s/,"/\n/g;s/":/ /g' | awk -F ' ' '
/image_src/ {
split($0, image_src, /[ ">]+/)
image = image_src[6]
}
/^artist / {
artist = $2
}
@ftrvxmtrx
ftrvxmtrx / c19-ratio-dead-sick.sh
Last active April 14, 2020 09:15
covid-19: countries (with >=1000 sick) by dead/sick ratio
#!/bin/sh
echo '# COVID-19 dead/sick ratio per country'
echo '<!-- date '$(date --rfc-3339=seconds | tr ' ' T)' -->'
echo
echo '```'
curl -s https://c19.se/global | html2text -nobs | awk -F ' ' -v 'OFS= ' '
/^\*\*\*\* / {
if(lb++)
editor = sam
browser = mothra
type is text
data matches '[a-zA-Z¡-￿0-9_\-.,/]+'
data matches '([a-zA-Z¡-￿0-9_\-.,/]+)\.orca'
arg isfile $0
data set $file
plumb to orca
plumb start window games/orca $file
diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt
index 399ecc770..b702bf7e0 100644
--- a/build/CMakeLists.txt
+++ b/build/CMakeLists.txt
@@ -135,7 +135,7 @@ elseif(WIN32 OR MSYS)
set (FAUST_DEFINITIONS ${FAUST_DEFINITIONS} -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES)
set (FAUST_LIBS ${FAUST_LIBS} Ws2_32) #.lib)
elseif(NOT ANDROID)
- set (FAUST_LIBS -lpthread ${FAUST_LIBS})
+ set (FAUST_LIBS -lpthread -L/usr/local/lib -lexecinfo ${FAUST_LIBS})
command 1979 1996 2015 2017 OpenBSD 9front
ls 11 42 58 58 28 13
rm 3 7 11 12 7 2
mkdir 0 4 6 7 2 2
mv 0 9 13 14 3 0
cp 0 18 30 32 9 3
cat 1 12 12 12 7 0
pwd 0 2 4 4 2 0
chmod 0 6 9 9 5 0
echo 1 4 5 5 1 1
@ftrvxmtrx
ftrvxmtrx / orca.nix
Last active April 24, 2022 10:43
A Nix expression to build and install orca-c on NixOS
# nix-build -E 'with import <nixpkgs> {}; callPackage ./orca.nix {}'
{ stdenv, ncurses, portmidi }:
stdenv.mkDerivation rec {
name = "orca";
src = ./.;
buildInputs = [ ncurses portmidi ];
enableParallelBuilding = true;