Skip to content

Instantly share code, notes, and snippets.

View eacousineau's full-sized avatar

Eric Cousineau eacousineau

View GitHub Profile
@eacousineau
eacousineau / encfs_tmp.sh
Last active November 10, 2018 17:50
Makes and mounts temporary encfs partition that is removed upon program exit.
#!/bin/bash
# Makes and mounts temporary encfs partition that is removed upon program exit.
# Requires encfs.
set -eu -o pipefail
tmp=$(mktemp -d)
enc=${tmp}/.enc
mnt=${tmp}/mnt
attrs==19.1.0
backcall==0.1.0
bleach==3.1.0
decorator==4.3.2
defusedxml==0.5.0
entrypoints==0.3
ipykernel==5.1.0
ipython==7.3.0
ipython-genutils==0.2.0
ipywidgets==7.4.2
Gotta catch 'em all!
Last updated: 2020-03-23
[X] - Site taken down
[ ] - Site still up
[X] https://luanzi.myshopify.com/collections/home-gym/products/adjustable-dumbbell-the-work-of-multiple-dumbbells-in-one
[X] https://aback.rooftop1.com/collections/home-gym/products/adjustable-dumbbell-the-work-of-multiple-dumbbells-in-one
[X] https://blshaln.myshopify.com/collections/sports-fitness/products/adjustable-dumbbell-the-work-of-multiple-dumbbells-in-one
[ ] https://www.wajious.com/shopping/sports-outdoors/home-gym.html/adjustable-dumbbell-the-work-of-multiple-dumbbells-in-one
@eacousineau
eacousineau / scrub_notifications.py
Created November 25, 2020 22:15
Scrub / Filter out Ubuntu 18.04 Desktop Notifications (via D-Bus)
"""
Runs a DBus message loop with a callback to receive... pretty much
anything on a session bus.
Listen to the Notify event; if it's a message we hate, record it, then
listen for the return message, and kill that message.
Tested On:
- Ubuntu 18.04.5 LTS, CPython 3.6.9 (dbus: 1.2.6, gi: 3.26.1)
To test, try running the following with and without this script running:
@eacousineau
eacousineau / personal_git_bash_aliases_suggestion.sh
Created June 25, 2021 19:28
Using separate github accounts and keys
_DOTFILES=<DEFINE THIS>
use-personal-git() {
export [email protected]
export GIT_COMMITTER_EMAIL=${GIT_AUTHOR_EMAIL}
export GIT_SSH=${_DOTFILES}/ssh_personal_for_git.sh
export PS1="personal!$ "
}