Table of Contents
This file contains hidden or 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
| # local port forwarding | |
| # the target host 192.168.0.100 is running a service on port 8888 | |
| # and you want that service available on the localhost port 7777 | |
| ssh -L 7777:localhost:8888 user@192.168.0.100 | |
| # remote port forwarding | |
| # you are running a service on localhost port 9999 | |
| # and you want that service available on the target host 192.168.0.100 port 12340 |
This file contains hidden or 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
| pacman | |
| ====== | |
| view logs: /var/log/pacman.log | |
| update system | |
| # pacman -Syu | |
| list installed packages | |
| # pacman -Q |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "runtime" | |
| "strconv" | |
| ) | |
| func main() { | |
| tasks1 := make(chan int) |