Skip to content

Instantly share code, notes, and snippets.

View pangpond's full-sized avatar
🎯
Focusing

pangpond pangpond

🎯
Focusing
View GitHub Profile
@pangpond
pangpond / all.css
Last active October 15, 2020 07:38
.ut-tab-bar-item.icon-bot {
order: 3;
}
.ut-tab-bar-item.icon-bot:before {
content: "\E00C";
}
@pangpond
pangpond / date.ts
Last active September 21, 2020 04:08
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) => {
#!/usr/bin/env bash
# inspired by
# https://gist.github.com/JannikArndt/feb720c1f5d210b4820b880af23f2a07
# which was inspired by
# https://github.com/fwartner/mac-cleanup/blob/master/cleanup.sh
# https://gist.github.com/jamesrampton/4503412
# https://github.com/mengfeng/clean-my-mac/blob/master/clean_my_mac.sh
# https://github.com/szymonkaliski/Dotfiles/blob/master/Scripts/clean-my-mac
# http://brettterpstra.com/2015/10/27/vacuuming-mail-dot-app-on-el-capitan/ / https://github.com/pbihq/tools/blob/master/MailDBOptimiser.sh
@pangpond
pangpond / 1-macOS-10.14-mojave-setup.md
Created September 4, 2019 08:12 — forked from kevinelliott/1-macOS-10.14-mojave-setup.md
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.

Controversy

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.

[{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Ancient%20Origins.json"},
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Aquapolis.json"},
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Arceus.json"},
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/BREAKpoint.json"},
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/BREAKthrough.json"},
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/BW%20Black%20Star%20Promos.json"},
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Base%20Set%202.json"},
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Base.json"},
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Black%20&%20White.json"},
{"url": "https://raw.githu
## 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
#!/bin/bash
# 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
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;
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
docker run -d --name php7-fpm -v ${PWD}:/var/www/html/ --expose 9001 --net frontend-network --restart always --network-alias phpfpm php7fpm