Help with SQL commands to interact with a MySQL database
- Mac /usr/local/mysql/bin
- Windows /Program Files/MySQL/MySQL version/bin
- Xampp /xampp/mysql/bin
| version: '2.2' | |
| services: | |
| es01: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:7.12.0 | |
| container_name: es01 | |
| environment: | |
| - node.name=es01 | |
| - cluster.name=es-docker-cluster | |
| - discovery.seed_hosts=es02,es03 | |
| - cluster.initial_master_nodes=es01,es02,es03 |
| git fetch --prune | git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -D |
| <?php | |
| /** | |
| * Get hearder Authorization | |
| * */ | |
| function getAuthorizationHeader(){ | |
| $headers = null; | |
| if (isset($_SERVER['Authorization'])) { | |
| $headers = trim($_SERVER["Authorization"]); | |
| } | |
| else if (isset($_SERVER['HTTP_AUTHORIZATION'])) { //Nginx or fast CGI |
| <?php | |
| require('markdown_limited.php'); | |
| //header('Content-Type: text/plain; charset=UTF-8'); | |
| $text = file_get_contents('sample.txt'); | |
| print markdown_limited($text); | |
| ?> | |
| <style type="text/css"> | |
| /* Don't judge me */ |
| <?php | |
| /** | |
| * QR Code + Logo Generator | |
| * | |
| * http://labs.nticompassinc.com | |
| */ | |
| $data = isset($_GET['data']) ? $_GET['data'] : 'http://labs.nticompassinc.com'; | |
| $size = isset($_GET['size']) ? $_GET['size'] : '200x200'; | |
| $logo = isset($_GET['logo']) ? $_GET['logo'] : FALSE; |
| <?php | |
| //set printing option to raw | |
| $tmpdir = sys_get_temp_dir(); # ambil direktori temporary untuk simpan file. | |
| $file = tempnam($tmpdir, 'ctk'); # nama file temporary yang akan dicetak | |
| $handle = fopen($file, 'w'); | |
| $condensed = Chr(27) . Chr(33) . Chr(4); | |
| $bold1 = Chr(27) . Chr(69); | |
| $bold0 = Chr(27) . Chr(70); | |
| $initialized = chr(27).chr(64); |
If anyone's looking for a solution for licensing Sublime Text!
Here goes an easy tutorial on how to register, Sublime Text Version 3.2.2, Build 3211
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Aloha!</title> | |
| <style type="text/css"> | |
| * { | |
| font-family: Verdana, Arial, sans-serif; | |
| } |
| // checksum calculation for GTIN-8, GTIN-12, GTIN-13, GTIN-14, and SSCC | |
| // based on http://www.gs1.org/barcodes/support/check_digit_calculator | |
| function isValidBarcode(barcode) { | |
| // check length | |
| if (barcode.length < 8 || barcode.length > 18 || | |
| (barcode.length != 8 && barcode.length != 12 && | |
| barcode.length != 13 && barcode.length != 14 && | |
| barcode.length != 18)) { | |
| return false; | |
| } |