Skip to content

Instantly share code, notes, and snippets.

@Forsworns
Forsworns / VSCode-python-RAM-problem.md
Last active April 10, 2019 10:39
VS Code utilizes too much RAM when coding in python

see issue of the "Microsoft/python-language-server" "High memory usage #832" Since the problem is not fixed, the only suggestion is: set

"python.jediEnabled": true

to use Jedi instead of Microsoft Python Analysis Engine.

@Forsworns
Forsworns / VirtualNetwork.org
Last active December 28, 2021 02:00
test network environment script in xdp-turorial

Test environment script

This directory contains a setup script that you can use to create test environments for testing your XDP programs. It works by creating virtual ethernet (veth) interface pairs and moving one end of each pair to another network namespace. You can load the XDP program in the other namespace and send traffic to it through the interface that is visible in the root namespace.

@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 / vscode_go_workspace.md
Last active July 6, 2022 07:34
vscode golang workspace support
@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 / README.md
Last active October 12, 2022 06:33
sch_bpf tests

Test sch_bpf framework

Results

The experiment results on are shown in the following figures and tables

pfifo with queue limit 1000, noqueue/pfifo/sch_bpf_pfifo (bps)

protocol/device lo eth0
@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