Skip to content

Instantly share code, notes, and snippets.

Installed plugins for Sublime Text 3

2017.05.20 update.

  • A File Icon
  • AdvancedNewFile
  • All Autocomplete
  • ApacheConf.tmLanguage
  • AutoFileName
  • Babel
@gaspanik
gaspanik / rvm2rbenv-setup.markdown
Last active June 7, 2018 23:23
RVMからrbenvに移行した手順まとめ

RVMからrbenvへの移行(OS X 10.8.x)

(注意)既にRVMを使ってRubyがインストール済みなので、OS X標準のRubyではなくHomebrewを使って別バージョンのRubyをインストールするまでのもろもろの準備は省いています。その部分が必要であれば、このあたりの記事の前段が参考になるかもしれません(Rails OS X Developer Guide)。

RVMのアンインストール

まずは、RVMをアンインストールしましょう。

$ rvm implode
# https://github.com/django/django/blob/master/.editorconfig
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
@gaspanik
gaspanik / installed.markdown
Last active September 3, 2017 06:11
ST3: Installed package list on my Sublime Text 3.

Installed packages

Installed package list on my Sublime Text 3. Exclude Themes and ColorSchemes.

2016.02.29 update

  • AdvancedNewFile
  • All Autocomplete
  • AndyPHP
  • AngularJS
@gaspanik
gaspanik / gulpfile.js
Created January 31, 2014 12:43
automate optimize images w/ gulp
var gulp = require('gulp')
, imagemin = require('gulp-imagemin');
var paths = {
srcDir: 'src/*',
destDir: 'images'
}
gulp.task('imagemin', function() {
gulp.src(paths.srcDir)

Open Graph Setting for Ghost

GhostのテンプレートにOGP的なものを差し込むコードサンプル。

default.hbs

全体で使い回すテンプレート用。

	<meta property="og:type" content="your_sitetype">
{
"html": {
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg"],
"brace_style": "collapse",
"indent_char": " ",
"indent_handlebars": true,
"indent_inner_html": false,
"indent_scripts": "keep",
"indent_size": 2,
"max_preserve_newlines": 10,
@gaspanik
gaspanik / config
Last active January 27, 2016 02:42
ssh_config
Host example.net
HostName example.net
PreferredAuthentications password
User username
Host Name
HostName example.com
IdentityFile ~/.ssh/ssh_key_name
IdentitiesOnly yes
User username
@gaspanik
gaspanik / sitespeed_io.markdown
Created January 15, 2014 08:24
sitespeed.ioのインストールと実行

sitespeed.io のインストール

Webサイトのパフォーマンス計測をコマンドラインから実行できる「sitespeed.io」を動かすまで。

インストール

brew install sitespeedio/sitespeedio/sitespeed.io

Homebrewを入れてる人は、黙って上記を実行すればいいらしい。