Skip to content

Instantly share code, notes, and snippets.

@dragonfire1119
dragonfire1119 / install-openwrt-on-proxmox.md
Last active June 13, 2025 22:12
Install OpenWRT on Proxmox
@cGandom
cGandom / RaspberryPi4-qemu.md
Last active October 12, 2025 16:46
Emulating Raspberry Pi 4 with Qemu

Emulating Raspberry Pi 4 with Qemu

Just a quick update before we dive in: what we're actually doing here is running Raspberry Pi OS (64-bit) on a QEMU virtual ARM setup. This isn't full-blown hardware emulation of the Raspberry Pi 4, but more about creating a virtual environment for the OS. It doesn't mimic all the specific hardware features of the Pi 4, but it's pretty useful and great for general testing. I turned to this solution mainly to extract a modified sysroot from the Raspberry Pi OS, something not readily available in other resources. For those looking into detailed emulation of the actual Raspberry Pi 4's hardware in QEMU, check out this link for the latest updates: https://gitlab.com/qemu-project/qemu/-/issues/1208.

Hope it helps! :D

Shortcomings: No GUI yet, only console.

Steps

@kconner
kconner / macOS Internals.md
Last active October 8, 2025 16:45
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@Al-Azif
Al-Azif / pi-exploit-host.conf
Last active March 1, 2025 20:26
Config file for exploit host on Pi-hole
# 0. Use `crtl+h` and replace `{{HOST}}` with the IP address of a server you
# control and want to direct the traffic to. Or Just use `0.0.0.0` to block it.
#
# 1. Log into your Pi-hole device and move this file into the `/etc/dnsmasq.d/`
# directory. Feel free to rename it.
#
# 2. Run the command `pihole restartdns`
# Redirects Nintendo Landing Page Domains
address=/ctest.cdn.nintendo.net/{{HOST}}
@Maigre
Maigre / tailscale-glinet.sh
Created April 8, 2022 08:32
Install Tailscale on GL.iNET router, using microSD/USB storage.
#!/bin/bash
#
# Tailscale install script on GL.iNet devices
# Tested on BERYL (MT1300), should work on MANGO (GL-MT300N)
# and probably other mipsel devices, as long as external storage (microSD/USB)
# is available.
#
# Written by Thomas BOHL for Hemisphere-Project - 2022
# Free to use - No warranty provided
@wallw-dev
wallw-dev / macos-setup.md
Last active September 13, 2022 16:59
MacOS Setup

Installation

Note that most of the Settings/Preferences-specific items are just that: preference. Feel free to play around and find something you like.

  • Get rid of just about everything in the dock (if you need something less often, use cmd+space and type the name of the thing)
  • Open Safari, copy instructions for installing brew
  • Open Terminal (via cmd+space), paste
    • While that is doing its thing, poke around in settings:
      • Dark mode
  • Quicker screen saver delay
@lukassup
lukassup / synology-dsm7-fix.diff
Created January 28, 2022 18:38
Fix for Synology DSM v7 nginx config
diff --git a/usr/syno/share/nginx/DSM.mustache.orig b/usr/syno/share/nginx/DSM.mustache
index f4aa1cc..c648799 100644
--- a/usr/syno/share/nginx/DSM.mustache.orig
+++ b/usr/syno/share/nginx/DSM.mustache
@@ -1,9 +1,9 @@
{{#DSM}}
server {
- listen {{port}} default_server;
- listen [::]:{{port}} default_server;
+ listen {{port}};
@rain-1
rain-1 / Raspberry Pi, Static HTTPS site with Docker and Nginx.md
Last active May 14, 2025 21:22
Raspberry Pi, Static HTTPS site with Docker and Nginx

Raspberry Pi, Static HTTPS site with Docker and Nginx

This tutorial is dated Oct 2021, if it's much further on than that this information might be out of date.

This is a guide on setting up a static HTTPS website on your raspberry pi using docker and nginx. The aim is to have this running on the raspberry pi and to be able to access it from a host computer on the same local network. You should already be able to ssh into your pi from your host computer and have raspberry pi OS set up.

Find your raspberry pi

@HarvsG
HarvsG / aHowTo80211ronQSKD.md
Last active February 3, 2023 01:59
A hacked Qualcomm SDK OpenWRT 150.05 /lib/wifi/hostapd.sh to get 802.11r working. A copy of my /etc/config/wireless as well

How to get 802.11r (Fast Transition) working on Qualcomms fork of OpenWRT 15.05. In this case on a Gl-inet router

Unfortunately just setting the 4 lines as detailed in this reddit post almost works, however hostapd fails to start due to the auto generated r0kh strings having incorrect formatting. The sypmtom was that the network would appear as open and devices would fail to connect.

image

As far as I can tell at the time of writing, this r0khs are unecessary with WPA2-PSK forms of authentication if ft_psk_generate_local=1 is enabled in hostapd. So I commented out lines 688 - 690 of /lib/wifi/hostapd.sh

Written by Thanos Apostolou
http://askubuntu.com/questions/53822/how-do-you-run-ubuntu-server-with-a-gui
Some more info can be found here https://help.ubuntu.com/community/ServerGUI. I assume you start with a clean install of Ubuntu Server 16.04 (some modifications may be needed for older versions of Ubuntu). Depending on your needs you can do these:
Minimal GUI:
sudo apt install xorg
sudo apt install --no-install-recommends openbox
Run the command startx and openbox will start (you can open a terminal there and run any application you want)