Skip to content

Instantly share code, notes, and snippets.

kongondo /
Created Nov 13, 2020 — forked from julienbourdeau/
The seven rules of a great git commit message


  1. Separate subject from body with a blank line
  2. Limit the subject line to 50 characters
  3. Capitalize the subject line
  4. Do not end the subject line with a period
  5. Use the imperative mood in the subject line
  6. Wrap the body at 72 characters
  7. Use the body to explain what and why vs. how

Config Apache with /etc/apache2/conf-available/le.conf:

Alias /.well-known/acme-challenge/ "/var/www/html/.well-known/acme-challenge/"
<Directory "/var/www/html/">
    AllowOverride None
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    Require method GET POST OPTIONS
kongondo / .gitignore
Created Oct 18, 2020 — forked from hieblmedia/.gitignore
Gitignore - Exclude all except specific subdirectory
View .gitignore
# If all files excluded and you will include only specific sub-directories
# the parent path must matched before.
# Un-ignore the affected subdirectory
View validate-hex-color.js
* Validates hex value
* @param {String} color hex color value
* @return {Boolean}
function isValidHex(color) {
if(!color || typeof color !== 'string') return false;
// Validate hex values
if(color.substring(0, 1) === '#') color = color.substring(1);
View CKEditor.vue
<!-- Based on -->
<div class="ckeditor">
<textarea :id="id" :value="value"></textarea>
<style scoped>
.ckeditor {
kongondo / remote-file-copy.php
Created Jan 14, 2016
Remote file copying with progress reporting in PHP.
View remote-file-copy.php
* Remote File Copy PHP Script 2.0.0
* Copyright 2012, Sebastian Tschan
* Licensed under the MIT license:
kongondo / currency_list
Created Jan 13, 2020 — forked from champsupertramp/currency_list
World Currency list in PHP Array
View currency_list
array (
'ALL' => 'Albania Lek',
'AFN' => 'Afghanistan Afghani',
'ARS' => 'Argentina Peso',
'AWG' => 'Aruba Guilder',
'AUD' => 'Australia Dollar',
'AZN' => 'Azerbaijan New Manat',
'BSD' => 'Bahamas Dollar',
'BBD' => 'Barbados Dollar',
'BDT' => 'Bangladeshi taka',
kongondo / menu-builder-getmenuitems-show-more.php
Last active Dec 17, 2019
Example Menu Builder 'Show More' Recursive Menu
View menu-builder-getmenuitems-show-more.php
* Builds a nested list (menu items) of a single menu.
* A recursive function to display nested list of menu items.
* @param integer $parent ID of menu item to start build.
* @param WireArray $menu WireArray Object of menu items to display.
* @param integer $first Helper variable to designate first menu item and <ul></ul>.
kongondo / parsce-csv-test.js
Created Nov 15, 2019 — forked from atomkirk/parsce-csv-test.js
parse csv with javascript
View parsce-csv-test.js
import parseCsv from 'zipbooks/utils/parse-csv'
import { module, test } from 'qunit'
module('Unit | Utility | parse-csv', function(_hooks) {
test('parses csv successfully', function(assert) {
let result = parseCsv('name,age\nadam,31\ntim,32\n"St, clair",26')
assert.equal(JSON.stringify(result), '[["name","age"],["adam","31"],["tim","32"],["St, clair","26"]]')
kongondo / vue.json
Created Sep 26, 2019 — forked from rochabianca/vue.json
Snippet to bring back scaffold on vue on vscode. To use it go to Code>Preferences>User Snippets type vue on the input and paste this code there.
View vue.json
"bring back the scaffold to vue files": {
"prefix": "scaffold",
"body": [
" <div>$TM_FILENAME_BASE</div>",
"export default {",
You can’t perform that action at this time.