Skip to content

Instantly share code, notes, and snippets.

View pangpond's full-sized avatar
🎯
Focusing

pangpond pangpond

🎯
Focusing
View GitHub Profile
@pangpond
pangpond / .inputrc
Created October 6, 2014 03:53
.inputrc
## Linux-Mandrake Configuration
# (c) MandrakeSoft, Chmouel Boudjnah <[email protected]>, Pablo Saratxaga <[email protected]>
# $Id: inputrc,v 1.4 2000/03/27 12:13:17 chmouel Exp $
# Show all if ambigious.
set show-all-if-ambiguous off
#set show-all-if-ambiguous on
# 8Bits supports.
@pangpond
pangpond / El-Capitan-CleanInstal.md
Last active October 14, 2015 05:21
OS X 10.11 El Capitan : Clean Install

##Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install caskroom/cask/brew-cask
brew install minicom

##Apps

###From Apps Store

$ composer create-project yiisoft/yii2-app-advanced advanced 2.0.9

composer.json

"php": ">=5.4.0",
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*",
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
FROM php:7.1.1-fpm-alpine
MAINTAINER Nathawut Sonraksa <[email protected]>
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/ \
docker run -d --name php7-fpm -v ${PWD}:/var/www/html/ --expose 9001 --net frontend-network --restart always --network-alias phpfpm php7fpm
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
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;
#!/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
## 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