Skip to content

Instantly share code, notes, and snippets.

@clonn
clonn / 00_README.md
Created November 25, 2023 15:26 — forked from LeZuse/00_README.md
Install node on Apple Silicon M1 both ARM and x86 (Rosetta)

Node.js on Apple Silicon

Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.

TODO

  • find a way how to run the same node version on both platforms
@clonn
clonn / css-media-queries-cheat-sheet.css
Created June 15, 2022 13:46 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }

台灣地址解析

此篇紀錄處理門牌地址格式過程遇到的一些問題。

字串解析

地址-WIKI解說,台灣地址大致由下列部分組成

縣市_行政區_街道名稱_門牌編號

>EX: 台中市_中區_台灣大道1段_1號

@clonn
clonn / nginx-tuning.md
Created July 16, 2018 03:13 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@clonn
clonn / README.md
Created April 19, 2018 16:12
Sequelize + Express + Migrations + Seed Starter
@clonn
clonn / README.md
Created April 19, 2018 16:12
Sequelize + Express + Migrations + Seed Starter
@clonn
clonn / CSS3 Media Queries Template
Created March 30, 2017 18:57
CSS3 Media Queries template
/*
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/
*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
@clonn
clonn / 01-README.md
Created September 18, 2016 06:52 — forked from petemcw/01-README.md
Mac OS X LEMP Configuration

Mac OS X LEMP Configuration

This Gist is a collection of configuration files that can be used to easily setup a Homebrew-based LEMP stack on Mac OS X.

Files in this repository are numbered and named for ordering purposes only. At the top of each file is a section of metadata that denote what component the file belongs to and the default name & location of the file. Feel free to implement it however you want.

Note: some configuration files have hard-coded paths to my user directory -- fix it for your setup

Setup

How to set up Gulp with an ExpressionEngine project

I freaking love working with technologies like Grunt and Gulp, and wanted to share how to get my current EE front-end workflow set up. With a few tweaks, this can also be used with virtually any other sites (I've used it with Laravel, static sites, Craft, etc).

Install Node.js

  • If Node is not yet installed on the machine, it will need to be installed

Install Gulp (if needed)

@clonn
clonn / readme.md
Last active August 29, 2015 14:10 — forked from max-mapper/readme.md
io.js 非官方聲明,中文版本

聲明: 此並非爲官方聲明。我並非爲 io.js 官方代表,如果有任何問題,歡迎在 node-forward 一起討論

io.js - what you need to know

io-logo-substack

  • io 內容主要會從 node v0.12 分支出來 ( node v0.12 是下一個正式版本,但是尚未釋出)
  • io.js 將會 完全相容 於 node.js
  • io.js 開發者大多於 node.js 核心貢獻者,這邊有關於 io.js 想法以及運作方針