Skip to content

Instantly share code, notes, and snippets.

@citruz
citruz / QEMU_ON_M1.md
Last active May 3, 2025 17:10
Create Ubuntu and Windows VMs with QEMU on Apple Silicon

Running Linux and Windows on M1 with QEMU

30.11.2020: Updated with the new patchseries and instructions for Windows

02.12.2020: Added tweaks

08.12.2020: Updated with patchseries v4

31.01.2020: Updated with patchseries v6

@dragon788
dragon788 / win10_binary_fission.md
Last active November 1, 2024 21:59
Making the Windows 10 "chubby" install.wim compatible with a FAT32 USB so a UEFI bootable USB can be created from Linux/macOS/ChromeOS

MAGIC aka Making Anything Gruelingly "Impossible" Coherent

Whatever operating system you are using to create the USB, you will need to have a Windows 10 ISO, either from Microsoft or your system manufacturer and have a USB drive 8GB or larger (or one with at least 5GB of free space and using the FAT32 filesystem, but using a fresh and empty one is best).

TL;DR

#macOS/Linux
# First try the `bootiso` program, it has options for splitting the WIM for you!
# https://jsamr.github.io/bootiso/
# You need to already have 7zip aka `p7zip` on macOS and Linux, and `wimlib` macOS via `brew` or `wimtools` on Linux
@max-lt
max-lt / md-renderer.conf
Last active December 25, 2024 23:37
Nginx config to render markdown files (client side)
location /__special {
internal;
allow all;
root /usr/share/nginx/html/__special;
}
location = /__md_file {
internal;
allow all;
@gabriel-v
gabriel-v / gist:59790f94fb8ac2771f9b0b045e8b5448
Last active February 20, 2017 11:44 — forked from philipz/gist:04a9a165f8ce561f7ddd
Debian ARM64 (Aarch64) image for QEMU

QEMU version: 2.2.0

HDD init:

  • qemu-img create -f qcow debian8-arm64.img 10G

Netinstall initrd:

  • wget ftp://ftp.ru.debian.org/debian/dists/jessie/main/installer-arm64/20150422/images/netboot/debian-installer/arm64/initrd.gz
@gabriel-v
gabriel-v / elasticsearch.sh
Last active February 20, 2017 11:06
Elasticsearch Setup
#!/bin/bash
set -e
ES_HOME=/installation/dir/for/elasticsearch
ES_HEAP_SIZE=1g exec $ES_HOME/bin/elasticsearch
@cmod
cmod / minimal_fb_messenger.css
Last active July 2, 2024 13:32
Minimal Facebook Messenger for Fluid
/*
Minimal Facebook Messenger
==========================
1. Make a Fluid (http://fluidapp.com/) instance of https://facebook.com/messages/
1. a. (You need to buy the paid version of Fluid to modify UserStyles)
2. Apply the below CSS as a Userstyles stylesheet
3. Like magic, you can now message without all the cruft of Full Facebook
@mollerse
mollerse / gulpfile-express.js
Last active March 28, 2021 20:07
Gulpfile for livereload + static server
var gulp = require('gulp'),
sass = require('gulp-sass'),
browserify = require('gulp-browserify'),
concat = require('gulp-concat'),
embedlr = require('gulp-embedlr'),
refresh = require('gulp-livereload'),
lrserver = require('tiny-lr')(),
express = require('express'),
livereload = require('connect-livereload')
livereloadport = 35729,