Skip to content

Instantly share code, notes, and snippets.

@the-darkvoid
the-darkvoid / README.md
Created February 21, 2022 17:40
Disable FireTV Auto-update

ADB Commands needed to block

pm disable-user --user 0 com.amazon.device.software.ota.override
pm disable-user --user 0 com.amazon.device.software.ota

ADB Commands needed to unblock

pm enable com.amazon.device.software.ota.override

pm enable com.amazon.device.software.ota

@the-darkvoid
the-darkvoid / README.md
Created September 12, 2021 04:15
Clear AWS Instances + IPs
aws ec2 terminate-instances --instance-ids `aws ec2 describe-instances --filters "Name=image-id,Values=ami-0ceee60bcb94f60cd" --query "Reservations[*].Instances[*].InstanceId" --output text`

for ip in aws ec2 describe-addresses --query "Addresses[*].AllocationId" --output text; do aws ec2 release-address --allocation-id $ip; done

@the-darkvoid
the-darkvoid / readme.md
Last active September 7, 2021 06:58
Netgear R6300v2 disable leds

Disable all Netgear R6300v2 led lights

Netgear logo
gpio enable 9
gpio disable 1
Power Led
gpio enable 2
USB Led
gpio enable 8
Wireless Led
@the-darkvoid
the-darkvoid / readme.md
Last active March 19, 2019 04:39
OpenConnect (ocserv) on entware

Firewall rules

iptables -I FORWARD -i vpns+ -s 172.16.79.0/24 -j ACCEPT
iptables -I INPUT -i vpns+ -s 172.16.79.0/24 -j ACCEPT
iptables -t nat -I POSTROUTING -s 172.16.79.0/24 -o br0 -j MASQUERADE
net.ipv4.tcp_fastopen=3
net.ipv4.tcp_fastopen_key=b9b738a4-9cad4a74-4c832cbf-e20f561f
@the-darkvoid
the-darkvoid / CatalogUpdate.md
Created September 21, 2015 11:41
Apple Software Catalog

Update Apple Catalog URL

The AppStore Catalog URL determines what programs are available on the Apple Store.

The following catalogs are available:

  • Developer Program
  • Beta Program
  • Regular
@the-darkvoid
the-darkvoid / _README.md
Created August 2, 2015 13:50
AsusWRT Merlin: Isolate Guest WiFi
@the-darkvoid
the-darkvoid / routing.sh
Created June 22, 2015 14:13
TomatoUSB - Selective OpenVPN Routing
# This code goes in the WAN UP section of the Tomato GUI.
#
# This script configures "selective" VPN routing. Normally Tomato will route ALL traffic out
# the OpenVPN tunnel. These changes to iptables allow some outbound traffic to use the VPN, and some
# traffic to bypass the VPN and use the regular Internet instead.
#
# To list the current rules on the router, issue the command:
# iptables -t mangle -L PREROUTING
#
# Flush/reset all the rules to default by issuing the command:
@the-darkvoid
the-darkvoid / Readme.md
Created February 3, 2015 09:04
Check memory on Windows

Powershell (Windows 7):

Get-WmiObject CIM_PhysicalMemory | select banklabel,capacity,caption,devicelocator,partnumber | ft -AutoSize

Command Line (Windows 8):

wmic MEMORYCHIP get banklabel, capacity, caption, devicelocator, partnumber