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