Skip to content

Instantly share code, notes, and snippets.

View PH9's full-sized avatar
🚀
To infinite and beyond

Wasith 'Pi' Theerapattrathamrong PH9

🚀
To infinite and beyond
View GitHub Profile
@PH9
PH9 / default.conf
Last active February 20, 2018 06:05
nginx ngx_http_auth_request_module -> API Source Code https://github.com/PH9/auth-module
upstream authserver {
server 192.168.1.38:12800;
server 192.168.1.39:12800;
}
server {
listen 80;
server_name localhost;
location / {
@PH9
PH9 / format.sh
Last active April 14, 2021 14:16
SwiftLint - That run only on modified (new, changes, cached, staged) files
#!/bin/bash
#
# Run SwiftLint
START_DATE=$(date +"%s")
SWIFT_LINT=/usr/local/bin/swiftlint
SWIFT_FORMAT=/usr/local/bin/swiftformat
if [[ -e "${SWIFT_LINT}" ]]; then
@PH9
PH9 / Fastfile
Last active February 20, 2018 06:06
One of fastlane's file (Fastfile) for my project
fastlane_version "2.81.0"
default_platform :ios
platform :ios do
before_all do
ENV["GITHUB_API_TOKEN="] ||= "YOUR GITHUB TOKEN"
ENV["SLACK_URL"] ||= "YOU SLACK URI"
ENV["CRASHLYTICS_API_TOKEN"] ||= "YOUR CRASHLYTICS_API_TOKEN"
@PH9
PH9 / devops-tools.csv
Last active May 9, 2018 00:34
DevOps Tools
JAVA DEVELOPER UNIX OPERATION COMPARE AS...
IntelliJ IDEA shell, Command Line IDE
JAVA BASH Main Language
JS, CSS, HTML PY, PL, GO, SED, AWK Other Language
JDK, GC, ... UNIX Core Command Core library
Apache Command CURL, ... Third parties library
Spring Ansible, Puppet, CHEF Framework
Tomcat VPS, Docker ?
WebLogic AWS, K8s ?
XUnit Test, Cucumber ? Testing tools
@PH9
PH9 / compare-jvm-golang.csv
Last active May 20, 2018 01:21
Compare between JVM and golang API Service
matrix JVM golang Node.js
docker size 100 MB (alpine jre + AM) 12 MB (alpine + AM) 128 MB
start memory 30-50 MB 1.2 MB 40 MB
maximum TPS 25 tps. มี fail 5xx 500 tps ไม่มี fail แต่เขียน log ไม่ทัน N/A
memory usage from above TPS. 80-300 MB 30-40 MB N/A
memory usage after stop 80-150 MB 8-20 MB N/A
heap memory some none N/A
response time > 1 millisecond < 1 millisecond N/A
@PH9
PH9 / iOSSnapshotTestCase environment variables.csv
Last active May 19, 2018 12:48
iOSSnapshotTestCase environment variables
Name Value
FB_REFERENCE_IMAGE_DIR $(SOURCE_ROOT)/Screenshots/
IMAGE_DIFF_DIR $(SOURCE_ROOT)/Screenshots/FailureDiffs
Feature Individual Paid individual Origanization Enterprise
Build app Limited Y Y Y
Test on Device Limited Limited Limited Y
Access beta release OS and Tools N Y Y Y
Advanced App Capabilities N Y Y Y
Distribute (not AppStore) N Limited Limited Unlimited
Submit to AppStore N Y Y N
Team management N N Y Y
D-U-N-S® Required N N Y Y
{
"3.17.0": "https://www.gstatic.com/cpdc/5cd71dd2f756bb01/GoogleAnalytics-3.17.0.tar.gz",
"3.16.0": "https://www.gstatic.com/cpdc/6f640c997e8d7455/GoogleAnalytics-3.16.0.tar.gz",
"3.14.0": "https://www.gstatic.com/cpdc/69fd9fe84a8fea60-GoogleAnalytics-3.14.0.tar.gz",
"3.13.0": "https://www.gstatic.com/cpdc/9b1bb5e186325dc2-GoogleAnalytics-3.13.0.tar.gz",
"3.12.0": "https://www.gstatic.com/cpdc/e2d01de47dc68c9e-GoogleAnalytics-3.12.0.tar.gz"
}
{
"3.17": "https://dl.google.com/googleanalyticsservices/GoogleAnalyticsServicesiOS_3.17.zip",
"3.13": "https://dl.google.com/googleanalyticsservices/GoogleAnalyticsServicesiOS_3.13.zip"
}
{
"3.14.0": "https://www.gstatic.com/cpdc/c45591522c4ba5b8-GoogleIDFASupport-3.14.0.tar.gz",
"3.12.0": "https://www.gstatic.com/cpdc/d1b9837b3d4a0fd2-GoogleIDFASupport-3.12.0.tar.gz"
}