Skip to content

Instantly share code, notes, and snippets.

@bgoodr
bgoodr / gist:56a66de9de71a538dd916581c123b145
Last active May 3, 2020 15:56
prevent.forbes.com.from.blocking.adblock.plus
[Adblock Plus 2.0]
! Version: 12
! Title: forbes.com anti-adblock filter list
! Expires: 4 days (update frequency)
! Homepage: https://gist.github.com/bgoodr/56a66de9de71a538dd916581c123b145
!
!
! Disable EasyList filters on forbes.com
! Have to do this so that I can attack the page directly. EasyList apparently is what
! is detectable by forbes.com and thus results in the extremely obnoxious adblock-blocker
@bgoodr
bgoodr / gist:9b59802948e1c5e9f69d0d2469d1654a
Created August 4, 2019 15:43
Copy fullpage screenshot to clipboard in Firefox
From https://stackoverflow.com/a/52857401/257924
CTRL-SHIFT-K
:screenshot --fullpage --dpr 4 --clipboard
brentg@oryx:~$ sudo systemctl disable avahi-daemon
[sudo] password for brentg:
Synchronizing state of avahi-daemon.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable avahi-daemon
Removed /etc/systemd/system/sockets.target.wants/avahi-daemon.socket.
Removed /etc/systemd/system/dbus-org.freedesktop.Avahi.service.
brentg@oryx:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
brentg@oryx:~$ sudo dpkg --configure -a
brentg@oryx:~$ sudo apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
brentg@oryx:~$ sudo apt install avahi-dnsconfd
Reading package lists... Done
Building dependency tree
Reading state information... Done
brentg@oryx:~$ sudo apt remove avahi-dnsconfd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
avahi-dnsconfd
0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded.
After this operation, 92.2 kB disk space will be freed.
Do you want to continue? [Y/n] y
brentg@oryx:~$ sudo apt-get --fix-broken install
[sudo] password for brentg:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
brentg@oryx:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libcuda1-384 nvidia-375 nvidia-opencl-icd-384
0 upgraded, 0 newly installed, 3 to remove and 1 not upgraded.
After this operation, 53.2 kB disk space will be freed.
Do you want to continue? [Y/n] y
brentg@oryx:~$ sudo apt upgrade
[sudo] password for brentg:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libcuda1-384 nvidia-375 nvidia-opencl-icd-384
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
brentg@oryx:~$ sudo dpkg --configure -a
[sudo] password for brentg:
brentg@oryx:~$ sudo apt autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
Del google-chrome-stable 67.0.3396.87-1 [52.5 MB]
Del update-manager-core 1:17.10.14 [8,396 B]
Del ebtables 2.0.10.4-3.5ubuntu2.17.10.1 [79.9 kB]
Del update-manager 1:17.10.14 [548 kB]
;; Hack around bug in Emacs 25 described in https://emacs.stackexchange.com/a/41889/15483
(cond
((< emacs-major-version 26)
;;
;; Backport Emacs 26 version of mark-whole-buffer to include the call to (goto-char (minibuffer-prompt-end)) below
;;
;; Original Emacs 25 version is in /usr/share/emacs/25.2/lisp/simple.el.gz
;; and contains:
;;
;; (defun mark-whole-buffer ()