Threads
- Threads are wrapper around OS Threads
- Have a cost and consume memory
- Can't have many, need a thread pool
- Good for CPU Bound, not good for IO Bound.
- 2k metadata, 1MB stack, 1-10us context switch
set nocompatible " be iMproved, required | |
filetype off " required | |
" | |
" Vim spesific editor configs | |
" | |
set encoding=utf-8 | |
set number " Show line numbers | |
set backspace=indent,eol,start " fix backspace | |
set mouse=a " fix mouse to it only scroll inside vim not outside |
❯ pocs-count.sh | |
Java : 605 | |
Scala : 119 | |
Rust : 186 | |
Go : 106 | |
C : 18 | |
C++ : 55 | |
Kotlin : 50 | |
Clojure : 82 | |
Haskell : 21 |
unbind r | |
bind r source-file ~/.tmux.conf | |
# | |
# List of plugins | |
# | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'dracula/tmux' |
pom.xml
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<dependencies>
</dependencies>
# figure out where the HD is
sudo fdisk -l
# mount it - for me was /dev/sdc so had to add 1
sudo mount /dev/sdc1 /mnt
# to un mount
sudo umount /dev/sdc1
sudo tcpdump -i lo -A -s 0 tcp port 9000 -w server.pcap