Skip to content

Instantly share code, notes, and snippets.

View dmilith's full-sized avatar
🤓
Calculating infinity…

Daniel (dmilith) Dettlaff dmilith

🤓
Calculating infinity…
View GitHub Profile
@dmilith
dmilith / BSD setup-zfs-and-share.sh
Created June 17, 2022 17:58
NFSv4 server on FreeBSD 13.1 and the macOS 12.4 client setup
zfs set sharenfs="-alldirs" MyZFSPoolName
zfs share -a
service rpcbind start
service statd start
service lockd start
service nfsuserd start
service nfscbd start
service nfsd start
@jfcherng
jfcherng / st4-changelog.md
Last active April 20, 2024 00:25
Sublime Text 4 changelog just because it's not on the official website yet.
@dmilith
dmilith / gist:3e928403aaa5fccbe7b8c7e370d5f1c5
Created May 26, 2019 17:25
hack Skype 8.x sounds (including replace files, remove files for notification to shutup, and so on) for Mac OSX
0. Shutdown Skype
1. Install Nodejs, open Terminal
2. Run: `npm install -g asar`
3. Run: `npx asar extract /Applications/Skype.app/Contents/Resources/app.asar /Applications/Skype.app/Contents/Resources/app`
4. Run: `rm -f /Applications/Skype.app/Contents/Resources/app.asar`
That's it, now you can open Skype internal files directly by doing:
`open /Applications/Skype.app/Contents/Resources/app`
@gliheng
gliheng / main.rs
Last active August 19, 2023 02:39
Mutable lazy_static with a Mutex
#[macro_use]
extern crate lazy_static;
use std::sync::Mutex;
use std::collections::HashMap;
lazy_static! {
static ref HASHMAP: Mutex<HashMap<u32, String>> = Mutex::new({
let mut m = HashMap::new();
m.insert(0, String::from("foo"));
m.insert(1, String::from("bar"));
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active May 9, 2024 20:00
Hyperlinks in Terminal Emulators
@dumbbell
dumbbell / bootstrapping-rust-freebsd-aarch64.md
Last active September 15, 2023 12:17
Bootstrapping Rust and Cargo on FreeBSD/aarch64

Bootstrapping Rust and Cargo on FreeBSD/aarch64

At the time of this writing, Rust and Cargo are available on FreeBSD/amd64 and FreeBSD/i386 only, whether it is from rustup or from the FreeBSD ports tree. Here is how I could bootstrap Rust and Cargo for FreeBSD/aarch64 from FreeBSD/amd64.

Base system for the target

To be able to cross-compile anything, you need a userland for the target.

From a release

@dmilith
dmilith / gist:39dee6a9cad87ab6f07c
Last active August 29, 2015 14:15
Linking issue with GHC (platform independent issue)
# I did GHC 7.8.4 build with my custom prefix set to /Software/Ghc
# Everything looks good after GHC build:
⇒ ldd /Software/Ghc/lib/ghc-7.8.4/bin/ghc
/Software/Ghc/lib/ghc-7.8.4/bin/ghc:
/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
/Software/Ghc/lib/libgmp.10.dylib (compatibility version 12.0.0, current version 12.3.0)
@rpath/libHShaskeline-0.7.1.2-ghc7.8.4.dylib (compatibility version 0.0.0, current version 0.0.0)