This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Taken from http://blog.encomiabile.it/2011/02/03/prune-quassel-database/ | |
# Taken from https://gist.github.com/Und3rf10w/36a2034cb2c8eafbfb801c1a89e1f8bc | |
BAK_PATH="${HOME}/.config/quassel-irc.org/quassel-storage.sqlite.bak" | |
CURRENT_PATH="${HOME}/.config/quassel-irc.org/quassel-storage.sqlite" | |
# first day of data that will be maintained | |
# -7 day means that *every* chatline stored before 8 days ago and so on are going to be eliminated. | |
# only the last 7 days are keeped. | |
DATE_TO_PRUNE='-7 day' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# readline etc hotkey reminder, two versions depending on tty/vty width | |
# https://gist.github.com/mxmilkiib/2dda9d8b62c542cf8ab32ad637930bd0 | |
echo_color() { | |
local cyan="\033[0;96m" | |
local red="\033[0;91m" | |
local key_color=$cyan # Cyan for hotkeys | |
local desc_color=$red # Red for descriptions | |
local reset="\033[0m" | |
local output="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// Launchpad Pro MK3 MIDI mapping for Mixxx | |
//// by Milkii | |
//// DEBUG stuff | |
// Terminal colour codes for DEBUG messages | |
const COLOURS = { | |
RED: "\x1b[31m", | |
GREEN: "\x1b[32m", | |
ORANGE: "\x1b[33m", | |
BLUE: "\x1b[34m", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var LaunchpadProMK3 = {} | |
// console.log("LOG channel " + channel + " control " + control + " value " + value + " status " + status + " group " + group) | |
LaunchpadProMK3.sleep = function(time) { | |
var then = Date.now(); | |
while (true) { | |
var now = Date.now(); | |
if (now - then > time) { | |
break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/mixxxdj/mixxx/wiki/midi%20scripting | |
// https://github.com/mixxxdj/mixxx/wiki/Components_JS#hotcuebutton | |
// https://fael-downloads-prod.focusrite.com/customer/prod/s3fs-public/downloads/LPP3_prog_ref_guide_200415.pdf | |
// https://github.com/antt0n/Launchpad-Core/blob/main/src/Drivers/LaunchpadProMK3.ts | |
// https://github.com/weskoop/Launchpad-Pro-Mk3-for-Bitwig/blob/main/src/LaunchPad.ts | |
// working title | |
var arg = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
NoDisplay=1 | |
Exec=bash -c 'playerctl pause -p firefox; mpv --geometry=600x300 --volume=80 --start=30 --player-operation-mode=pseudo-gui --script-opts=autoload-disabled=yes -- %U/**/*.{flac,mp3,oga,ogg,vobis,opus,aac,m4a,wav,mod,med,it,xm,s3m} %U/*.{flac,mp3,oga,ogg,vobis,opus,aac,m4a,wav,mod,med,it,xm,s3m} ; playerctl play-pause -p firefox' | |
MimeType=inode/directory | |
Name=mpv (mpris ⏯) | |
Icon=mpv | |
Type=Application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/mfcc64/mpv-scripts/blob/master/visualizer.lua | |
# https://github.com/mfcc64/showcqt-bash | |
# fixed to 800x600 atm. todo; migrate calculations from other projects | |
# basic, no data image | |
mpv --config=no --quiet --lavfi-complex="[aid1] asplit [ao], afifo, aformat = channel_layouts = stereo, firequalizer = gain = '1.4884e8 * f*f*f / (f*f + 424.36) / (f*f + 1.4884e8) / sqrt(f*f + 25122.25)': scale = linlin : wfunc = tukey: zero_phase = on: fft2 = on, showcqt = size = 800x600 : count= 2.5 : csp = bt709 : bar_g = 2: sono_g = 4 : bar_v= 9 : sono_v = 17 : font = 'Nimbus Mono L,Courier New,mono' : fontcolor = 'st(0, (midi(f)-53.5)/12); st(1, 0.5 - 0.5 * cos(PI*ld(0))); r(1-ld(1)) + b(ld(1))' : tc = 0.33 : attack = 0.033 : tlength= 'st(0,0.17); 384*tc / (384 / ld(0) + tc*f /(1-ld(0))) + 384*tc / (tc*f / ld(0) + 384 /(1-ld(0)))', format = yuv420p [vo]" av://jack:"mpv JACK" | |
# silly long, includes data image for horizontal axis note/octave labels | |
mpv --config=no --quiet --lavfi-complex="[aid1] asplit [a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sep 29 21:57:44 rose.local pulseaudio[4179]: W: [pulseaudio] module-jack-source.c: JACK error >Connect: can't connect named futex name = jack_sem.1000_default_Syncrose Granular Synthesizer err = Too many open files< | |
Sep 29 21:57:44 rose.local pulseaudio[4179]: W: [pulseaudio] module-jack-source.c: JACK error >Connect: can't connect named futex name = jack_sem.1000_default_Syncrose Granular Synthesizer err = Too many open files< | |
Sep 29 21:57:44 rose.local pulseaudio[4179]: W: [pulseaudio] module-jack-source.c: JACK error >Connect: can't connect named futex name = jack_sem.1000_default_Simple Scope (4 channel) err = Too many open files< | |
Sep 29 21:57:44 rose.local pulseaudio[4179]: W: [pulseaudio] module-jack-source.c: JACK error >Connect: can't connect named futex name = jack_sem.1000_default_Simple Scope (4 channel) err = Too many open files< | |
Sep 29 21:57:45 rose.local pulseaudio[4179]: W: [pulseaudio] module-jack-source.c: JACK error >Connect: can't connect named futex name = jack_sem.1000_default_Lead Gain 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18:24:02 milk@rose:~ 130 % mtr -s 1000 -r -c 1000 archlinux.org | |
Start: 2020-08-22T18:24:02+0100 | |
HOST: rose.local Loss% Snt Drop Rcv Last Avg Best Wrst StDev Gmean Jttr Javg Jmax Jint | |
1. AS??? _gateway (192.168.1 0.0% 1000 0 1000 0.6 0.4 0.4 1.5 0.1 0.4 0.1 0.1 1.1 0.8 | |
2. AS??? 10.0.254.87 0.1% 1000 1 999 28.7 29.1 27.3 222.8 7.6 28.7 0.6 2.2 194. 9.3 | |
3. AS??? 10.0.244.237 0.0% 1000 0 1000 28.9 29.9 28.0 200.7 6.6 29.6 0.5 2.8 172. 39.6 | |
4. AS??? 10.0.244.233 0.1% 1000 1 999 29.7 34.7 28.6 199.0 13.2 33.4 0.6 6.2 168. 20.2 | |
5. AS??? 10.0.244.253 0.1% 1000 1 999 29.8 33.4 28.6 197.8 13.3 32.2 0.1 6.1 168. 78.8 | |
6. AS6939 10ge2-3.core1.lon2. 0.1% 1000 1 999 28.6 32.5 27.6 181.3 8.2 31.8 0.1 2.3 153. 41.5 | |
7. AS6939 100ge7-1.core1.fra1 0.1% 1000 1 999 40.2 40.0 39.1 202.7 5.3 39.9 0.7 1.2 163. 6.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
strace element | |
execve("/usr/bin/element", ["element"], 0x7ffc37b82180 /* 82 vars */) = 0 | |
brk(NULL) = 0x55b82f17d000 | |
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffc348c69c0) = -1 EINVAL (Invalid argument) | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=344516, ...}) = 0 | |
mmap(NULL, 344516, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82fc66b000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/libelement-0.so", O_RDONLY|O_CLOEXEC) = 3 |
NewerOlder