Skip to content

Instantly share code, notes, and snippets.

@gaspanik
gaspanik / kkmsz20130417.mdown
Created April 17, 2013 16:34
kkmsz 2013.04.16
<VirtualHost *:80>
ServerName pow
ServerAlias *.dev
ServerAlias *.xip.io
ProxyPass / http://localhost:20559/
ProxyPassReverse / http://localhost:20559/
ProxyPreserveHost On
</VirtualHost>
@gaspanik
gaspanik / httpd.conf
Last active December 13, 2015 17:09 — forked from deroter/httpd.conf
#
# Mac OS X / Mac OS X Server
# The <IfDefine> blocks segregate server-specific directives
# and also directives that only apply when Web Sharing or
# server Web Service (as opposed to other services that need Apache) is on.
# The launchd plist sets appropriate Define parameters.
# Generally, desktop has no vhosts and server does; server has added modules,
# custom virtual hosts are only activated when Web Service is on, and
# default document root and personal web sites at ~username are only
# activated when Web Sharing is on.
@gaspanik
gaspanik / httpd-vhosts.conf
Created February 13, 2013 01:48
httpd-vhosts-sample.conf
NameVirtualHost *:80
<Directory "/Users/ユーザー名/Sites">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost _default_:80>
@gaspanik
gaspanik / .bowerrc
Created January 24, 2013 00:42
bower config file
{
"directory" : "保存したい場所"
}
@gaspanik
gaspanik / Makefile
Last active December 11, 2015 08:18
Bootstrap: Twitter Bootstrap Ver.2.2.x Makefile w/ node_modules/uglify-js@1.x
BOOTSTRAP = ./docs/assets/css/bootstrap.css
BOOTSTRAP_LESS = ./less/bootstrap.less
BOOTSTRAP_RESPONSIVE = ./docs/assets/css/bootstrap-responsive.css
BOOTSTRAP_RESPONSIVE_LESS = ./less/responsive.less
UGLIFYJS = ./node_modules/uglify-js/bin/uglifyjs
DATE=$(shell date +%I:%M%p)
CHECK=\033[32m✔\033[39m
HR=\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#
@gaspanik
gaspanik / deregister-open-with-apps.md
Last active December 10, 2015 02:18
OS X: De-Register Open with

De-Register "Open With" Apps

Finderのコンテクストメニューに出てくるアプリの重複を綺麗にする方法。

ターミナルを開いて以下に移動

$ cd /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support

下記のコマンドを実行

@gaspanik
gaspanik / Fetch.sublime-settings
Last active November 3, 2015 19:24
ST: Fetch files & packages
{
"files":
{
"Chart.js": "https://github.com/nnnick/Chart.js",
"Modernizr.js": "http://modernizr.com/downloads/modernizr-latest.js",
"Normalize.css 1.x": "https://github.com/necolas/normalize.css/blob/v1.1.3/normalize.css",
"Normalize.css 2.x": "https://github.com/necolas/normalize.css/blob/v2.1.3/normalize.css",
"Normalize.css 3.x": "https://raw.githubusercontent.com/necolas/normalize.css/master/normalize.css",
"Respond.js": "https://github.com/scottjehl/Respond/blob/master/dest/respond.min.js",
"Sanitize.css": "https://raw.github.com/ZDroid/sanitize.css/master/sanitize.css",
@gaspanik
gaspanik / hayaku-ja.mdown
Last active October 13, 2015 03:57
ST2: Hayaku ja

Hayakuの使い方

CSSを「速く」書くためのSublime Text 2のパッケージ「Hayaku!」について。

インストール

Package Controlからどうぞ

使い方

@gaspanik
gaspanik / gist:4096301
Created November 17, 2012 14:21
ST2: User-Preferences.sublime-settings
{
"bold_folder_labels": true,
// サイドバーのフォルダ名を太字に
"caret_style": "phase",
// キャレットのスタイルを変える。他に「smooth」「blick」「solid」「wide」など
"draw_minimap_border": true,
// ミニマップの表示位置にボーダーを付ける