apt-get install lm-sensors
cp /usr/share/perl5/PVE/API2/Nodes.pm /usr/share/perl5/PVE/API2/Nodes.pm.bak
cp /usr/share/pve-manager/js/pvemanagerlib.js /usr/share/pve-manager/js/pvemanagerlib.js.bak
Here’s a shell script that pulls all Tor exit nodes and blocks them using iptables
. The script will create an ipset
hash for blocking the Tor exit nodes, and you can set up a systemd
service and timer to run it periodically.
#!/bin/bash
# Name of the ipset list
IPSET_NAME="tor-exit-nodes"
#!/bin/bash | |
# Function to calculate datetime after a given number of seconds from a starting datetime | |
calculate_datetime() { | |
local start_datetime="$1" | |
local elapsed_seconds="$2" | |
# Convert the start datetime to seconds since the epoch | |
local start_epoch=$(date -d "$start_datetime" +%s) |
For my reference in the future I will record here the steps that I had to follow in order to install Openwrt on the tp-link router EX220. This was done using a Windows 11 machine.
Disclaimer: Use this tutorial at your own risk. We are not responsible for any damage/harms done to your device using the information from this tutorial.
These are the steps provided at the official https://openwrt.org/toh/tp-link/ex220_v1 page:
As some people reported sleep-related problems and also other issues with the M16, which I also encountereed on my own and fixed on my device, I decided to write this down so that everyone with these problems can fix them on their machine if they run into them.
Some of them are also just features that some people are unaware of.
These fixes mostly involve changes in Windows Power Plan and Registry. I only tested them for Windows 10 for the Zephyrus M16 2021, but I'm sure they also work for Windows 11 and also for the 2022 version.
Note: My Windows is set to German. I took the English names for the power plan settings out of the registry. They might be called different depending on language settings. The names of the registry keys themselves are unaffected by your language setting.
#!/bin/sh | |
# create udev rule | |
sudo tee "/etc/udev/rules.d/60-ac-or-battery-change.rules" > /dev/null <<'EOF' | |
# Rule for when switching to battery | |
ACTION=="change",SUBSYSTEM=="power_supply",ENV{POWER_SUPPLY_ONLINE}=="0",ENV{DISPLAY}=":1",ENV{XAUTHORITY}="/run/user/1000/gdm/Xauthority",ENV{DBUS_SESSION_BUS_ADDRESS}="unix:path=/run/user/1000/bus",RUN+="/usr/bin/su niccola -c '/usr/bin/ac_change.sh 0'" | |
# Rule for when switching to powersupply | |
ACTION=="change",SUBSYSTEM=="power_supply",ENV{POWER_SUPPLY_ONLINE}=="1",ENV{DISPLAY}=":1",ENV{XAUTHORITY}="/run/user/1000/gdm/Xauthority",ENV{DBUS_SESSION_BUS_ADDRESS}="unix:path=/run/user/1000/bus",RUN+="/usr/bin/su niccola -c '/usr/bin/ac_change.sh 1'" | |
EOF |
Add-Type -AssemblyName PresentationCore,PresentationFramework | |
Add-Type -AssemblyName System.Windows.Forms | |
[System.Windows.Forms.Application]::EnableVisualStyles() | |
$ErrorActionPreference = 'SilentlyContinue' | |
$wshell = New-Object -ComObject Wscript.Shell | |
$Button = [System.Windows.MessageBoxButton]::YesNo | |
$ErrorIco = [System.Windows.MessageBoxImage]::None | |
$Ask = 'Do you want to run this as an Administrator? | |
"Yes" to Run as an Administrator |
#!/bin/bash | |
# Check for current power save state | |
cat /sys/module/snd_hda_intel/parameters/power_save | |
cat /sys/module/snd_hda_intel/parameters/power_save_controller | |
# Immediately disable session power save | |
echo "0" | sudo tee /sys/module/snd_hda_intel/parameters/power_save | |
echo "0" | sudo tee /sys/module/snd_hda_intel/parameters/power_save_controller | |
# Disable power save forever |
#!/bin/bash | |
# install pulseeffects | |
sudo apt-get install pulseeffects lsp-plugins -y | |
# run pulseeffects and reset to its defaults | |
pulseeffects -r & | |
# | |
# 1) Install all presets | |
# 2) Install Perfect EQ preset |