sudo kpartx -a <imgfile>
ls -l /dev/mapper
pacstrap -C pacman.conf -NK rootfs/ base base-devel
[options]
HoldPkg = pacman glibc
Architecture = aarch64
CheckSpace
sudo kpartx -a <imgfile>
ls -l /dev/mapper
pacstrap -C pacman.conf -NK rootfs/ base base-devel
[options]
HoldPkg = pacman glibc
Architecture = aarch64
CheckSpace
| #include <stddef.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| #include <sys/stat.h> | |
| int main(int argc, char *argv[]) { | |
| FILE *backup_file; | |
| int file_header; |
This guide will show you how to create a bootable Windows USB flash drive without Ventoy.
Make sure to replace /dev/sdX in the command with your actual block device. You can list all of your block devices using the command lsblk.
We need a GPT partition table and two partitions:
EFI SystemMicrosoft basic data| #!/usr/bin/env python3 | |
| # Convert ITGmania favorites.txt to Project Outfox Stats.xml | |
| # Usage: itg2outfoxfavorites.py <path to favorites.txt> | |
| import sys | |
| with open(sys.argv[1], 'r') as f: | |
| lines = f.readlines() | |
| counter = 0 | |
| for line in lines: | |
| if not all(["---" in line, "Favorites" in line]): |
| #!/usr/bin/env python3 | |
| from os import environ, getenv | |
| from time import sleep | |
| from urllib.parse import urlencode | |
| from urllib.request import Request, urlopen | |
| import hashlib | |
| import ssl | |
| import xml.etree.ElementTree as ET | |
| URL = environ["FRITZ_URL"] if getenv("FRITZ_URL") else "https://fritz.box" |
| #!/usr/bin/python | |
| from math import trunc | |
| import sys | |
| if len(sys.argv) <= 1: | |
| print('pixelpitch.py <width> <height> <size in inch>') | |
| quit() | |
| width = float(sys.argv[1]) | |
| height = float(sys.argv[2]) |
| #!/usr/bin/env python3 | |
| from selenium.common.exceptions import NoSuchElementException | |
| from selenium import webdriver | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.common.keys import Keys | |
| from selenium.webdriver.support import expected_conditions as EC | |
| from selenium.webdriver.support.ui import Select | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| import requests | |
| import sys |
| #!/usr/bin/python | |
| from internetarchive import upload | |
| from random import randint | |
| from requests import get | |
| import hashlib | |
| import sys | |
| def info(text): print(f"\033[94mINFO: \033[00m{text}") | |
| def warning(text): print(f"\033[93mWARNING: \033[00m{text}") |
| #!/usr/bin/python -u | |
| # Based on: | |
| # https://github.com/DavidArsene/samfirm.js | |
| # https://github.com/martinetd/samloader | |
| # https://github.com/ysfchn/easyfirmware | |
| from Cryptodome.Cipher import AES | |
| from Cryptodome.Util.Padding import pad | |
| from Cryptodome.Util.Padding import unpad | |
| import base64 | |
| import hashlib |
This set of files will help you to connect to a network behind carrier-grade NAT using WireGuard. You'll be able to access the LAN of the WireGuard peer behind the CGNAT and route your entire internet traffic to it.
wireguard-hub.conf: This config is intended for the WireGuard peer that has access to a public IP address, e.g. VPSopenwrt.conf: This config is intended for the WireGuard peer behind the CGNAT, e.g. OpenWrt router or Raspberry Piclient.conf: This config is inteded for a WireGuard peer that wants to access the LAN of the device behind the CGNAT and route its entire internet traffic to it, e.g. computer or mobile phone