Skip to content

Instantly share code, notes, and snippets.

View colus001's full-sized avatar

Seokjun Kim colus001

View GitHub Profile

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@colus001
colus001 / Seokjun Kim Resume.md
Last active August 29, 2015 14:18
Seokjun Kim Resume.md

Seokjun Kim

Software and Hardware Developer
Seoul, Korea / [email protected]

Objective

To explain what I've been done for my own pleasure and, of course, for my living.

@colus001
colus001 / uihook
Last active August 29, 2015 14:24
meteor uihooks for 3d box transtion
Template.portfolioHoldings.rendered = ->
@find('.js-holdings-list')._uihooks =
insertElement: (node, next) ->
$node = $(node)
if $node.hasClass('js-placeholder-holding-wrapper') or $node.hasClass('js-holding-search-wrapper')
console.log 'inserting...'
$node.insertBefore(next)
$node.css(
"z-index": "1000"
transform: "translateY(50%) rotateX(90deg)",
@colus001
colus001 / speech_recognition.js
Created August 30, 2015 03:06
Speech Recognition for Raspberry PI
// Don't forget to run export AUDIODEV='hw:1,0' && export AUDIODRIVER="alsa"
var BUTTONS = {
RECORD: 18,
NEXT: 19,
PREV: 20,
OK: 21
};
var GPIO = require('node-pi-gpio');
@colus001
colus001 / node_speakable.js
Created August 30, 2015 03:08
lib/node_speakable.js
var EventEmitter = require('events').EventEmitter,
util = require('util'),
spawn = require('child_process').spawn,
http = require('http');
var Speakable = function Speakable(credentials, options) {
EventEmitter.call(this);
options = options || {}
@colus001
colus001 / chrome-devtool-bug.html
Created February 1, 2016 02:09
Chrome dev tool pixel ratio bug
<style>
.container {
width: 100%;
}
.flex-wrapper {
display: flex;
}
.flex-1 {
@colus001
colus001 / Create iOS Icons 2016 Sizes with 180.jsx
Last active April 4, 2020 05:25 — forked from alexsdesign/Create iOS Icons 2016 Sizes.jsx
Photoshop Script to Create iOS Icons from a source image
// Photoshop Script to Create iPhone Icons from iTunesArtwork
//
// WARNING!!! In the rare case that there are name collisions, this script will
// overwrite (delete perminently) files in the same folder in which the selected
// iTunesArtwork file is located. Therefore, to be safe, before running the
// script, it's best to make sure the selected iTuensArtwork file is the only
// file in its containing folder.
//
// Copyright (c) 2010 Matt Di Pasquale
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com
@colus001
colus001 / remove-drop-shadow-mac-capture.sh
Created July 18, 2016 07:25
맥 캡쳐시 드롭 셰도우 삭제하기
#!/bin/sh
defaults write com.apple.screencapture disable-shadow -bool true && killall SystemUIServer
@colus001
colus001 / quicksort.js
Last active July 6, 2017 04:29
Quick Sort in Javascript
// QUICK SORT ALGORITHM
// @params {Array} arr
// @returns {Array} arr
const quickSort = (arr) => {
if (arr.length < 2) return arr
const pivotIndex = Math.floor(Math.random() * arr.length)
const pivot = arr[pivotIndex], less = [], greater = []
for (let i = 0, l = arr.length; i < l; i++) {