Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@gaspanik
gaspanik / mongod-genghis.markdown
Last active August 29, 2015 14:00
Update mongodb v2.6.x w/ homebrew and install genghis.

Mongod & Genghis

Install or Upgrade Mongodb

Homebrewで新規にインストールするとかアップデートする(ここでは、v2.6.0)。
素直に動けばいいけど、問題があるようなら以下を。

ERROR: dbpath (/data/db) does not exist.

1. 新規にDBを作る

@gaspanik
gaspanik / sketch-plugins.markdown
Created May 14, 2014 08:51
Installed-sketch-plugins

Installed Sketch Plugins

こもりがインストールしてSketch 3で動作確認できてるもの

  • 2014.7.24 update

Content-generator-sketch-plugin

@gaspanik
gaspanik / package.json
Created June 4, 2014 02:36
WP bs4wp_s
{
"name": "BSC4WP_s",
"version": "0.0.1",
"description": "Browser-Sync Config for WordPress Theme Development ~ underscores.me",
"main": "index.php",
"scripts": {
"start": "browser-sync start",
"postinstall": "git clone git@github.com:Automattic/_s.git ../_s",
"test": "echo \"Error: no test specified\" && exit 1"
},
gulp.task('ngrok', function() {
ngrok.once('connect', function(url) {
console.log('we got a tunnel', url);
});
ngrok.connect(3000);
});
@gaspanik
gaspanik / express-gen4arr.markdown
Created August 28, 2014 08:25
express-generator@4 template

express-generator@4 template

express-generator@4から「express project-name」した時にもろもろ古かったりするので、そのテンプレをもとにdeprecatedのお知らせが出ないように書き換えたもの("/public/favicon.ico" を入れないとエラーになるので注意)。


package.json

{

"name": "project-name",

@gaspanik
gaspanik / .editorconfig
Last active August 29, 2015 14:06
sample-editorconfig
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@gaspanik
gaspanik / gist:1b1f5d332898706fc6e7
Created September 12, 2014 08:49
cors-apache.htaccess
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Headers "X-Requested-With"
@gaspanik
gaspanik / superstatic.json
Last active August 29, 2015 14:06
config: superstatic sample
{
"name": "ss",
"root": "./",
"routes": {
"/": "index.html"
},
"clean_urls": false,
"error_page": "error.html",
"headers": {
"/*": {
@gaspanik
gaspanik / pkgbom.markdown
Last active August 29, 2015 14:08
.pkg receipts
$ cd /var/db/receipts
$ ls -l | grep example

-rw-r--r--@ 1 root  wheel     55217 Oct  2 17:49 com.example.bom
-rw-r--r--@ 1 root  wheel       259 Oct  2 17:49 com.example.plist

$ lsbom com.example.bom | pbcopy
@gaspanik
gaspanik / vhost_conf.markdown
Last active August 29, 2015 14:08
Apache 2.4.x vhost.conf

Apache 2.4 vhost.conf on yosemite

Apache 2.2.x vhost.conf

<Directory /path/to/website.com/web>
  (...)
  Order allow,deny
  Allow from all
</Directory>
(...)