This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* CURL error number list | |
* | |
* Sources: | |
* - https://www.php.net/manual/fr/function.curl-errno.php | |
* - https://curl.se/libcurl/c/libcurl-errors.html | |
* - https://timi.eu/docs/anatella/5_1_8_1_list-of-curl-error-co.html | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Multi curl example | |
* | |
* PHP Version 7.4 | |
* | |
* @category Example | |
* @package MultiCurl | |
* @author Nhu-Hoai Robert Vo <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Show contents while PHP script is running | |
* I found someday this script with MIT license but I lost the reference. | |
* It's mean I am not the author of this script, I just adapted for my own usage. | |
* | |
* PHP Version 7.4 | |
* | |
* @category Function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
country=«your_ISO-3166-1_two-letter_country_code» | |
network={ | |
ssid="«your_SSID»" | |
psk="«your_PSK»" | |
key_mgmt=WPA-PSK | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root, use sudo "$0" instead" 1>&2 | |
exit 1 | |
fi | |
echo 'Add ondrej repository for PHP' | |
add-apt-repository ppa:ondrej/php -y > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Source: https://cpratt.co/twitter-bootstrap-callout-css-styles/ | |
*/ | |
.bs-callout { | |
padding: 20px; | |
margin: 20px 0; | |
border: 1px solid #eee; | |
border-left-width: 5px; | |
border-radius: 3px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bs-example { | |
position: relative; | |
margin: 15px 0; | |
padding: 39px 19px 14px; | |
background-color: white; | |
border: 1px solid #DDD; | |
-webkit-border-radius: 4px; | |
-moz-border-radius: 4px; | |
border-radius: 4px; | |
} |