- Create a gist if you haven't already.
- Clone your gist:
# make sure to replace `<hash>` with your gist's hash git clone https://gist.github.com/<hash>.git # with https git clone git@gist.github.com:<hash>.git # or with ssh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(libc)] | |
extern crate libc; | |
use libc::*; | |
use std::panic::*; | |
use std::ptr::*; | |
fn main() { | |
unsafe { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------- | |
# Hardware | |
# -------- | |
# Opcode - operational code | |
# Assebly mnemonic - abbreviation for an operation | |
# Instruction Code Format (IA-32) | |
# - Optional instruction prefix | |
# - Operational code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun fnv32a (s) | |
"Calculates FNV-1a 32-bit hash of given string s." | |
(let (hval) | |
(setq hval 2166136261) ; hval = FNV1_32A_INIT | |
(loop for c across s do | |
(setq hval (logxor hval c)) ; hval ^= c | |
(setq hval (* 16777619 hval)) ; hval *= FNV_32_PRIME | |
(setq hval (mod hval 4294967296))) ; hval %= UINT32_MAX | |
hval)) |
#GNU Screen Cheat Sheet
##Basics
- ctrl a c -> create new window
- ctrl a A -> set window name
- ctrl a w -> show all window
- ctrl a 1|2|3|… -> switch to window n
- ctrl a " -> choose window
- ctrl a ctrl a -> switch between window
- ctrl a d -> detach window