Skip to content

Instantly share code, notes, and snippets.

View thexyno's full-sized avatar

Lucy thexyno

View GitHub Profile
@thexyno
thexyno / mastodonfollow.py
Created April 27, 2022 00:13
A script to follow all accounts given via stdin on mastodon
#!/usr/bin/env nix-shell
#! nix-shell -i python3 -p python3Packages.mastodon-py
from mastodon import Mastodon
import argparse
import sys
import time
parser = argparse.ArgumentParser(description='follow a (newline terminated) list of mastodon accounts, given via stdin')
parser.add_argument('-t', '--token', help='oauth2 token')
@thexyno
thexyno / swapDevices.sh
Created November 16, 2019 15:49
Script to swap devices when using a virsh VM (useful if you have two sets of keyboards and mice and want to swap between host and vm often)
#!/bin/bash
set -e
virsh='virsh -c qemu:///system'
vm=win10
testdevice=c22d # Mouseman
batchone="$HOME/.config/win10vm/mouseman.xml $HOME/.config/win10vm/g510.xml"
batchonetitle='Mouseman and G510'
batchtwo="$HOME/.config/win10vm/strafe.xml $HOME/.config/win10vm/g502.xml"
batchtwotitle='Strafe and G502'
outdrivers = DisplayNetwork, OutputLinear
leds = 105
light_siding = 1.0 #Turn this to ~1.9 for more uniformity, ~1.0 for less.
satamp = 1.600
is_loop=0
led_floor = .1 #Turn to .25 for more uniformity, .1 for less.
#note_attach_amp_iir = .3 #.3000
#note_attach_amp_iir2 = .15 #.1500
#note_attach_freq_iir = .3 #0.3000
steady_bright = 0
@thexyno
thexyno / asdf.a
Created December 19, 2018 17:50
asdf
### Keybase proof
I hereby claim:
* I am ragon000 on github.
* I am s8tan (https://keybase.io/s8tan) on keybase.
* I have a public key ASBDlBtXFDjMFYTnx2bmJ5i_Re4O7CdQ-hxxfaIVlNBdswo
To claim this, I am signing this object: