Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

pangpond pangpond

🎯
Focusing
Block or report user

Report or block pangpond

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pangpond
pangpond / 1-macOS-10.14-mojave-setup.md
Created Sep 4, 2019 — forked from kevinelliott/1-macOS-10.14-mojave-setup.md
macOS 10.14 Mojave Mostly-Automated Setup
View 1-macOS-10.14-mojave-setup.md

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.

View pokemonlist.json
[{"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
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
#!/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
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
View docker-create-php7fpm-for-yii2
FROM php:7.1.1-fpm-alpine
MAINTAINER Nathawut Sonraksa <pondzz@gmail.com>
ENV TIMEZONE Asia/Bangkok
RUN apk upgrade --update && apk --no-cache add \
autoconf tzdata file g++ gcc binutils isl libatomic libc-dev musl-dev make re2c libstdc++ libgcc libcurl curl-dev binutils-libs mpc1 mpfr3 gmp libgomp coreutils freetype-dev libjpeg-turbo-dev libltdl libmcrypt-dev libpng-dev openssl-dev libxml2-dev expat-dev \
&& docker-php-ext-install -j$(nproc) iconv mysqli pdo pdo_mysql curl bcmath mcrypt mbstring json xml zip opcache \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
View docker-run-mariadb
docker run -d --name Mariadb -e MYSQL_ROOT_PASSWORD=UlmJP0X8E2etGqdv -e MYSQL_USER=php -e MYSQL_PASSWORD=qrF8UeFJ2Wx8Dn0S -e MYSQL_DATABASE=php --net frontend-network -p 3306:3306 --network-alias maria-db --restart always mariadb:latest
View Yii2-Installation.md
$ composer create-project yiisoft/yii2-app-advanced advanced 2.0.9

composer.json

"php": ">=5.4.0",
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*",
You can’t perform that action at this time.