Skip to content

Instantly share code, notes, and snippets.

View stefanovazzocell's full-sized avatar
🙂
Hello World

Stefano Vazzoler stefanovazzocell

🙂
Hello World
View GitHub Profile
@stefanovazzocell
stefanovazzocell / README.md
Last active March 21, 2021 18:40
Faster browser playback

Just create a bookmark and add the following as URL (make sure to change the playback rate ("2" for 2x speed) with whichever speed you prefer.

javascript:(function(x){document.querySelector('video').playbackRate=x})(2)

Select the browser bookmark while watching a video (YouTube is a good place to test) to speed it up.

Notes:

@stefanovazzocell
stefanovazzocell / xps15fingerprint.sh
Created November 19, 2020 00:55
Ubuntu / PopOS Fingerprint Support - Dell XPS 15 9500
#!/usr/bin/env bash
echo 'Adding Dell repository...'
# https://www.dell.com/community/XPS/XPS-13-9300-Does-fingerprint-reader-work-on-linux/td-p/7514958
sudo sh -c 'cat > /etc/apt/sources.list.d/focal-dell.list << EOF
deb http://dell.archive.canonical.com/updates/ focal-dell public
# deb-src http://dell.archive.canonical.com/updates/ focal-dell public
deb http://dell.archive.canonical.com/updates/ focal-oem public
# deb-src http://dell.archive.canonical.com/updates/ focal-oem public
@stefanovazzocell
stefanovazzocell / unifi.sh
Created September 6, 2020 23:13
Unifi USG load-balance tweak
configure
set load-balance group wan_failover interface eth0 route-test type ping target 8.8.8.8
set load-balance group wan_failover interface eth0 route-test interval 2
set load-balance group wan_failover interface eth0 route-test count failure 15
set load-balance group wan_failover interface eth0 route-test count success 1
set load-balance group wan_failover interface eth2 route-test type ping target 8.8.8.8
set load-balance group wan_failover interface eth2 route-test interval 2
set load-balance group wan_failover interface eth2 route-test count failure 10
set load-balance group wan_failover interface eth2 route-test count success 2
commit; save; exit;