Skip to content

Instantly share code, notes, and snippets.

View mozg1984's full-sized avatar
🗿

Radik Khisamutdinov mozg1984

🗿
View GitHub Profile
@mozg1984
mozg1984 / curl.md
Created August 23, 2018 07:27 — 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.

@mozg1984
mozg1984 / .gitconfig
Created July 6, 2018 13:15 — forked from robmiller/.gitconfig
Some useful Git aliases that I use every day
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"