Skip to content

Instantly share code, notes, and snippets.

View eacousineau's full-sized avatar

Eric Cousineau eacousineau

View GitHub Profile
@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 GIT_AUTHOR_EMAIL=personal@email.com
export GIT_COMMITTER_EMAIL=${GIT_AUTHOR_EMAIL}
export GIT_SSH=${_DOTFILES}/ssh_personal_for_git.sh
export PS1="personal!$ "
}
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
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
@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
#!/usr/bin/python
import fnmatch
import argparse
import rosgraph.masterapi
import roslib
import rospy
import uuid
import sys
parser = argparse.ArgumentParser()
@eacousineau
eacousineau / glum.sh
Created July 25, 2013 09:13
glum - Git Lightweight User Management
#!/bin/bash
# Git Lightweight User Management
# To start a new user 'session'
# glum USER EMAIL
# To end user 'session'
# glum
glum-broken() {
# This shows an error, and replaces git in the current shell as an alias to this function
@eacousineau
eacousineau / git-submodule-test.sh
Created March 26, 2013 21:35
Git Submodule - Test Setup
for dir in a b c d; do
git init $dir
pushd $dir
touch test
echo $dir > bob
git add -A
git commit -m "Init"
popd
done
@eacousineau
eacousineau / git-new-workdir.sh
Last active December 15, 2015 10:59
git-new-workdir: Modification to enable this script for submodules. Copies config (does not symlink) and removes 'core.worktree' option.
Incorporated into: https://github.com/eacousineau/util
@eacousineau
eacousineau / git-fer.sh
Last active December 15, 2015 10:08
git-fer.sh: Different setup than git-submodule-foreach, some extensions. Can constrain module selection using 'scm.focusGroup' (spin off from Heiko Voigt's idea of submodule.includeSuper), with --force-all option to ignore it.
Incorporated into: https://github.com/eacousineau/util