Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Linh M. Tran linhmtran168

🎯
Focusing
View GitHub Profile
@linhmtran168
linhmtran168 / settings.json
Created Jan 25, 2022
Vscode Ruby dev container configuration
View settings.json
{
"ruby.useBundler": true, // use the internal language server (see below)
"ruby.lint": {
"rubocop": {
"useBundler": true // enable rubocop via bundler
},
},
"ruby.useLanguageServer": false, // use the internal language server (see below)
"ruby.interpreter.commandPath": "/home/vscode/.rbenv/shims/ruby",
"ruby.pathToBundler": "/home/vscode/.rbenv/shims/bundle",
View .wslconfig
# %USERPROFILE%.wslconfig
[wsl2]
memory=4GB
swap=2GB
processors=2
swapFile=D:\\wsl2-swap.vhdx
View .eslintrc.json
{
"env": {
"es6": true,
"node": true,
"browser": true,
"mocha": true
},
"extends": "standard",
"rules": {
"indent": [
@linhmtran168
linhmtran168 / settings.json
Last active Jun 4, 2020
Windows Terminal Config
View settings.json
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
// Launch Settings
"initialCols": 120,
"initialRows": 30,
"launchMode": "default",
// Selection
View regex-japanese.txt
Regex for matching ALL Japanese common & uncommon Kanji (4e00 – 9fcf) ~ The Big Kahuna!
([一-龯])
Regex for matching Hirgana or Katakana (*)
([ぁ-んァ-ン])
Regex for matching Non-Hirgana or Non-Katakana
([^ぁ-んァ-ン])
Regex for matching Hirgana or Katakana or basic punctuation (、。’)
View .tmux.conf
# Command prefix (like screen)
unbind C-b
set -g prefix C-a
bind-key a send-prefix
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# basic settings
@linhmtran168
linhmtran168 / test.go
Created Apr 8, 2019
Pongo2 filter using reflect
View test.go
// TrueCondition implement IConditionCheckable interface
func (test *TestStruct) TrueCondition() bool {
if test.IsTrue {
return true
}
return false
}
@linhmtran168
linhmtran168 / 00-SETUP.md
Last active Sep 1, 2020
Setup Redash for Oracle
View 00-SETUP.md

Usage

Refs

https://redash.io/

Download Redash

$ curl -L -O https://github.com/getredash/redash/archive/v5.0.1.zip
@linhmtran168
linhmtran168 / Redash-v2.md
Created Oct 1, 2018 — forked from nihonzaru/Redash-v2.md
Setup Redash v2.x for Oracle
View Redash-v2.md

Usage

Refs

https://redash.io/

Download Redash

$ curl -L -O https://github.com/getredash/redash/archive/v2.0.0.zip
View zcom-vars-compiled.js
(function(exports) {
exports.CNS_ADDRESS = "0xdummy99999999999999999999999999999999";
exports.HISTORY_ADDRESS = "0xdummy99999999999999999999999999999999";
exports.HISTORY_ABI = [{"constant":true,"inputs":[],"name":"organizations","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"nonces","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"histories","outputs":[{"name":"isCreated","type":"bool"},{"name":"allowGroupId","type":"bytes32"},{"name":"userDataObjectId","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gmoCns","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_gmoCns","type":"address"},{"name":"_organizations","type":"address"}]