Skip to content

Instantly share code, notes, and snippets.

View roblav96's full-sized avatar

Robert Laverty roblav96

View GitHub Profile
#!/usr/sbin/nft -f
flush ruleset
table inet filter {
chain input {
type filter hook input priority 0; policy drop;
ct state { established, related } accept
ct state { invalid } drop
iif "lo" accept
# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
#!/usr/bin/env bash
sudo apt install zsh
curl -sfL git.io/antibody | sudo sh -s - -b /usr/local/bin
git clone https://github.com/roblav96/dotfiles $HOME/.dotfiles
sh $HOME/.dotfiles/install.zsh
grep -q -F $(which zsh) /etc/shells
Array.from(document.all).forEach(el => {
let tag = el.tagName.toLowerCase()
if (!tag.startsWith('ytd-') || !tag.endsWith('-video-renderer')) return
let overlaytime = el.querySelector('ytd-thumbnail-overlay-time-status-renderer')
if (!overlaytime) return
let time = overlaytime.textContent.trim()
let split = time.split(':').reverse()
let [seconds, minutes, hours] = split.map(Number)
if (hours) minutes += hours * 60
if (minutes >= MINUTES) return
admanager.google.com
admob.google.com
ads.google.com
admob.google.com
firebase.google.com
console.firebase.google.com
google.com
www.google.com
cloud.google.com
console.cloud.google.com
@roblav96
roblav96 / nvidia-shield-tv-2019-pm-list-packages.md
Last active November 11, 2023 05:24
Nvidia Shield TV 2019 - Bloatware Removal Guide using Package Manager (adb shell pm)

🟢 System Enabled Packages

android
android.autoinstalls.config.nvidia
com.amazon.amazonvideo.livingroom.nvidia
com.android.backupconfirm
com.android.bluetooth
com.android.bluetoothmidiservice
com.android.captiveportallogin
@roblav96
roblav96 / flash-all.sh
Last active October 21, 2023 15:00
Skip reboot while flashing Android Factory Images to dual slot Google Pixel devices
#!/bin/sh
echo "🌕 Flashing -> SLOT B"
fastboot --set-active=b
sleep 1
fastboot reboot-bootloader
sleep 10
fastboot flash bootloader bootloader-*.img
fastboot reboot-bootloader
sleep 10
am_proc_died (1595 2166) I [0,30889,com.android.chrome:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:1,0,11]
am_uid_stopped (1595 2166) I 90001
am_compact (1595 1863) I ┌ [30889,com.android.chrome:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:1,all,59932,35060,24480,5824,-59932,-35060,-24480,
am_compact (1595 1863) I └ -5824,90,1,15303681,100,4,1449944,60]
ResolverController (820 31146) E No valid NAT64 prefix (101, <unspecified>/0)
ServiceManagement (878 942) W Waited one second for vendor.display.config@1.3::IDisplayConfig/default
ServiceManagement (878 942) I getService: Trying again for vendor.display.config@1.3::IDisplayConfig/default...
init (1 1) I Received control message 'interface_start' for 'vendor.display.config@1.3:
@roblav96
roblav96 / sony-x900f-pm-list-packages.sh
Last active March 26, 2021 11:34
Sony X900F Android TV App Package Management
#!/usr/bin/env bash
# Android Package Manager
# https://developer.android.com/studio/command-line/adb#pm
echo; echo Disabled
echo "$(adb shell pm list packages -f -d)" | sort --ignore-case | sed --unbuffered --regexp-extended 's/^package://'
echo; echo Uninstalled
echo "$(adb shell pm list packages -f -u)" | sort --ignore-case | sed --unbuffered --regexp-extended 's/^package://'
echo; echo Enabled
.application-main .container-xl {
max-width: none !important;
}
.application-main .container-lg {
max-width: none !important;
margin-left: 0px !important;
}
/* New github repository react divs (2023) */
.react-repos-overview-margin {