Skip to content

Instantly share code, notes, and snippets.

View m-rey's full-sized avatar
🏳️‍⚧️
Hack the planet!

Mæve Rey m-rey

🏳️‍⚧️
Hack the planet!
  • Nuremberg, Germany
View GitHub Profile
@m-rey
m-rey / install_keybase.sh
Created November 19, 2018 16:34
Install keybase on openSUSE
#!/bin/sh
# taken from Matthew S. Dippel's blog:
# http://matthewdippel.blogspot.com/2018/10/howto-install-keybase-on-opensuse.html
# import package signature
TMFILE="$(mktemp)"
curl https://keybase.io/docs/server_security/code_signing_key.asc > "$TMFILE"
sudo rpm --import "$TMFILE"
rm "$TMFILE"
@m-rey
m-rey / persistent_irc.txt
Last active May 11, 2021 03:01
Guide to setup irc with tmux on a server as a pseudo bouncer.
initial setup:
1. ssh into your server and create a new tmux session called irc:
$> ssh -t $user@$server tmux new -A -s irc
2. Run an irc client of your choice like irssi or weechat:
$> weechat
3. Configure the client to your liking.
@m-rey
m-rey / blacklist_pcspkr.sh
Last active July 30, 2020 21:15
removes annoying beeps from pc speaker on openSUSE
sudo modprobe -r pcspkr
echo "blacklist pcspkr" | sudo tee /etc/modprobe.d/nobeep.conf > /dev/null
@m-rey
m-rey / delete_printer_history.sh
Last active January 29, 2019 17:39
delete your printer history from printer
#!/bin/sh
#set variable USER and PRINTER accordingly
sudo cancel -E -a -x -u $USER $PRINTER
@m-rey
m-rey / fix_pgp_pub_key_not_found.sh
Created March 1, 2019 14:25
Fix: Public Key of Ultimately Trusted Key $key Not Found
#!/bin/bash
gpg --check-trustdb 2>&1| grep 'not found' | awk '{print $8}' >bad-keys.txt
gpg --export-ownertrust > ownertrust-gpg.txt
mv ~/.gnupg/trustdb.gpg ~/.gnupg/trustdb.gpg-broken
for KEY in `cat bad-keys.txt` ; do sed -i "/$KEY/d" ownertrust-gpg.txt ; done
gpg --import-ownertrust ownertrust-gpg.txt
rm bad-keys.txt ownertrust-gpg.txt
@m-rey
m-rey / wire_on_tails.md
Last active July 17, 2019 09:22 — forked from blackpidgeon/HowTo.md
Installing Wire on Tails

Installing Wire on Tails

Wire is an encrypted messaging app, available for many different platforms. It is possible to install on Tails, a secure Linux on an USB Stick.

Configure Tails

You will need a Persistent Volume. Check the Tails docs if you need to create one

Enable Persistent Dotfiles.

  1. Open the "Configure Persistent Volume" application. You find it in the Tails application menu in the Group named "Tails".
  2. Enable "Dotfiles" at the bottom of the list and Save the changes.
@m-rey
m-rey / reset_pulseaudio_settings.sh
Created November 7, 2019 13:12
Sometimes pulseaudio doesn't work, even after restarting it (`pulseaudio -k && pulseaudio --start`). This removes the config and thus may fix the problem.
# see:
# https://bbs.archlinux.org/viewtopic.php?pid=1243988#p1243988
# https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting
# (re)moves the config
mv .config/pulse .config/pulse_broken
@m-rey
m-rey / install_codecs.sh
Created April 16, 2020 10:22
Gist to easily install missing codecs in openSUSE
#!/bin/sh
sudo zypper in opi && sudo opi codecs
@m-rey
m-rey / waybar-module_minecraft-online-users
Created April 30, 2020 14:03
Waybar module to display how many users are connected to a minecraft server. Displays usernames on left click and opens the TLauncher Minecraft client flatpak on right click.
"custom/minecraft": {
"format": "⬢ {}",
"interval": 10,
"exec": "printf '\\x06\\x00\\x00\\x00\\x00\\x00\\x01\\x01\\x00' | nc -N $SERVER_IP $SERVER_PORT | tr -cd '[:print:]' | jq -r '.players.online, .players.max'| xargs printf '%d/%d'",
"on-click": "printf '\\x06\\x00\\x00\\x00\\x00\\x00\\x01\\x01\\x00' | nc -N $SERVER_IP $SERVER_PORT | tr -cd '[:print:]' | jq -r '.players.sample[] | .name' | xargs -0 notify-send 'online users'",
"on-click-right": "flatpak run org.tlauncher.TLauncher"
}
@m-rey
m-rey / install_fire_code_fonts.sh
Created June 16, 2020 12:02
script to install Fire Code fonts
#!/bin/sh
mkdir -p ~/.local/share/fonts
cd ~/.local/share/fonts
for type in Bold Light Medium Regular Retina; do
wget -O ~/.local/share/fonts/FiraCode-${type}.ttf "https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-${type}.ttf?raw=true";
done
fc-cache -f