- SteamOS locks down basically all directories outside of the
/home
directory- Hence, installs via
pacman
or the AUR are disabled by default, and will be deleted after each SteamOS upgrade
- Hence, installs via
- The installation steps below will install VSCode without Flatpak
- Some things might not work well, such as browser hooks when logging into external services and extensions
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
# This script assumes that you want it downloaded to /opt | |
curl -o /opt/cursor-editor/cursor.appimage https://downloader.cursor.sh/linux/appImage/x64 |
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
import os | |
END_VCARD = "END:VCARD\n" | |
in_file = "./contacts.vcf" | |
out_file_format = "./contacts_out/contact_{}.vcf" | |
with open(in_file, "r") as input_file: | |
contents_as_string = input_file.read() | |
arr = [e+END_VCARD for e in contents_as_string.split(END_VCARD) if e] |
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
function AnalyzeReg($p, $f) { | |
Get-ItemProperty $p | ForEach-Object { | |
if (($_.DisplayName) -or ($_.version)) { | |
[PSCustomObject]@{ | |
Name = $_.DisplayName; | |
Bitness = $f; | |
Version = $_.DisplayVersion; | |
InstallDate = $_.InstallDate | |
} | |
} |
- opkg install wireguard luci-app-wireguard
- Reboot router
- Generate server keys (one-liner)
- wg genkey | tee mywgserver.privatekey | wg pubkey > mywgserver.publickey
- Generate a new client key (one-liner)
- wg genkey | tee [NAME].privatekey | wg pubkey > [NAME].publickey
- Add new interface wg0 in LuCI (Network->Interfaces->Add new interface)
- Proto: Wireguard VPN
- Private Key: Fill with content of mywgserver.privatekey
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
#!/bin/sh | |
# Assumes backup was made using sysupgrade -k -b <name> | |
# Paste package list into /etc/backup/installed_packages.txt | |
# Reinstalls packages (ignoring source descriptors "overlay" and "rom" using awk) | |
opkg update | |
cat /etc/backup/installed_packages.txt | awk 'gsub(/overlay|rom/, ""){print}' | xargs opkg install | |
# Clean up duplicate conffiles generated by OPKG | |
rm /etc/*/*-opkg | |
echo "Done. Any duplicate conffiles created by OPKG have been deleted" |
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
#!/bin/sh | |
# Example of job definition (as add job using crontab -e): | |
# .---------------- minute (0 - 59) | |
# | .------------- hour (0 - 23) | |
# | | .---------- day of month (1 - 31) | |
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ... | |
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat | |
# | | | | | | |
# * * * * * user-name command to be executed | |
# 30 02 15,28 * * /root/opkg_updater.sh |
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
#!/bin/sh | |
date=$(date '+%Y-%m-%d-%H-%M') | |
backup_name="backup-FLMWRL-$date.tar.gz" | |
sysupgrade -k -b $backup_name | |
echo "Done. Backup stored at $(pwd)/$backup_name" |