This file contains hidden or 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
openSuSE Tumbleweed 4 lyfe | |
EDIT: until they make it impossible to run X11, then get a Mac or run Windows Server 2003 x64 | |
Target: IBM ThinkPad P14s (T14) Gen5 AMD (2024 model) | |
GRUB_CMDLINE_LINUX_DEFAULT="security= RESUME=none net.ifnames=0 biosdevname=0 amd_iommu=force_isolation iommu=pt pcie_acs_override=downstream,multifunction preempt=voluntary amdgpu.dcdebugmask=0x10 amd_pstate=active rtc_cmos.use_acpi_alarm=1 acpi.ec_no_wakeup=1 loglevel=4 noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off" | |
IMPORTANT to the P14s/T14 gen5 AMD: | |
amdgpu.dcdebugmask=0x10 |
This file contains hidden or 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
pip install audible-cli # no need to clone, but it lives here: https://github.com/mkb79/audible-cli | |
audible quickstart # follow the instructions and log into your Audible account | |
audible activation-bytes # get the activation bytes required to decrypt the file in ffmpeg | |
audible library list # get the ASINs of all books in your library | |
EITHER | |
audible download -a ASINASINA --aax-fallback # download a specific book by providing its ASIN obtained in the previous step | |
OR | |
audible download --all --aax-fallback # download your entire library in 'classic' AAX format, which is crackable | |
THEN | |
ffmpeg -activation_bytes XXXXXXXX -i audiobook.aax audiobook.mp3 # where XXXXXXXX are your 'activation bytes' |
This file contains hidden or 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
IN SHORT: | |
0. increase size of outermost container (grow qcow2, dd disk to larger disk, etc.) | |
1. increase size of partition containing the encrypted volume set (cfdisk, fdisk, etc.) | |
2. unlock encrypted volume | |
3. grow LVM "physical volume" | |
4. grow LVM "logical volume" | |
5. check filesystem | |
6. grow filesystem | |
7. tidy up and test. |
This file contains hidden or 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
#stop bitching about PSU | |
usb_max_current_enable=1 | |
#enable PCIe header & PCIe v3 support | |
dtparam=pciex1 | |
dtparam=pciex1_gen=3 |
This file contains hidden or 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
Run the following in a terminal: | |
sudo mdutil -Ea | |
sudo mdutil -ai off | |
sudo mdutil -ai on | |
Alternatively, use Automator to create an Application with a Run Shell Script Action containing the above and put it somewhere it's easy to access. |
This file contains hidden or 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
## fuck me, this distro is awesome | |
## like, seriously, they chose defaults that *I* would have chosen! | |
## and shit just, y'know, like....works | |
## it even comes with XScreenSaver!!! | |
## frfr no cap | |
## total lack of cap | |
## not even a yarmulke | |
## absolutely unprecedented | |
## | |
zypper update |
This file contains hidden or 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
git clone https://github.com/gebi/devolo-cli | |
then put in /etc/crontab | |
56 5 * * 7 root /root/src/bin/devolo-cli reboot 10.10.11.180 | |
58 5 * * 7 root /root/src/bin/devolo-cli reboot 10.10.11.181 | |
00 6 * * * root /root/src/bin/devolo-cli reboot 10.10.11.182 |
This file contains hidden or 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
grab the latest source from here: https://mirrors.edge.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/ | |
apt install gettext libinih-dev uuid-dev liburcu-dev libblkid-dev |
This file contains hidden or 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
apk add nano udev tmux htop curl sntpc | |
/etc/init.d/udev start #test | |
rc-update add udev default | |
rc-update add local default | |
# create files e.g. /etc/local.d/rc-local.start | |
# | |
## this is peculiar to the picm4 with 200MHz dynamic downclock, which induces several seconds per second of clock drift. Sync with a local NTP server every 5 seconds of server time, ~10-15 seconds realtime, to keep things more-or-less in line. | |
echo sntpc -i5 -v -d 10.10.11.202 > /etc/local.d/3-fixtime.start && chmod +x /etc/local.d/3-fixtime.start | |
## NOTE: files apparently have to end in .start or they will not be executed | |
## NOTE: commands have to exit or daemonize, or 'local' will fail to finish initialization and subsequent attempts to reboot will fail! |
This file contains hidden or 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
cat /etc/udev/rules.d/81-vpn-firewall.rules | |
KERNEL=="tun0", ACTION=="add", RUN+="/usr/bin/forward.sh add" | |
KERNEL=="tun0", ACTION=="remove", RUN+="/usr/bin/forward.sh remove" | |
cat /usr/bin/forward.sh | |
#!/bin/bash | |
# | |
# forward.sh | |
# VER 0.1 | |
# |