Upgrade to Pro — share decks privately, control downloads, hide ads and more …

10 command line tools to improve your day !

10 command line tools to improve your day !

Quick presentation to discover some command line tools :

- Openssl ( to read local certificate, or fetch remote one)
- Httpie ( curl alernative )
- JQ, to process JSON
- Autojump, a "cd" on steroïd
- SSH Tunnel & Jump station
- Midnight Commander
- Watch,
- Mitmproxy, a simple command line HTTPS proxy to see and debug call
- Tmux, or "how to have windows/panel" in command line
- Localtunnel, how to expose your app running locally to everybody (usefull in remote !)

Gildas Cuisinier

October 22, 2020
Tweet

More Decks by Gildas Cuisinier

Other Decks in Programming

Transcript

  1. # Read and print certificate information openssl x509 -text -in

    demo.bil.com.pem # Fetch remote certificate openssl s_client -connect google.com:443 # Check Remote protocol support openssl s_client -connect www.bil.com:443 -tls1
  2. # Read and print certificate information http -v httpbin.org/ip #

    Post Form data http -f POST httpbin.org/post hello=World # Dowload remote content http httpbin.org/image/png > image.png
  3. JQ

  4. # Read simple field http GET httpbin.org/ip | jq ".origin"

    {"origin": "87.64.113.56"} è "87.64.113.56"
  5. # Jump to frequently used folder j DevCommunity j devcom

    à /Users/gcuisinier/Dev/DevCommunity # Jump to frequently subfolder in folder j devcom terminal à /Users/gcuisinier/Dev/DevCommunity/autojump/presentation/terminal
  6. SSH

  7. # SSH Tunnel (or how to by pass Firewall :p

    ) ssh –L9999:localhost:8080 myuser@remote-server # Now you can connect from your workstation on 9999 to see service running on port 8080 on remote-server # Jump station Ssh –J myuser@jumpstation myuser@destination # Avoid using Remote Desktop to Windows Mgnt Server to Open Putty ;)
  8. MC

  9. # Allow to frequently run command and display output watch

    -–interval=5 "echo Current time is $(date)"