Skip to content

Instantly share code, notes, and snippets.

View koshuang's full-sized avatar

Kos Huang koshuang

  • OnrampLab
  • Taipei / Taiwan
View GitHub Profile
@koshuang
koshuang / postcssSorting.config
Last active July 3, 2021 04:40 — forked from annabranco/postcssSorting.config
Configurations for PostCSS Sorting plugin
"postcssSorting.config": {
"order": [
"custom-properties",
"dollar-variables",
{
"type" : "at-rule",
"name" : "include",
},
{
"type" : "at-rule",
@koshuang
koshuang / circleci_lerna+yarn_starter
Created June 7, 2021 22:43 — forked from smithki/circleci_lerna+yarn_starter
An opinionated CircleCI configuration for Lerna + Yarn-powered NPM modules.
# ---------------------------------------------------------------------------- #
# CI INSTRUCTIONS #
# ~~~~~~~~~~~~~~~ #
# This configuration is optimized for continuous delivery of NPM packages #
# using Lerna (fixed version) + Yarn. #
# ---------------------------------------------------------------------------- #
# #
# 1) Install & initialize Lerna: `yarn add -D lerna && lerna init` #
# #
# #
@koshuang
koshuang / Install automysqlbackup.md
Created December 21, 2016 04:13 — forked from janikvonrotz/Install automysqlbackup.md
Ubuntu: Install automysqlbackup#MySQL#Markdown

Introduction

AutoMySQLBackup with a basic configuration will create Daily, Weekly and Monthly backups of one or more of your MySQL databases from one or more of your MySQL servers.

Requirements

  • Ubuntu server
  • MySQL

Installation

@koshuang
koshuang / circle.yml
Created November 21, 2016 16:01 — forked from ekryski/circle.yml
Using Yarn with CircleCI and Heroku
machine:
pre:
- mkdir ~/.yarn-cache
node:
version: stable
dependencies:
pre:
- curl -o- -L https://yarnpkg.com/install.sh | bash
cache_directories:
- ~/.yarn-cache
@koshuang
koshuang / laravel-subdirectory.conf
Last active October 29, 2016 07:18 — forked from tsolar/laravel-subdirectory.conf
Laravel in subdirectory nginx example
server {
client_body_in_file_only clean;
client_body_buffer_size 32K;
client_max_body_size 300M;
sendfile on;
send_timeout 300s;
# Port that the web server will listen on.
#listen 80;
@koshuang
koshuang / forever-init.d
Created October 24, 2015 06:48 — forked from hongkongkiwi/forever-init.d
Forever Init.d script which can be used with NVM and can also easily install itself on boot
#!/bin/bash
### BEGIN INIT INFO
# Provides: YOUR_NAME_HERE
# Required-Start: $local_fs $remote_fs $network $syslog $named
# Required-Stop: $local_fs $remote_fs $network $syslog $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/stop the forever nodejs application
### END INIT INFO
_complete_ssh_hosts ()
{
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \
cut -f 1 -d ' ' | \
sed -e s/,.*//g | \
grep -v ^# | \
uniq | \
grep -v "\[" ;