Skip to content

Instantly share code, notes, and snippets.

@fjctp
fjctp / download.py
Last active April 27, 2021 05:51
Download all URLs in humblebundle's order page
#!/usr/bin/python3
import argparse
import json
import subprocess
parser = argparse.ArgumentParser(description='Download from humblebundle')
parser.add_argument('filename', help='.json')
args = parser.parse_args()
filename = args.filename
@fjctp
fjctp / README.md
Last active June 13, 2021 16:32
OpenSUSE EFI file for Secure Boot

Secure Boot

By default

/EFI/BOOT/bootx64.efi as the extension that will load and execute in order to load the operative system.
In Windows machines, the correct extension is in /EFI/Microsoft/Boot/BCD.efi
for openSUSE is /EFI/opensuse/grubx64.efi (or shim.efi if we have secure boot enabled)
@fjctp
fjctp / README.md
Last active June 13, 2021 16:38
Acer Switch Alpha 12

Wiki for Acer Switch Alpha 12

Boot to BIOS

Press and hold F2 during boot

Select Boot Device

Press F12 during boot

@fjctp
fjctp / qemu_start.bash
Last active October 24, 2021 19:04
Using virt-install to create a virtual machine
#!/bin/bash
#
# based on https://gist.github.com/Manouchehri/2b1b523eed834f295915
set -e
ISO_FILE=~/Downloads/archlinux-2021.10.01-x86_64.iso
DISK_FILE=archlinux.qcow2
if [[ ! -f ${ISO_FILE} ]]; then
@fjctp
fjctp / web-servers.md
Created May 12, 2024 23:56 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@fjctp
fjctp / README.md
Created June 15, 2025 00:25 — forked from prestonw/README.md
Speedtest against Hetzner servers

Hetzner Speedtest

This Python application serves as a rudimentary speed test utility designed to evaluate network performance against public Hetzner endpoints. The tool not only measures download speeds but also provides approximate latency metrics to various Hetzner data centers for a comprehensive network assessment.

usage

python hetzner-speedtest.py [lg|md|sm] -v

-v is optional to enter verbose mode