Skip to content

Instantly share code, notes, and snippets.


  • UK
Block or report user

Report or block pbhj

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
pbhj / digikam.compilation.bash
Created Aug 4, 2019
installing digikam 6.1.0 on Kubuntu 18.04.2 (Bionic)
View digikam.compilation.bash
tar xvf ./digikam-6.2.0.tar.xz
cd digikam-6.2.0
# following
export VERBOSE=1
export QTDIR=/usr/lib/qt5
export PATH=$QTDIR/bin:$PATH
# packages for compile and deb management
# without ECM one gets error `Could not find a package configuration file provided by "ECM"`
sudo apt install devscripts checkinstall extra-cmake-modules
pbhj / .mozilla_firefox_$profile_userContent.css
Last active May 17, 2019
modify date format on stackoverflow and stackexchange sites using userContent.css for Firefox
View .mozilla_firefox_$profile_userContent.css
* Please share improvements here or on StackOverflow and add a link here.
* Please upvote if you agree that
* users should have a choice of date format available.
* - see
* - may be useful too, but careful of the double escaping!
* keywords: date format, date display, stackoverflow, stackexchange, css, script
View scriptlet-display-anchors.js
javascript:var css = 'a:after{content:" (" attr(href) ") ";}', style = document.createElement('style'); style.type = 'text/css'; style.appendChild(document.createTextNode(css)); document.head.appendChild(style);
pbhj /
Created Aug 14, 2018
postrm script for edubu-art
set -e
case "$1" in
# Restore Breathe icons diversions (we need a better way to do this)
dpkg-divert --quiet --rename --package edubuntu-artwork --remove /usr/share/icons/Breathe/16x16/places/start-here.png
dpkg-divert --quiet --rename --package edubuntu-artwork --remove /usr/share/icons/Breathe/22x22/places/start-here.png
dpkg-divert --quiet --rename --package edubuntu-artwork --remove /usr/share/icons/Breathe/24x24/places/start-here.png
dpkg-divert --quiet --rename --package edubuntu-artwork --remove /usr/share/icons/Breathe/32x32/places/start-here.png
View steam system info (Kaveri)
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD A8-7600 Radeon R7, 10 Compute Cores 4C+6G
CPU Family: 0x15
View ecn engine check codes 20171118
Zafira B
000000 + 8 flashes, then 3 flashes of engine check light
pbhj /
Created Jun 27, 2017
bookmarkive filter script
# take input from stdin and sort, remove duplicates and filter
set -e
cat /dev/stdin | sort | uniq | \
# strip hash endings (will kill twitter)
sed -e "s/#.*//" | \
# remove session id strings
pbhj /
Created Jun 27, 2017
bookmarkive shell script
# this is a heavily modified version of " URLs"
# it should take the last ~1.1 months worth of bookmarks and make a local archive,
# using wget, of the pages that were bookmarked (or whose bookmark was altered).
# break on errors, see "help set" for info
set -e
# # copy places.sqlite locally
# cp --force $(find ~/.mozilla/ -name "places.sqlite") ./
pbhj / Groot-compromised-hosts
Last active Oct 16, 2016
A hosts file based on "Compromised stores that contain Javascript malware (scanned at 14th October 2016). See".
View Groot-compromised-hosts
# see
# list of hosts in "null routed /etc/hosts" file format
# these hosts were considered to be running compromised software as of October 2016
pbhj / etc-init.d-plexmediaserver
Created Jan 19, 2015
View etc-init.d-plexmediaserver
k1210:~$ cat /etc/init.d/plexmediaserver
#!/bin/sh -e
# upstart-job
# Symlink target for initscripts that have been converted to Upstart.
set -e
INITSCRIPT="$(basename "$0")"
You can’t perform that action at this time.