Skip to content

Instantly share code, notes, and snippets.

View appleboy's full-sized avatar
🔥
On Fire

Bo-Yi Wu appleboy

🔥
On Fire
View GitHub Profile
@appleboy
appleboy / drone_nginx.conf
Last active September 30, 2016 16:13
Drone nginx settings.
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name example.com;
@appleboy
appleboy / git.md
Last active November 12, 2022 18:30
常用的 git 指令

git 常用指令

團隊常常需要切換或合併 branch,底下是常用 git 指令

git pull

拉最新的 master 程式碼到目前 branch。不管是在任何 branch 都是執行底下指令

$ git pull --rebase origin master
@appleboy
appleboy / jenkins.conf
Created July 20, 2016 01:26
nginx enkins virtual host setting
server {
listen 80;
server_name your_host_name;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@appleboy
appleboy / start.sh
Last active May 19, 2016 01:01
Deploy web by docker.
#!/bin/bash
# Author: Bo-Yi Wu
# Email: appleboy.tw@gmail.com
# License: MIT
CONTAINER=$1
MODE=$2
CURRENT=$(pwd)
DEPLOY_HOME="${HOME}/${CONTAINER}"
SOURCE="${HOME}/source"
@appleboy
appleboy / laravel_install.md
Last active April 22, 2016 02:38
透過 Docker 快速安裝 Laravel
core:
port: "8088"
notification_max: 100
production: true
api:
push_uri: "/api/push"
stat_go_uri: "/api/status"
android:
@appleboy
appleboy / laravel.md
Last active May 4, 2019 02:39
Laravel 新手學習資源
{
"color_scheme": "Packages/Theme - Flatland/Flatland Monokai.tmTheme",
"detect_indentation": false,
"draw_white_space": "all",
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
"*.dll",
@appleboy
appleboy / php-cs-fixer.json
Last active August 29, 2015 14:11
PHP-CS-Fixer settings
{
"php_cs_fixer_on_save": true,
"php_cs_fixer_show_quick_panel": true,
/* windows setting */
"phpcs_php_prefix_path": "C:\\xampp\\php\\php.exe",
"phpcs_commands_to_php_prefix": ["Fixer"],
"phpcs_executable_path": "C:\\xampp\\php\\phpcs.bat",
"php_cs_fixer_executable_path": "C:\\xampp\\php\\php-cs-fixer.phar",