Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View darwinphi's full-sized avatar
🧑‍💻
Coding

Darwin Manalo darwinphi

🧑‍💻
Coding
View GitHub Profile
@darwinphi
darwinphi / curl.md
Created January 23, 2019 03:22 — 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.

@darwinphi
darwinphi / Guardian JWT.md
Created December 10, 2018 07:27 — forked from nikneroz/Guardian JWT.md
Elixir + Phoenix Framework + Guardian + JWT. This is tutorial and step by step installation guide.

Elixir + Phoenix Framework + Guardian + JWT + Comeonin

Preparing environment

We need to generate secret key for development environment.

mix phoenix.gen.secret
# ednkXywWll1d2svDEpbA39R5kfkc9l96j0+u7A8MgKM+pbwbeDsuYB8MP2WUW1hf

Let's generate User model and controller.