Skip to content

Instantly share code, notes, and snippets.

@simkimsia
simkimsia / template.rst
Last active October 25, 2023 04:00
.rst restructuredText template

Document Title Here

Author

Your Name

Date

Current Date

Version

1.0

Table of Contents

Universal Data Model

In business, master data management (MDM) is a method used to define and manage the critical data of an organization to provide, with data integration, a single point of reference.[1] The data that is mastered may include reference data - the set of permissible values, and the analytical data that supports decision making.[2]

In computing, a master data management tool can be used to support master data management by removing duplicates, standardizing data (mass maintaining),[3] and incorporating rules to eliminate incorrect data from entering the system in order to create an authoritative source of master data. Master data are the products, accounts and parties for which the business transactions are completed. The root cause problem stems from business unit and product line segmentation, in which the same customer will be serviced by different product lines, with redundant data being entered about the customer (a.k.a. party in the role of customer) and account in order to proc

@simkimsia
simkimsia / ubuntu14.04-cake2.4.sh
Last active May 27, 2023 06:55
preparing a fresh 14.04 ubuntu for cakephp 2.4
#!/bin/bash
###
#
# forked from https://gist.github.com/1264701/08f93534ba177f173b9382b53c419cd0de5b07ea
#
# Ubuntu 14.04 based web server installation script
# Run this by executing the following from a fresh install of Ubuntu 14.04 server:
#
# bash -c "$(curl -fsSL https://gist.githubusercontent.com/simkimsia/691e97f40b2544644f9a/raw/ubuntu14.04-cake2.4.sh)" <mysqlPassword>
@simkimsia
simkimsia / convert_query_string_to_assoc_array.js
Created April 28, 2014 13:45
able to convert query string like ?q=abc&g[]=1&g[]=2 into a javascript object (params) which has 2 params q & g. The params.q will be 'abc' string while params.g will be an array containing the value 1, 2
RegExp.quote = function(str) {
return (str+'').replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1");
}
function getSearchParameters() {
var prmstr = window.location.search.substr(1);
return prmstr != null && prmstr != "" ? transformToAssocArray(prmstr) : {};
}
function transformToAssocArray( prmstr ) {
@simkimsia
simkimsia / _base.html
Last active June 4, 2022 12:44 — forked from adamchainz/_base.html
Django HTMX CSRF setup for htmx 1.1.0 and django 3.1
{% load static %}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{% block meta_tags %}
<meta name="csrf-token" content="{{ csrf_token }}">
{% endblock %}
@simkimsia
simkimsia / formal-verification-bpmn-dmn.md
Last active April 20, 2022 03:42
Links to formal verification of BPMN / DMN
@simkimsia
simkimsia / AuthyToOtherAuthenticator.md
Created December 20, 2021 09:16 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Generating Authy passwords on other authenticators


There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My guess is that Brian used the

@simkimsia
simkimsia / basic.js
Created September 20, 2012 06:01
Using turnjs with File API of HTML5
/*
* Basic sample
*/
function addPage(file, pageNumber, book) {
var id, pages = book.turn('pages');
var reader = new FileReader();
reader.onload = (function (theImg) {
@simkimsia
simkimsia / index-spell-home-still-fails.html
Created August 7, 2021 09:07
Demonstrate that the import without Home will cause failure
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jerosoler/Drawflow/dist/drawflow.min.css">
@simkimsia
simkimsia / collaborative-inbox-gsuite-steps.md
Last active February 3, 2021 11:33
how to have collaborative inbox using gsuite