Skip to content

Instantly share code, notes, and snippets.

boban-dj / app.js
Created Mar 1, 2021 — forked from rakawestu/app.js
Node JS and MySQL Example With Pug Templating Engine
View app.js
var express = require('express');
var mysql = require('mysql');
var app = express();
/// Create connection to MySQL database server.
function getMySQLConnection() {
return mysql.createConnection({
boban-dj / widget.js
Created Feb 20, 2021 — forked from lukencode/widget.js
Starter template for creating jsonp embeddable widgets.
View widget.js
(function () {
var scriptName = "embed.js"; //name of this script, used to get reference to own tag
var jQuery; //noconflict reference to jquery
var jqueryPath = "";
var jqueryVersion = "1.8.3";
var scriptTag; //reference to the html script tag
/******** Get reference to self (scriptTag) *********/
var allScripts = document.getElementsByTagName('script');
boban-dj / JSON2CSV.js
Created Jan 5, 2021 — forked from jeffhuangtw/JSON2CSV.js
Convert json object to csv download link javascript
View JSON2CSV.js
// Sample: download json as excel file (BOM + utf-16le encoding)
// reference:
function JSON2CSV(objArray) {
var array = typeof objArray != 'object' ? JSON.parse(objArray) : objArray;
var str = '';
var line = '';
// header
boban-dj / Payment_handler.php
Created Dec 9, 2019 — forked from laemol/Payment_handler.php
InvoicePlane 1.5.3 Mollie payment error: The transactionReference parameter is required
View Payment_handler.php
if (!defined('BASEPATH')) { exit('No direct script access allowed'); }
* InvoicePlane
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017
* @license
* @link
View xterm
XTerm*termName: xterm-256color
! With the above setting you can select if want using PRIMARY or CLIPBOARD, but for use both you need a 'hack' for example put this in you .Xresources:
XTerm*VT100.translations: #override <Btn1Up>: select-end(PRIMARY, CLIPBOARD, CUT_BUFFER0)
! terminal colors ------------------------------------------------------------
! tangoesque scheme
*background: #111111
*foreground: #babdb6
View urxvt-unicode
! Set as login shell
URxvt*loginShell: true
! transparency - true or false (default)
!URxvt*transparent: true
! scrollback buffer lines - 65535 is max on most machines (64 is default)
URxvt*saveLines: 12000
boban-dj / mobtable.html
Created Aug 1, 2018 — forked from hkirsman/mobtable.html
turn tables into mobile friendly
View mobtable.html
<html xmlns="" xml:lang="et">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
.odd { background-color: #808080; }
.generated_for_mobile { margin-bottom: 30px }
boban-dj / PHP Countries Array
Created Apr 4, 2018 — forked from DHS/PHP Countries Array
PHP array of all country names
View PHP Countries Array
$countries = array("Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Island
boban-dj /
Created May 8, 2017 — forked from johnramsden/
Install scripts for installing Arch Linux on ZFS. Not runnable, just listed commands.
# Check before running, may need intervention
# Pass in the following to the script, or hardcode it.
# Uncomment if hardcoding input.