Skip to content

Instantly share code, notes, and snippets.

🎧
Being a nerd ain't that bad...

tadly tadly

View GitHub Profile
@tadly
tadly / swapper.sh
Last active Mar 27, 2018
Allows to quickly swap two workspaces with one another.
View swapper.sh
#!/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
#
@tadly
tadly / rofi-emoji.sh
Last active Mar 16, 2019
Rofi emoji picker
View rofi-emoji.sh
#!/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 / plex-update-mtime.py
Last active Apr 18, 2019
Retroactively update plex's updated_at, created_at and added_at dates by the files mtime
View plex-update-mtime.py
#!/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-gpaste.sh
Last active Dec 18, 2018
rofi + gpaste
View rofi-gpaste.sh
#!/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 / enpass-vesion-check.sh
Last active Feb 1, 2019
Check for the latest version of enpass
View enpass-vesion-check.sh
#!/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 / pacaur_install.sh
Last active Mar 3, 2019
A simple shell script to quickly / easily install "pacaur" on archlinux
View pacaur_install.sh
#!/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
You can’t perform that action at this time.