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
def b (): | |
print( myvar ) | |
def a (): | |
myvar = 'a' | |
b() | |
myvar = 'outer' | |
a() # will print 'outer' because it looks down the scope chain, NOT execution / stack trace |
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
#!/usr/bin/env python3 | |
from scapy.all import * | |
filename = "capture.pcap" | |
pcap = rdpcap(filename) | |
result = '' | |
for p in pcap[TCP]: |
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
AS := as | |
LD := ld | |
SRC := $(wildcard *.s) | |
OBJ := $(patsubst %.s, %.o, $(SRC)) | |
BIN := $(patsubst %.o, %, $(OBJ)) | |
.PHONY: all | |
all: $(BIN) |
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
" .vimrc | |
" vim configuration file | |
" Created by Nicky Lim | |
syntax enable | |
filetype plugin indent on | |
set number | |
set rnu | |
set colorcolumn=81 | |
highlight CursorLine ctermbg=Black |
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
# .bash_aliases | |
# Useful commands for the terminal | |
# Created by Nicky Lim | |
# some references from | |
## https://www.cyberciti.biz/tips/bash-aliases-mac-centos-linux-unix.html | |
############################ | |
# Useful in-built commands # | |
############################ |
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
# .tmux.conf | |
# tmux configuration file | |
# Created by NICKY LIM | |
# prefix t puts the timer on | |
# prefix ? shows help | |
unbind % | |
unbind '"' |
OlderNewer