Skip to content

Instantly share code, notes, and snippets.

View mayd-in's full-sized avatar

maydin mayd-in

View GitHub Profile
@mayd-in
mayd-in / bash.md
Last active December 17, 2018 13:22
Bash shortcuts

Command Editing Shortcuts

Ctrl + a go to the start of the command line
Ctrl + e go to the end of the command line
Ctrl + k delete from cursor to the end of the command line
Ctrl + u delete from cursor to the start of the command line
Ctrl + w delete from cursor to start of word (i.e. delete backwards one word)
Ctrl + y paste word or text that was cut using one of the deletion shortcuts (such as the one above) after the cursor
Ctrl + xx move between start of command line and current cursor position (and back again)
Alt + b move backward one word (or go to start of word the cursor is currently on)

@mayd-in
mayd-in / curl.md
Created December 17, 2018 13:03 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.