This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if (@This==@IsBatch) @then | |
@echo off & setLocal EnableDelayedExpansion & CHCP 65001 >NUL | |
:: Copyright Conor McKnight | |
:: https://github.com/C0nw0nk/ | |
:: https://www.facebook.com/C0nw0nk | |
:: Execute Javascript without needing to install anything | |
:: store javascript output in batch file variable | |
set site="https://checkip.amazonaws.com/" | |
for /f "tokens=*" %%a in (' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if (@This==@IsBatch) @then | |
@echo off & setLocal EnableDelayedExpansion & CHCP 65001 >NUL | |
:: Copyright Conor McKnight | |
:: https://github.com/C0nw0nk/ | |
:: https://www.facebook.com/C0nw0nk | |
:: Execute Javascript without needing to install anything | |
:: store javascript output in batch file variable | |
set site="https://www.youtube.com/watch?v=frFdisA68Lo&t=32s" | |
for /f "tokens=*" %%a in (' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: youtube-dl.cmd [url[.txt]] [...] | |
:: download youtube-dl.exe from https://github.com/ytdl-org/youtube-dl/releases/latest/download/youtube-dl.exe | |
:: download ffmpeg.exe from https://github.com/C0nw0nk/youtube-dl-concurrent/raw/main/ffmpeg.exe | |
:: any combination of URLs and text files may be used. | |
:: text files are found and processed first, then all URLs. | |
@ECHO OFF | |
:: set target folder, else current folder is used | |
SET TargetFolder=D:\Downloads\YouTube | |
:: if defined will create folders for each text list entered |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off & setLocal EnableDelayedExpansion | |
TITLE ^start Admin elevation batch file and reboot script upon ^exit | |
:start | |
net session >nul 2>&1 | |
if %errorlevel% == 0 ( | |
goto :admin | |
) else ( | |
@pushd %~dp0 & fltmc | find ^".^" && (powershell start '%~f0' ' %*' -verb runas 2>nul && exit /b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#https://www.amazon.co.uk/gp/product/B09S15RLH5/ | |
#Created this post as a refrence for anyone struggling to get it to work | |
sudo apt update | |
sudo apt upgrade | |
sudo apt install bluetooth pi-bluetooth bluez blueman | |
cd /lib/firmware/rtl_bt | |
sudo wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_bt/rtl8761bu_config.bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#https://www.amazon.co.uk/gp/product/B07LGSDBTF/ | |
#Created this post as a refrence for anyone struggling to get it to work | |
sudo apt-get install -y raspberrypi-kernel raspberrypi-kernel-headers # slow | |
git clone https://github.com/aircrack-ng/rtl8812au.git | |
cd rtl8812au |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#tweak for your own needs original guide was here but everybody has their own setup https://not-blog.heyitschris.com/how-to-properly-set-up-pia-vpn-on-a-raspberry-pi-with-a-killswitch-ckhi6vlp900kt1cs189cm5w7u | |
#Obtain openvpn file such as uk-london from https://www.privateinternetaccess.com/openvpn/openvpn.zip | |
#Directory to store vpn files /etc/openvpn/client/uk-london.conf | |
sudo apt update && sudo apt upgrade -y | |
curl https://ipinfo.io/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo wget -q https://git.io/vM1kx -O /tmp/rpizram && bash /tmp/rpizram | |
sudo nano /etc/sysctl.conf | |
vm.vfs_cache_pressure=500 | |
vm.swappiness=100 | |
vm.dirty_background_ratio=1 | |
vm.dirty_ratio=50 |
NewerOlder