Skip to content

Instantly share code, notes, and snippets.

@wangii
wangii / hack.sh
Created June 18, 2012 00:37 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#

Git Cheat Sheet

Commands

Getting Started

git init

or

@wangii
wangii / latency.txt
Created November 12, 2017 19:03 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@wangii
wangii / tmux-default-bind-key.tmux
Created September 23, 2019 21:12 — forked from zchee/tmux-default-bind-key.tmux
Tmux default bind-key
bind-key C-b send-prefix
bind-key C-o rotate-window
bind-key C-q confirm-before kill-server
bind-key C-z suspend-client
bind-key Space next-layout
bind-key ! break-pane
bind-key # list-buffers
bind-key $ command-prompt -I #S "rename-session '%%'"
bind-key & confirm-before -p "kill-window #W? (y/n)" kill-window
# Commennt out caused by Gist syntax error
@wangii
wangii / GLSL-Noise.md
Created October 11, 2021 07:03 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
#********************************************************************
#** _00-readme-freebsd-11.1-imac.txt
#** This note describes the proces of installing FreeBSD 11.1
#** on an Intel iMac (early 2008)
#** xref _00-readme-freebsd-11.txt
#** last update 20170822.2034
#********************************************************************
---------------------------------------------------------------------
-- System Specifications:
---------------------------------------------------------------------
@wangii
wangii / muttrc
Last active March 18, 2022 10:38 — forked from yangxuan8282/muttrc
Hotmail template config for mutt, just insert your mail account and password to "imap_user" and "imap_pass", if 2-factor is enable, generate an app password.
set ssl_starttls=yes
set ssl_force_tls=yes
set imap_user = '[email protected]'
set imap_pass = 'password_here'
set from= $imap_user
set use_from=yes
set realname='Your_Name'
set folder = imaps://imap-mail.outlook.com:993
set spoolfile = "+INBOX"
@wangii
wangii / Thermoeconomics.md
Created January 28, 2023 20:42 — forked from clumma/Thermoeconomics.md
Thermoeconomics references
@wangii
wangii / LLM.md
Created March 29, 2023 07:20 — forked from rain-1/LLM.md
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.