Skip to content

Instantly share code, notes, and snippets.

📈
Lots and lots of SQL tables

Fabian Te FabianTe

📈
Lots and lots of SQL tables
Block or report user

Report or block FabianTe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View PlantUML Go Example
package plantuml
import "time"
type Birthday struct {
Time time.Time
}
type Phone struct {
Value string
@FabianTe
FabianTe / docker-compose.yml
Created Aug 1, 2019 — forked from odinserj/docker-compose.yml
ProGet using docker compose
View docker-compose.yml
version: '2'
services:
nginx:
image: jwilder/nginx-proxy
container_name: nginx-proxy
environment:
- DEFAULT_HOST=nuget.hangfire.io
links:
- proget
ports:
@FabianTe
FabianTe / gist:d59e877a15a7e6fb054c9c524742d6da
Created Nov 21, 2018
Elasticsearch - Dynamic Template for Java util.Map fields
View gist:d59e877a15a7e6fb054c9c524742d6da
PUT /archive_document
{
"mappings": {
"document": {
"dynamic_templates": [
{
"map_string": {
"match_mapping_type": "string",
"path_match": "fields.*",
"mapping": {
@FabianTe
FabianTe / chmodrec.sh
Created Nov 3, 2018
Change Linux Folder An File Permission Recursively
View chmodrec.sh
#!/bin/sh
# syntax: setperm.s destdir
#
if [ -z $1 ] ; then echo "Requires single argument: <directoryname>" ; exit 1 ; fi
destdir=$1
dirmode=0700
filemode=0600
View gource.sh
gource --start-position 0.9 --seconds-per-day 2 --file-idle-time 0 --hide filenames
@FabianTe
FabianTe / missing-chai-assert.js
Created Jun 7, 2018
chai assert missing function deepStrictEqual in DefinitelyTyped
View missing-chai-assert.js
const assert = require("chai").assert;
console.log (typeof assert);
console.log (Object.keys(assert).indexOf("deepStrictEqual"));
console.log (typeof (assert.deepStrictEqual));
assert.deepStrictEqual(2, 2);
assert.deepStrictEqual({ a: 2, b: { c: 4}}, { a: 2, b: { c: 4}});
assert.throws(() => assert.deepStrictEqual({ a: 2, b: { c: 4}}, { a: 2, b: { c: 6}}));
You can’t perform that action at this time.