Skip to content

Instantly share code, notes, and snippets.


pangpond pangpond

View GitHub Profile
View all.css
.ut-tab-bar-item.icon-bot {
order: 3;
.ut-tab-bar-item.icon-bot:before {
content: "\E00C";
View date.ts
import {default as momentNG} from 'moment';
import 'moment-timezone';
import 'moment/locale/th';
import i18n from '@src/services/i18n.service';
export const momentLocale = momentNG.locale('th');
if (momentLocale !== 'th') {
throw new Error(`Moment fell back to locale ${momentLocale}`);
export const toBuddhistYear = (moment, format) => {
View mac-cleanup
#!/usr/bin/env bash
# inspired by
# which was inspired by
# /
pangpond /
Created Sep 4, 2019 — forked from kevinelliott/
macOS 10.14 Mojave Mostly-Automated Setup

To support my open-source work, consider adding me on Patreon.

macOS 10.14 Mojave Mostly-Automated Setup

An easy to refer to document for regularly setting up macOS 10.14 Mojave.


The topic of recipe-based frequent fresh reinstalls of macOS is a controversial issue. Some people are against reinstalling macOS, citing that they have never had an issue with Apple provided upgrade installs.

View pokemonlist.json
[{"url": ""},
{"url": ""},
{"url": ""},
{"url": ""},
{"url": ""},
{"url": ""},
{"url": ""},
{"url": ""},
{"url": ""},
{"url": "https://raw.githu
View React Native Daily use
## When you no idea about build error
watchman watch-del-all && rm -rf node_modules && rm -rf ~/.rncache && yarn && rm -rf /ios/build && react-native run-ios
View docker-clean
# Copyright 2017 Théo Chamley
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or
View nginx-conf
server {
charset utf-8;
client_max_body_size 128M;
listen 80;
server_name frontend;
root /var/www/html;
index index.php;
access_log /var/log/nginx/frontend-access.log;
error_log /var/log/nginx/frontend-error.log;
View docker-run-nginx
docker run -d --name nginx --volumes-from php7-fpm --net frontend-network --restart always -p 8080:80 -v ${PWD}/nginx.d:/etc/nginx/conf.d nginx:1.11.9-alpine
View docker-run-php7-fpm
docker run -d --name php7-fpm -v ${PWD}:/var/www/html/ --expose 9001 --net frontend-network --restart always --network-alias phpfpm php7fpm
You can’t perform that action at this time.