Skip to content

Instantly share code, notes, and snippets.

View gofmanaa's full-sized avatar

Sasha Gofman gofmanaa

  • Ukrain
View GitHub Profile
@gofmanaa
gofmanaa / tmux-cheat-sheet.md
Created November 17, 2024 12:51 — forked from michaellihs/tmux-cheat-sheet.md
tmux Cheat Sheet
@gofmanaa
gofmanaa / ssh_tunnels.sh
Created May 15, 2024 13:22 — forked from billautomata/ssh_tunnels.sh
ssh port forwarding cheatsheet
# 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 [email protected]
# 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
@gofmanaa
gofmanaa / arch_cheatsheet.txt
Created May 6, 2024 10:49 — forked from yufengwng/arch_cheatsheet.txt
Arch Linux Commands Cheatsheet
pacman
======
view logs: /var/log/pacman.log
update system
# pacman -Syu
list installed packages
# pacman -Q
@gofmanaa
gofmanaa / golang_worker_chain.go
Last active February 27, 2021 11:40
Golang worker chain
package main
import (
"fmt"
"runtime"
"strconv"
)
func main() {
tasks1 := make(chan int)