Skip to content

Instantly share code, notes, and snippets.

View takedawilliam's full-sized avatar
🖥️
A wanderer in fantasy land

Will takedawilliam

🖥️
A wanderer in fantasy land
  • Japan
View GitHub Profile

Okay, I've got a need to build Firefox from source, and I'd like to do that on a remote machine, and then copy build result back to my laptop. With Nix, using bastion host. I'll note details of my successful adventure.

Setup & Sources of knowledge

Here's the list of resources I've used actively:

Here's my setup:

@jmettes
jmettes / build-closure.sh
Last active June 4, 2021 06:09
NixOS ISO
nix-build --attr system "./nixos.nix" -o result-closure
readlink -f result-closure > closure-nix-store-path.txt
rm -r system
mkdir system
nix copy ./result-closure --to file://./system
@clemera
clemera / emacs_feeds
Created May 12, 2019 10:06
Some Emacs blog feeds
* Blogs
** neeasade
https://notes.neeasade.net/rss.xml
** yiufung
https://yiufung.net/index.xml
** alanthird
https://github.com/alanthird/idiocy.org/commits/master.atom
** codesections
https://www.codesections.com/rss.xml
** xenodium
@leto
leto / zec_forks.csv
Last active April 5, 2021 18:30
Zcash Forks
Name Symbol Website base58 prefix same as ZEC? Misc
Hush HUSH https://myhush.org Yes
Komodo KMD https://komodoplatform.com No
Bitcoin Hush BTCH https://btchush.org No Run-time fork of KMD aka asset chain
Snowgem XSG (neé SNG) https://snowgem.org
VoteCoin VOT
ZClassic ZCL Yes
Zero ZER https://www.zero.finance/
Zen ZEN Fork of ZCL
BitcoinZ BTCZ https://github.com/btcz/bitcoinz
@jupp0r
jupp0r / load-gpg-agent-environment.el
Created December 18, 2015 10:09
Using gpg-agent with emacs under OS X
;; read gpg-agent environment
(defun read-env-line (line)
"read a env line and post to environment"
(let ((key-value-pair (split-string line "=" t)))
(setenv (car key-value-pair) (car (last key-value-pair))))
)
(defvar gpg-agent-info-file)
(setq gpg-agent-info-file (concat (getenv "HOME") "/.gpg-agent-info"))
(when
(file-exists-p gpg-agent-info-file)
@irazasyed
irazasyed / homebrew-permissions-issue.md
Last active February 3, 2026 00:43
Homebrew: Permissions Denied Issue Fix (OS X / macOS)

Homebrew Permissions Denied Issues Solution

sudo chown -R $(whoami) $(brew --prefix)/*

@nbari
nbari / chunk_upload.py
Last active January 27, 2026 09:02
python chunk upload files
#!/usr/bin/env python
import os
import requests
import uuid
from random import randint
from uuid import uuid4
def read_in_chunks(file_object, chunk_size=65536):
while True: