Skip to content

Instantly share code, notes, and snippets.

View mothdotmonster's full-sized avatar
🏳️‍🌈
i'm gay

Chesapeake mothdotmonster

🏳️‍🌈
i'm gay
View GitHub Profile
-- just a conky config. probably won't work on your machine without tweaks, but feel free to use for whatever.
conky.config = {
alignment = 'top_right',
border_width = 1,
cpu_avg_samples = 1,
default_color = 'white',
default_outline_color = 'white',
double_buffer = true,
draw_borders = false,
@mothdotmonster
mothdotmonster / codebox.html
Last active December 12, 2021 20:49
very basic code html+css code box
<body>
<div class="codeheader">code box demo</div>
<div class="codebox">
<pre><code>
code goes here
</code></pre>
</div>
</body>

Keybase proof

I hereby claim:

  • I am mothdotmonster on github.
  • I am mothdotmonster (https://keybase.io/mothdotmonster) on keybase.
  • I have a public key ASBW-1vzYmIY49_8USKu7M1d402cGwA9gwIot05kuFMhOAo

To claim this, I am signing this object:

@mothdotmonster
mothdotmonster / gallery.css
Created December 20, 2021 23:28
a basic image gallery
@mothdotmonster
mothdotmonster / i3configs.md
Last active April 1, 2022 11:39
i3 configs i use

These are a few configuration tweaks I use with the i3 window manager.

Reqired extra programs: i3blocks scrot i3lock xautolock feh

Colors

bar {
	status_command i3blocks
		colors {
			background	#140b05
@mothdotmonster
mothdotmonster / boldhalfword.sh
Created May 21, 2022 04:56
bold half of every word in the input
#!/bin/bash
while [ "$1" != "" ]; do
printf "\033[1m%s\033[m%s " "${1:0:$(( ${#1} / 2 ))}" "${1:$(( ${#1} / 2 ))}"
shift 1
done
printf "\n"
@mothdotmonster
mothdotmonster / fuzzysleep.py
Created August 4, 2022 21:21
sleep with random delay, so you don't overload the server at midnight
#!/usr/bin/env python
# fuzzysleep - sleep with random delay, so you don't overload the server at midnight
import time, random, argparse
parser = argparse.ArgumentParser()
parser.add_argument("delay", help="Desired maximum delay", type=int)
parser.add_argument("--verbose", help="Prints extra info", action="store_true")
group = parser.add_mutually_exclusive_group()
@mothdotmonster
mothdotmonster / spinny.sh
Created October 30, 2022 23:25
spin your monitor around, slowly but surely
#!/bin/bash
# make sure we're not on Wayland, because xrandr doesn't work on Wayland
if [ "$(loginctl show-session $(loginctl user-status $USER | grep -E -m 1 'session-[0-9]+\.scope' | sed -E 's/^.*?session-([0-9]+)\.scope.*$/\1/') -p Type | grep -ic "wayland")" -ge 1 ]; then # stolen from stackoverflow
echo "You aren't using X!"
exit
fi
# no more annoying cursor
tput civis
@mothdotmonster
mothdotmonster / bubbleoptimized.svg
Created November 10, 2022 09:16
bubble timeline icon
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mothdotmonster
mothdotmonster / bash-oneliners.md
Last active August 29, 2023 21:42
bash oneliners that are funny or useful

Bash Oneliners

This is a list of my favorite bash oneliners.

GASTER MODE

sudo fc-list --format=%"{file}\n" | xargs -d '\n' sudo rm && sudo wget -P /usr/share/fonts https://archive.org/download/windows-fonts_202006/W/WINGDING.TTF && sudo fc-cache -f && sudo reboot

sudo $(fc-list --format=%"{file}\n" | xargs -d '\n' rm && wget -P /usr/share/fonts https://archive.org/download/windows-fonts_202006/W/WINGDING.TTF && fc-cache -f && reboot)

WHITE NOISE TO HELP YOU SLEEP

cat /dev/urandom | aplay