See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs
See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs
package main | |
import ( | |
"bufio" | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"os/exec" | |
"strings" |
Africa/Abidjan | |
Africa/Accra | |
Africa/Addis_Ababa | |
Africa/Algiers | |
Africa/Asmara | |
Africa/Asmera | |
Africa/Bamako | |
Africa/Bangui | |
Africa/Banjul | |
Africa/Bissau |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
<?php | |
if ( ! function_exists('getCurlPostwithFile')){ | |
function getCurlPostwithFile($_url='', $_param=array(), $_file_name=array()){ | |
if($_url !=''){ | |
ini_set("memory_limit", "512M"); | |
$_file_data = array(); | |
foreach ($_file_name as $_key => $_val){ |
<?php | |
function camel_to_snake($input) | |
{ | |
return strtolower(preg_replace('/(?<!^)[A-Z]/', '_$0', $input)); | |
} | |
function snakeToCamel($input) | |
{ | |
return lcfirst(str_replace(' ', '', ucwords(str_replace('_', ' ', $input)))); | |
} |
This file was generated automatically based on this two sources:
This is a JSON object by following structure:
[string ext] : {
signs: [sign]
We want to upload file to a server with POST HTTP request. We will use curl functions.
// data fields for POST request
$fields = array("f1"=>"value1", "another_field2"=>"anothervalue");
// files to upload
$filenames = array("/tmp/1.jpg", "/tmp/2.png");
pierstoval@PIERSTOVAL /mnt/e/dev/www/sandbox $ ./test.bash | |
KO for key ALLUSERSPROFILE | |
KO for key APPDATA | |
KO for key CLINK_DIR | |
KO for key CommonProgramFiles | |
KO for key CommonProgramW6432 | |
KO for key COMPUTERNAME | |
KO for key ComSpec | |
KO for key FPS_BROWSER_APP_PROFILE_STRING |
#!/bin/bash | |
# requires https://stedolan.github.io/jq/download/ | |
# config | |
KEYCLOAK_URL=http://localhost:8080/auth | |
KEYCLOAK_REALM=realm | |
KEYCLOAK_CLIENT_ID=clientId | |
KEYCLOAK_CLIENT_SECRET=clientSecret | |
USER_ID=userId |