Skip to content

Instantly share code, notes, and snippets.

@brutallino
brutallino / curl.md
Created January 28, 2021 14:18 — 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.

@brutallino
brutallino / convert_databases_utf8.php
Created May 27, 2020 10:37 — forked from hollodotme/convert_databases_utf8.php
Converting mysql string data form latin1 to utf8 for utf8 data stored in utf8 tables via latin1 connection
<?php
/**
* Requires php >= 5.5
*
* Use this script to convert utf-8 data in utf-8 mysql tables stored via latin1 connection
* This is a PHP port from: https://gist.github.com/njvack/6113127
*
* @link : http://www.ridesidecar.com/2013/07/30/of-databases-and-character-encodings/
*
* BACKUP YOUR DATABASE BEFORE YOU RUN THIS SCRIPT!
@brutallino
brutallino / ansible_variable_precedence.md
Created September 5, 2019 05:57 — forked from ekreutz/ansible_variable_precedence.md
Ansible variable precedence (order, hierarchy)