Skip to content

Instantly share code, notes, and snippets.

Jeanine Adkisson jneen

View GitHub Profile
@jneen
jneen / audio.sh
Created Apr 16, 2020
THE ONE TRUE SETUP
View audio.sh
#!/bin/bash
export AUDIO_DEFAULT_CAPTURE=hw:PCH
export AUDIO_DEFAULT_PLAYBACK=hw:PCH
execd() {
echo "$@" >&2
"$@"
}
View error
[translation:info] Error:
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/goal/translate.py", line 317, in main
drv.proceed(goals)
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/driver.py", line 551, in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/tool/taskengine.py", line 114, in _execute
res = self._do(goal, taskcallable, *args, **kwds)
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/driver.py", line 278, in _do
res = func()
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/driver.py", line 518, in task_compile_c
View error
[translation:info] 2.7.17 (default, Mar 21 2020, 00:47:07)
[GCC 9.3.0]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
[translation:info] Translating target as defined by lib/rpy/targettest
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unknown-22/gcctest.c -o /tmp/usession-unknown-22/gcctest.o
[platform:execute] gcc /tmp/usession-unknown-22/gcctest.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-unknown-22/gcctest
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unknown-22/gcctest.c -o /tmp/usession-unknown-22/gcctest.o
[platform:execute] gcc /tmp/usession-unknown-22/gcctest.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-unknown-22/gcctest
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/home/jneen/src/magritte/vendor/pypy/rpython/translator/c /tmp/usession-unknown-22/platcheck_0.c -o /tmp/usession-unknown-22/platcheck_0.o
[platform:execute]
View hilite.sty
\makeatletter
\newwrite\shellout@out
\def\shellout@writeout@start#1{%
\begingroup
\immediate\openout\shellout@out#1%
\let\do\@makeother\dospecials%
\catcode`\^^M\active%
\def\verbatim@processline{%
\immediate\write\shellout@out{\the\verbatim@line}}%
View thankful-eyes-theme.el
(deftheme thankful-eyes "a port of the thankful eyes theme from gtksourceview")
(let ((class '((class color) (min-colors 89)))
(cool-as-ice (if (display-graphic-p) "#6c8b9f" "#6c8b9f"))
(slate-blue (if (display-graphic-p) "#4e5d62" "#4e5d62"))
(eggshell-cloud (if (display-graphic-p) "#dee5e7" "#dee5e7"))
(krasna (if (display-graphic-p) "#122B36" "#121212"))
(aluminium1 (if (display-graphic-p) "#fefeec" "#fefeec"))
(scarletred2 (if (display-graphic-p) "#cc0000" "#cc0000"))
View blanking.sh
#!/bin/bash
blanking() {
local mode="$1"; shift
case "$mode" in
-|stop) xset -dpms; xset s off ;;
+|start) xset +dpms; xset s on ;;
sus|suspend)
wake-loop &
ensure kill $!
View elron.ml
open Batteries.Printf
open Batteries
type 't tokstate = Start | Tok of 't | Err of string | Eof
type 't state = {
mutable index : int ;
mutable head : 't tokstate ;
mutable behind : 't tokstate list ;
mutable ahead : 't tokstate list ;
View dynamic.js
var Dynamic = function() {
var context = {}
var defaults = {}
function bind(name, val, fn) {
try {
var save = context[name];
context[name] = val;
var out = fn();
}
View testy.sh
#!/bin/bash
echo == example the first ==
f1() {
local v=1
echo f1: $v
f2
}
View frybo.clj
(defn frybo [fname]
(def raf (java.io.RandomAccessFile. fname "r"))
(def out-chan (chan 10))
(go-loop [] (>!! out-chan (.readByte raf)))
out-chan)
You can’t perform that action at this time.