Skip to content

Instantly share code, notes, and snippets.

View azharprabudi's full-sized avatar

Azhar Prabudi azharprabudi

View GitHub Profile
@azharprabudi
azharprabudi / gcloud-port-forward.md
Created October 5, 2020 08:58 — forked from jibs/gcloud-port-forward.md
port forwarding with a google cloud instance

Google cloud's ssh command lets you pass standard ssh flags. To, for example, forward local port 8088 to port 8088 on a vm instance, all you need to do is:

gcloud compute  ssh --ssh-flag="-L 8088:localhost:8088"  --zone "us-central1-b" "example_instance_name"

Now browsing to localhost:8088 works as it would with standard ssh.

@azharprabudi
azharprabudi / tmux-cheatsheet.markdown
Created September 15, 2020 13:36 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname