Skip to content

Instantly share code, notes, and snippets.

View Fusl's full-sized avatar
🏳️‍🌈
🦊

Katie Holly Fusl

🏳️‍🌈
🦊
  • VRChat
  • Everywhere.
  • 10:04 - same time
View GitHub Profile
@Fusl
Fusl / gist:e4589f652c49f8b6f06a
Last active August 29, 2015 14:02
topicsed irc bot
#!/usr/bin/env node
// Download http://lvogel.free.fr/jsed/jsed.js to "sed.js" and append "module.exports = sed;" to the end of the file.
var sed = require('./sed.js');
var irc = require('node-irc');
var fs = require('fs');
var historytopic = {};
var pretopic = {};
@Fusl
Fusl / keybase.md
Created July 6, 2014 14:04
keybase.md

Keybase proof

I hereby claim:

  • I am fusl on github.
  • I am fusl (https://keybase.io/fusl) on keybase.
  • I have a public key whose fingerprint is 09AE 48AC A8ED 6AB7 AD3C E306 B01A A8FD D0B7 3A4C

To claim this, I am signing this object:

#!/bin/sh
# ./convert_ploop_to_simfs.sh VEID
# chmod +x convert_ploop_to_simfs.sh
rsync_options='-aHAX --progress --stats --numeric-ids --delete'
partition='vz'
if [ ! -e /etc/vz/conf/$1.conf ]; then
echo "Virtual server configuration file: /etc/vz/conf/$1.conf does not exist."
exit 1
fi
if [ ! -d /$partition/private/$1/root.hdd ]; then

Keybase proof

I hereby claim:

  • I am fusl on github.
  • I am fusl (https://keybase.io/fusl) on keybase.
  • I have a public key whose fingerprint is 09AE 48AC A8ED 6AB7 AD3C E306 B01A A8FD D0B7 3A4C

To claim this, I am signing this object:

@Fusl
Fusl / let-theme.css
Last active August 4, 2020 17:42
LowEndTalk dark and fancier theme (tested with FF Stylish)
/* lowendtalk darker & wider page theme */
/* (c) Copyright by Fusl */
/* version 1.0.6 */
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("lowendtalk.com") {
/* version 1.0 */
body {
background: #111;
@Fusl
Fusl / gist:3a708b8c32c9d5264fa0
Last active November 27, 2024 20:28
Streaming audio output from Linux (Pulseaudio) to Windows
# Windows (receiver) side:
.\ffplay.exe -nodisp -ac 2 -acodec pcm_u8 -ar 48000 -analyzeduration 0 -probesize 32 -f u8 -i udp://0.0.0.0:18181?listen=1
# Linux (transmitter) side:
pactl load-module module-null-sink sink_name=remote
ffmpeg -f pulse -i "remote.monitor" -ac 2 -acodec pcm_u8 -ar 48000 -f u8 "udp://RECEIVER:18181"
pavucontrol # Change the default output to the Null sink or move single applications to this "output" device.
@Fusl
Fusl / mtrsh_mtr_target.sh
Last active August 23, 2020 17:52
Ping a target IPv4 address using all mtr.sh probes worldwide sorted by average RTT
#!/usr/bin/env bash
target="${1}"
if [ "x${target}" == "x" ]; then
echo "Usage: ${0} <IPv4/6 address>"
exit 1
fi
#if echo -n "${target}" | grep -qE '^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$'; then
@Fusl
Fusl / AutoInstall.scr
Created December 8, 2016 06:48
Amazon EC2 Quanta LB6M 10Gbit Switch Script
set prompt "l3-t0-switch-building"
serviceport protocol none
network protocol none
network parms 10.1.133.126 255.255.255.252 10.1.133.125
!
! set standard ec2 enable, comment out the switchbuilder enable password for now
enable password 1f161545f10e3de4eb26ca696aefc2bcdbdba3ddc09c200e9c49864a83c3e4d1b233bd402eae80c4e56b8c3eefbc3ed9fdf4d617591ec2d55f671ef9922e933c encrypted
!
! Disable SSH and keys, we'll re-enable them later.
no ip ssh server enable
@Fusl
Fusl / devvideo0.js
Last active January 13, 2018 21:01
quickndirty: serving a /dev/video0 webcam via network
#!/usr/bin/env ndoe
var devicepath = '/dev/v4l/by-id/usb-Hewlett_Packard_HP_Webcam_HD_4310-video-index0';
var devicefps = 15;
var width = 1280;
var height = 720;
var bufsize = 512 * 1024 * 1024; // 512 MiB (perfect for a RPi)
@Fusl
Fusl / umount.sh
Created February 5, 2018 06:24
recursive umount
findmnt -u -n -r -o TARGET -R /path/to/mountpoint/ | sort -r | tr '\n' '\0' | xargs -0 -r umount