Skip to content

Instantly share code, notes, and snippets.

View thetminko's full-sized avatar
💬

Thet Min Ko thetminko

💬
View GitHub Profile
{
"name": "es6-ts",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"tsc": "tsc",
"start": "npm run tsc && node build/server.js",
"start-dev": "ts-node-dev --respawn --transpileOnly ./src/server.ts",
"test": "echo \"Error: no test specified\" && exit 1"
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
@thetminko
thetminko / useful-cmd-amz-linux2.sh
Created January 30, 2020 06:41
Useful commands for Amazon Linux 2
#Extending Amazon Linux 2 with EPEL
wget -O epel.rpm –nv https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install -y ./epel.rpm
#Installing nginx
sudo yum install -y nginx
## https://certbot.eff.org/lets-encrypt/centosrhel7-nginx
#Installing CertBot
sudo yum install certbot python2-certbot-nginx
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;
events {
worker_connections 1024;
@thetminko
thetminko / keystore-checker.sh
Created April 22, 2020 01:42
Check keystore signing config
keytool -list -v -keystore {keystore path} -alias {keystore alias}
@thetminko
thetminko / mac-setup.sh
Last active March 31, 2024 11:21
MacOS setup
# homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# Warp terminal
brew install --cask warp
# git (xcode has git but just reinstall coz xcode git slows down the ohmyzsh startup time)
brew install git
# ohmyzsh
@thetminko
thetminko / .eslintrc.json
Last active October 10, 2021 05:24
ESLint rules for Typescript
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
@thetminko
thetminko / .eslintrc.json
Last active October 21, 2020 04:19
ESLint for React Typescript
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
}
@thetminko
thetminko / docker-compose.yml
Last active October 23, 2020 06:55
docker-compose for local db
version: '3.8'
services:
mysql:
container_name: mysql8
image: mysql:8.0.22
ports:
- 3306:3306
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=
@thetminko
thetminko / upgrade-npm-packages.sh
Created November 23, 2020 01:56
Upgrade all packages to latest
npx npm-check-updates -u