Skip to content

Instantly share code, notes, and snippets.

@seongchan
seongchan / ExecuteAppOrGoStore.html
Last active June 20, 2019 11:13
Execute App at Mobile WebPage
<!--
2015.10.29
Hong SeongChan ([email protected])
-------------------------------------------
모바일 웹 페이에서 개발하고 있는 앱이 실행이 안되길래 샘플코드를 작성해 봄.
이 소스의 전제 조건은 uri scheme 방식이 적용된 앱을 기준으로 한다.
Android 앱의 경우 intent를 이용한 방식을 주로 사용했겠지만, 모바일 웹을 고려한다면 uri scheme을 적용하는게 유리하다.
(웹쪽 코드가 단순해 진다.)
아래 코드는 이러한 전제로 작성되었다.
-->
@brycejohnston
brycejohnston / debian_rails_prod.md
Last active October 12, 2019 19:05
Debian 9 Rails Prod Setup

Update system and install prerequisite packages

apt-get update && apt-get dist-upgrade
apt-get install open-vm-tools # VMware VMs Only
sh -c 'echo vm.swappiness=5 > /etc/sysctl.conf' # Prod Env 
reboot

Some of these packages may already be installed

@naokits
naokits / ipa_generator.swift
Last active August 29, 2015 14:08
XcodeプロジェクトをビルドしてIPAファイルを生成するだけのSwiftスクリプト?
#!/usr/bin/swift
//
// ipa_generator.swift
//
// Created by Naoki Tsutsui on 2014/10/29.
// Copyright (c) 2014年 Naoki Tsutsui All rights reserved.
//
/*
@zenorocha
zenorocha / .hyper.js
Last active April 11, 2025 07:01 — forked from millermedeiros/osx_setup.md
Setup macOS Sierra (10.12)
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
@millermedeiros
millermedeiros / osx_setup.md
Last active March 23, 2025 01:23
Mac OS X setup

Setup Mac OS X

I've done the same process every couple years since 2013 (Mountain Lion, Mavericks, High Sierra, Catalina) and I updated the Gist each time I've done it.

I kinda regret for not using something like Boxen (or anything similar) to automate the process, but TBH I only actually needed to these steps once every couple years...

@jhjguxin
jhjguxin / nginx-403-forbidden-error-hosting-in-user-home-directory.md
Created August 12, 2013 05:40
nginx 403 forbidden error when server static file under user home directory
@jbgo
jbgo / free-space-on-boot-disk.md
Last active April 3, 2025 19:21
Free up space on /boot disk (ubuntu)

Free disk space when /boot is full (Ubuntu)

TL;DR

dpkg -l linux-image*
uname -r
sudo apt-get remove linux-image-2.6.32-{21,37,38,39,40,41,42,43,44}-server
sudo apt-get autoremove
@nanha
nanha / gist:3550434
Created August 31, 2012 08:49
xguru 님의 트위터 백업을 연계하여 검색을 쉽게 할 수 있도록 도와주는 북마클릿 서비스입니다.
javascript:(function(){var surl='http://twitter.xguru.net/index.php?s=';var reply=prompt('%EA%B2%80%EC%83%89%EC%96%B4 %EC%9E%85%EB%A0%A5%ED%95%98%EC%84%B8%EC%9A%94!');if(!reply) return; window.open(surl+reply, '_blank', 'width=670,height=700,scrollable=1,resizable=1');})();
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"