Skip to content

Instantly share code, notes, and snippets.

View daluu's full-sized avatar

David Luu daluu

View GitHub Profile
@daluu
daluu / webhooks.txt
Created November 1, 2019 16:01
webhooks stuff
https://webhook.site
@daluu
daluu / shell_and_mac_notes.txt
Created February 25, 2022 01:04
Notes for Mac and shell cmds/scripts
shopt -s globstar
alias get-checksum='cd $1; find -type f -exec md5sum {} + | tee $2; cd -'
function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }
alias speedtest='wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip'
alias fixvpn="sudo route -n flush && sudo networksetup -setv4off Wi-Fi && sudo networksetup -setdhcp Wi-Fi"
@daluu
daluu / QEMU_ON_M1.md
Created May 5, 2022 05:34 — forked from citruz/QEMU_ON_M1.md
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

@daluu
daluu / go-ssh-encrypted-pem.go
Created September 25, 2024 20:44
Using golang ssh client with an encrypted private key
package main
import (
"crypto/x509"
"encoding/pem"
"errors"
"fmt"
"golang.org/x/crypto/ssh"
"io/ioutil"
"net"
@daluu
daluu / nodejs_notes.txt
Created April 4, 2025 18:06
node.js notes
npm audit --omit=dev