Skip to content

Instantly share code, notes, and snippets.

@gaspanik
gaspanik / default.conf
Created Sep 29, 2012 — forked from wokamoto/default.conf
Nginx: default.conf
View 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;
View .gitignore
# Numerous always-ignore extensions
*~
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.zip
@gaspanik
gaspanik / Fetch.sublime-settings
Last active Nov 3, 2015
ST: Fetch files & packages
View Fetch.sublime-settings
{
"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 Sep 30, 2012
Install: AMP on 10.8.x
View mt-lion-amp.md

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 Sep 30, 2012
Install: Install phpMyAdmin on 10.8.x
View phpmyadmin.md

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 Sep 30, 2012
Install: Install RoR on 10.8.x
View rubyonrails.md
View Preferences.sublime-settings
{
"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 Oct 28, 2012
Sublime Text 2 / Pandoc HTML to Markdown Build
View Pandoc-H2M.sublime-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 Oct 28, 2012
Sublime Text 2 / Pandoc Markdown to HTML5 Build
View Pandoc-M2H.sublime-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 Oct 28, 2012
Install: Install Compass on OS X
View Install-Compass.md

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