Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block inspector71

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
inspector71 / userChrome.css
Last active Feb 5, 2019
Firefox 65 on Windows 8.1: menu; navigation; tabs; content
View userChrome.css
>>>> NOTE: buggy when dragging / re-ordering tabs.
With thanks to everyone on /r/FirefoxCSS, I have this:
Firefox 65 on Windows 8.1, from the top:
View remote.xml
<!-- Sony Bravia KDL-32W5500 (remote: RM-GD007) -->
View remote.xml
View routing.bash
# Accept all loopback traffic localhost or
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
# Accept all local traffic from
iptables -A INPUT -s -d -j ACCEPT
inspector71 / raspbian-lite-syncthing
Last active Oct 20, 2018
Install and autostart syncthing on Raspbian 9 (stretch)
View raspbian-lite-syncthing
# As root
apt install syncthing
nano /etc/systemd/syncthing.service
# Paste contents of
Ctrl + o
Crtl + x
# As "pi" user
sudo systemctl enable syncthing@pi.service
inspector71 / Git branch bash autocomplete *with aliases*
Created Sep 5, 2018 — forked from JuggoPop/Git branch bash autocomplete *with aliases*
Git branch bash autocomplete *with aliases* (add to .bash_profile)
View Git branch bash autocomplete *with aliases*
# To Setup:
# 1) Save the .git-completion.bash file found here:
# 2) Add the following lines to your .bash_profile, be sure to reload (for example: source ~/.bash_profile) for the changes to take effect:
# Git branch bash completion
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
# Add git completion to aliases
inspector71 / gitmerge.txt
Last active Jan 14, 2018
Git merge new / updated code into current branch, from another branch, keeping remote / central repo in mind
View gitmerge.txt
Git merge new / updated code into current branch, from another branch, keeping remote / central repo in mind
git checkout <hostOrReceivingBranch> # 1. If not already there, load the branch you'll merge code into
git pull origin <hostOrReceivingBranch> # 2. Update, get (pull) other people's changes to a remote or central (origin) branch
git merge <newOrUpdatedCodeBranch> # 3. Merge the code from your new / updated branch into the branch currently loaded
git push origin <hostOrReceivingBranch> # 4. Push your changes back to a remote / central (origin) branch for everyone to see
View .colour-prompt.bash
# Thanks to
# get current branch in git repo
function parse_git_branch() {
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
if [ ! "${BRANCH}" == "" ]
echo "[${BRANCH}${STAT}]"
echo ""
inspector71 / aliases
Last active Nov 12, 2019
Helpful shell aliases
View aliases
alias unrar="unrar e -r *.rar"
# RPi firmware details
alias fw='/opt/vc/bin/vcgencmd version'
alias bbfw='/usr/bin/vcgencmd version'
# Kodi (on a BusyBox-based OS, such as LibreELEC)
alias kls="cat /storage/.kodi/temp/kodi.log | grep " # Kodi log search
alias klw="tail -f /storage/.kodi/temp/kodi.log " # Kodi log watch
alias klt="tail -200 /storage/.kodi/temp/kodi.log | more " # Kodi log tail
You can’t perform that action at this time.