Skip to content

Instantly share code, notes, and snippets.

@gaspanik
gaspanik / default.conf
Created September 29, 2012 00:13 — forked from wokamoto/default.conf
Nginx: default.conf
server {
listen 80 default;
server_name _;
root /path/to/wordpress;
index index.html index.htm;
charset utf-8;
access_log /var/log/nginx/access.log main;
error_log /var/log/nginx/error.log;
@gaspanik
gaspanik / .gitignore
Created September 30, 2012 06:06
Git: ignore
# Numerous always-ignore extensions
*~
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.zip
@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 / mt-lion-amp.md
Created September 30, 2012 14:47
Install: AMP on 10.8.x

Apache+PHP+MySQL(Homebrew) on Mountain Lion

Mountain Lionの中に入ってるApacheとPHPを有効化しつつ、Homebrewを使ってMySQLをインストールするまで

※XcodeとCommand Line Toolsぐらいは入れておかないとだめなはず

Mountain Lion 内のApacheを起動

システム環境設定から消えてるので以下のコマンドでApache起動

sudo apachectl start
@gaspanik
gaspanik / phpmyadmin.md
Created September 30, 2012 14:49
Install: Install phpMyAdmin on 10.8.x

Installing phpMyAdmin by Homebrew

HomebrewでphpMyAdminを入れる方法

※OS Xの中のApacheとPHPを動かして、MySQLをHomebrewで入れてる前提

それがまだなら、まずは以下を

Apache+PHP+MySQL(Homebrew) on Mountain Lion https://gist.github.com/3806975

HomebrewでPHPのあれこれを追加できるように

@gaspanik
gaspanik / rubyonrails.md
Created September 30, 2012 14:50
Install: Install RoR on 10.8.x
@gaspanik
gaspanik / Preferences.sublime-settings
Created October 2, 2012 14:09
ST2: Setting Sample
{
"caret_style": "blink",
"color_scheme": "Packages/Theme - Refined/Color Schemes/Tomorrow Night Refined.tmTheme",
"font_face": "フォント名",
"font_size": 12.0,
"ignored_packages":
[
"パッケージ名"
],
"tab_completion": true,
@gaspanik
gaspanik / Pandoc-H2M.sublime-build
Created October 28, 2012 02:54
Sublime Text 2 / Pandoc HTML to Markdown Build
// for OS X
// Put this file into Sublime Text 2 Packages 'User' directory, and restart ST2.
{
"path": "/usr/local/bin",
"cmd": ["pandoc", "-S", "-s", "-f", "html", "-t", "markdown", "-o", "$file_path/$file_base_name.md", "$file"],
"working_dir": "$file_path",
"selector": ["source.text", "source.html"]
}
@gaspanik
gaspanik / Pandoc-M2H.sublime-build
Created October 28, 2012 02:54
Sublime Text 2 / Pandoc Markdown to HTML5 Build
// for OS X
// Put this file into Sublime Text 2 Packages 'User' directory, and restart ST2.
{
"path": "/usr/local/bin",
"cmd": ["pandoc", "-S", "-s", "-f", "markdown", "-t", "html5", "-o", "$file_path/$file_base_name.html", "$file"],
"working_dir": "$file_path",
"selector": ["source.md", "source.markdown"]
}
@gaspanik
gaspanik / Install-Compass.md
Created October 28, 2012 09:12
Install: Install Compass on OS X

Install Compass on OS X

まずはRubyをインストールしないことにははじまりません。OS Xの場合は、システム内にRubyが入ってますが、ちょっと古かったりするのでRVMで入れておくと良いでしょう。Ruby On Railsの環境の作り方は下記にあるので参考にどうぞ。

Setting up a Ruby On Rails environment on Mountain Lion

$ gem update --system

Latest version currently installed. Aborting.

$ gem install compass