Skip to content

Instantly share code, notes, and snippets.

View hewhocannotbetamed's full-sized avatar

hewhocannotbetamed

View GitHub Profile
@hewhocannotbetamed
hewhocannotbetamed / yocto.nix
Created April 8, 2023 02:28 — forked from stammw/yocto.nix
yocto.nix
{ pkgs ? import <nixpkgs> {}, ...}:
with pkgs;
(pkgs.buildFHSUserEnv {
name = "yocto-env";
# Packages Yocto is expecting on the host system by default
targetPkgs = pkgs: (with pkgs; [
bash
bashInteractive
#!/usr/bin/python
import sys
def parse_nm_output(handle):
current_object = None
symbols = {}
symbol_to_object = {}
for line in handle.readlines():
@hewhocannotbetamed
hewhocannotbetamed / web-servers.md
Created April 15, 2022 03:58 — 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