Skip to content

Instantly share code, notes, and snippets.

View tadly's full-sized avatar
🎧
Being a nerd ain't that bad...

tadly tadly

🎧
Being a nerd ain't that bad...
View GitHub Profile
@tadly
tadly / pacaur_install.sh
Last active August 30, 2023 13:15
A simple shell script to quickly / easily install "pacaur" on archlinux
#!/bin/sh
#
# !!! IMPORTANT !!!
# As of 2017-12-14, pacaur is unmaintained (https://bbs.archlinux.org/viewtopic.php?pid=1755144#p1755144)
# For alternatives see the arch wiki: https://wiki.archlinux.org/index.php/AUR_helpers#Active
# pacaur seems to get occasional updates to fix breaking changes due to pacman updates though.
#
# If you are new to arch, I encourage you to at least read and understand what
# this script does befor blindley running it.
# That's why I didn't make a one-liner out of it so you have an easier time
@tadly
tadly / enpass-vesion-check.sh
Last active February 25, 2020 12:19
Check for the latest version of enpass
#!/usr/bin/env bash
curl --silent https://apt.enpass.io/dists/stable/main/binary-amd64/Packages.gz -o /tmp/enpass-packages.gz
gunzip /tmp/enpass-packages.gz
cat /tmp/enpass-packages | egrep "Package|Version|SHA256" | head -n 3
rm /tmp/enpass-packages
@tadly
tadly / rofi-gpaste.sh
Last active May 16, 2022 07:17
rofi + gpaste
#!/usr/bin/env bash
#
# Use rofi to select an entry from gpaste
#
# Requirements:
# rofi, gpaste
#
line=`gpaste-client --oneline | \
rofi -dmenu -i -p gpaste -kb-custom-1 Ctrl+x $@`
@tadly
tadly / plex-update-mtime.py
Last active April 18, 2019 07:16
Retroactively update plex's updated_at, created_at and added_at dates by the files mtime
#!/usr/bin/env python3
#
# Most importantly:
# 1. Use at your own risk!
# 2. You may consider creating a backup because this script doesn't
# 3. Only tested on linux
#
# What does this script do?
# Whenever you scan for new items, plex will set the respective dates to
# the CURRENT time rather than the files mtime.
@tadly
tadly / rofi-emoji.sh
Last active January 11, 2024 03:39
Rofi emoji picker
#!/usr/bin/env bash
#
# Use rofi to pick emoji because that's what this
# century is about apparently...
#
# Requirements:
# rofi, xsel, xdotool, curl, xmllint
#
# Usage:
# 1. Download all emoji
@tadly
tadly / swapper.sh
Last active February 13, 2020 15:47
Allows to quickly swap two workspaces with one another.
#!/usr/bin/env bash
#
# Allows to quickly swap two workspaces with one another.
#
# Requirements:
# i3, jq
#
# i3 config example:
# set $exec_nsi exec --no-startup-id
#