Skip to content

Instantly share code, notes, and snippets.

View zetekla's full-sized avatar

PrTran zetekla

View GitHub Profile
@zetekla
zetekla / DigitalForm.yml
Last active April 9, 2019 03:44
DigitalForm.yml
Business requirements:
A - Invoice -
Inputting process
B - Accounting (gross, net - all of markups, cost of good sold)
C - (good-to-have): Automate population of Form
Technical implementation:
Req A:
Goal: generate a list of services for a customer -
@zetekla
zetekla / gist:800c7a021143dfef5a5fbaeb866ee396
Last active April 29, 2018 23:58
RN-executive summary
cd ..
rm -rf myapp
react-native init myapp
cd myapp
react-native run-ios
@zetekla
zetekla / Be OMNI readme.md
Last active April 14, 2021 03:44
python_iv

Conversations

An interview project to chat about items.

Welcome

Hey Phuc 👋

Thanks for taking time to show us your work. We know interviewing is a commitment, and we're excited to see what you can do! Please feel free to reach out to if you have any questions. If you prefer Slack, we can also invite you as a guest to a private channel. Let's get to it!

Introduction

@zetekla
zetekla / mkp.yml
Last active December 16, 2018 08:07
yml
first SPRINT:
- evaluate where we are in term of infrastructure & DevOps work
- ensure consistency across dev env and ensure the codebases to follow architecture and development guidelines.
e.g. 2-spaces indentation, naming and everything to follow the set of guidelines.
- set out the baseline
- allow intial ground work to help form the fundamentals.
Expect:
- extension of cloudAPI and initial testing.
- reference to data design/Schema structure in this yml and the implemented CloudAPI for the development of user, foodieUser and its associated Schemas and their query transactions (either in the form of ORM or query statements).
version: '3.1'
services:
joomla:
image: joomla
restart: always
links:
- joomladb:mysql
ports:
- 7071:80
@zetekla
zetekla / .bashrc
Last active April 10, 2020 03:49
JohnPapa to install npm properly with homebrew
NPM_PACKAGES=/Users/admin/.npm-packages
NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
PATH="$NPM_PACKAGES/bin:$PATH"
@zetekla
zetekla / Sierra4Windows.txt
Last active July 7, 2021 21:52
Windows 10 bs troubleshoots
c:\Windows\System32\Drivers\etc\hosts
/etc/hosts blocking technique:
127.0.0.1 *.download.windowsupdate.com
127.0.0.1 *.microsoft.com
127.0.0.1 *.update.microsoft.com
127.0.0.1 *.windowsupdate.com
127.0.0.1 *.windowsupdate.microsoft.com
127.0.0.1 download.microsoft.com
127.0.0.1 download.windowsupdate.com
@zetekla
zetekla / tracker.js
Created September 21, 2017 04:31
Meteor Tracker guard
// Only trigger enclosing computation if the return value of
// f is not EJSON.equals to the previuous return value
Tracker.guard = function(f) {
if (Meteor.isServer || !Tracker.currentComputation) {
return f();
}
let dep = new Tracker.Dependency(),
curView = Blaze.currentView,
tplFunc = Template._currentTemplateInstanceFunc;
@zetekla
zetekla / git-squash.sh
Last active July 10, 2017 00:34
Git rebase and delete some commits
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Missing parameter: number of commits to squash."
exit 1
fi
echo "Squashing $1 commits..."
git reset --soft HEAD~$1
git log --format=%B%n --reverse "HEAD@{1}" -n $1 > _msg.txt
@zetekla
zetekla / system.txt
Created July 7, 2017 09:11
WINDOWS HP thao User-variables
C:\Python34\;C:\Python34\Scripts;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\nodejs\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;%SUBLIME%;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files\Git\cmd