Skip to content

Instantly share code, notes, and snippets.

@advilm
advilm / zybooks.js
Created November 22, 2021 23:59
ZyBooks Font Changer
// ==UserScript==
// @name zybooks font changer
// @namespace Violentmonkey Scripts
// @match https://learn.zybooks.com/*
// @grant GM_addStyle
// @version 1.0
// @author advil
// @description 11/18/2021, 11:47:49 AM
// ==/UserScript==
@advilm
advilm / lock_script.md
Last active February 22, 2022 14:27
Just some files relating to my i3lock setup

scripts/lock.sh

#!/bin/sh

scrot -o /tmp/screenshot.png
convert /tmp/screenshot.png -blur 0x5 /tmp/screenshot.png

# Turn on DND
old_dnd="$(xfconf-query -c xfce4-notifyd -p /do-not-disturb)"
xfconf-query -c xfce4-notifyd -p /do-not-disturb -s true

Keybase proof

I hereby claim:

  • I am advilm on github.
  • I am advil (https://keybase.io/advil) on keybase.
  • I have a public key ASAcfcjq_FFulgC6sBrM00rlivGeJhn9aNoHBmBrIb1ywAo

To claim this, I am signing this object:

@advilm
advilm / install_zsh.sh
Last active June 22, 2022 14:19
Installs zsh on lab servers
# install ncurses
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.3.tar.gz
tar -xzf ncurses-6.3.tar.gz
rm ncurses-6.3.tar.gz
cd ncurses-6.3
./configure --prefix="$HOME/.local" --with-shared --without-debug --enable-widec
make && make install
cd ..
rm -rf ncurses-6.3
@advilm
advilm / setup_osu.sh
Last active October 1, 2022 16:28
Sets up osu on lab machines
NETID="$(whoami)"
cd /extra/$NETID
# download osu
wget -O osu.AppImage https://github.com/ppy/osu/releases/latest/download/osu.AppImage
chmod +x osu.AppImage
# create symlink
mkdir osu
ln -sf /extra/$NETID/osu ~/.local/share