Skip to content

Instantly share code, notes, and snippets.

@Forsworns
Forsworns / syntax.s
Created June 28, 2022 02:27 — forked from mishurov/syntax.s
AT&T assembly syntax and IA-32 instructions
# --------
# Hardware
# --------
# Opcode - operational code
# Assebly mnemonic - abbreviation for an operation
# Instruction Code Format (IA-32)
# - Optional instruction prefix
# - Operational code
@Forsworns
Forsworns / screen.md
Created June 29, 2022 01:44 — forked from fredrick/screen.md
GNU Screen Cheat Sheet

#GNU Screen Cheat Sheet

##Basics

  • ctrl a c -> cre­ate new win­dow
  • ctrl a A -> set win­dow name
  • ctrl a w -> show all win­dow
  • ctrl a 1|2|3|… -> switch to win­dow n
  • ctrl a " -> choose win­dow
  • ctrl a ctrl a -> switch between win­dow
  • ctrl a d -> detach win­dow
@Forsworns
Forsworns / tmux-cheatsheet.markdown
Created June 29, 2022 01:46 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@Forsworns
Forsworns / how-to-add-image-to-gist.md
Created September 20, 2022 12:06 — forked from mroderick/how-to-add-image-to-gist.md
How to add an image to a gist

How to add an image to a gist

  1. Create a gist if you haven't already.
  2. 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
@Forsworns
Forsworns / sigsegv.rs
Created March 15, 2023 03:55 — forked from ksqsf/sigsegv.rs
Catch SIGSEGV in Rust
#![feature(libc)]
extern crate libc;
use libc::*;
use std::panic::*;
use std::ptr::*;
fn main() {
unsafe {

Tcpdump

Tcpdump is a commandline tool that is used to dump traffic on a network. This tool comes in hand when you want to analyse network captures within the command line. Basically it can do most of the wireshark job.

NOTE This guide might not be complete it just serve as a reference to me.

Additional Note & Reference

@Forsworns
Forsworns / fnv32a.el
Created October 8, 2023 03:50 — forked from vaiorabbit/fnv32a.el
FNV-1a Hash (http://isthe.com/chongo/tech/comp/fnv/) in Emacs Lisp.
(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))