Skip to content

Instantly share code, notes, and snippets.

View deroter's full-sized avatar

shinya deguchi deroter

  • ふにす
  • 大阪
View GitHub Profile
@deroter
deroter / st2 -setting open
Last active December 11, 2015 19:28
メモ:st2の設定を開く魔法の呪文だよ
open /Applications/Sublime\ Text\ 2.app/Contents/Resources/
黒い画面からst2もひらけごま「subl」
sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/bin/subl
@deroter
deroter / httpd.conf
Created February 13, 2013 16:52
メモ: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.
@deroter
deroter / # はじめてのサーバサイド w: AWS in 大阪.markdown
Last active December 13, 2015 17:48
まとめ:# はじめてのサーバサイド w: AWS in 大阪

はじめてのサーバサイド w/ AWS in 大阪

ローカルサーバーの起動

ルートをDropboxにすると便利そう。次回もしくは追記します。 バーチャルホストの設定が管理上楽になると思いますのでその通りに。 追記:Xcodeとhomebrewくらいは入れておいた方がよさげです。 特にhomebrewはDB入れるときに必要だったりしますので

http://mxcl.github.com/homebrew/

@deroter
deroter / kuroigamen.markdown
Last active December 13, 2015 18:48
まとめ:# 黒い画面自分用まとめ

黒い画面自分用まとめ

まとめの改変。主に自分用。

最初の準備

コマンドとか使う前にまずは環境を作ろう。

Xcode

@deroter
deroter / まとめ:# git_kyoto.md
Last active December 13, 2015 21:38
まとめ:# Gitのゆるめな勉強会 vol.1
@deroter
deroter / まとめ:# aws_setting.md
Last active December 13, 2015 23:29
まとめ:# AWS設定自分用まとめ

AWSのせっていまとめ

インスタンスの作成

SSHでログイン

サーバーを起動させた状態でaction connect。

Connect with a standalone SSH Clientを展開

@deroter
deroter / retina.js
Last active December 14, 2015 07:49
スクリプト:retina.js
// retina.js, a high-resolution image swapper (http://retinajs.com), v0.0.2
(function(){function t(e){this.path=e;var t=this.path.split("."),n=t.slice(0,t.length-1).join("."),r=t[t.length-1];this.at_2x_path=n+"@2x."+r}function n(e){this.el=e,this.path=new t(this.el.getAttribute("src"));var n=this;this.path.check_2x_variant(function(e){e&&n.swap()})}var e=typeof exports=="undefined"?window:exports;e.RetinaImagePath=t,t.confirmed_paths=[],t.prototype.is_external=function(){return!!this.path.match(/^https?\:/i)&&!this.path.match("//"+document.domain)},t.prototype.check_2x_variant=function(e){var n,r=this;if(this.is_external())return e(!1);if(this.at_2x_path in t.confirmed_paths)return e(!0);n=new XMLHttpRequest,n.open("HEAD",this.at_2x_path),n.onreadystatechange=function(){return n.readyState!=4?e(!1):n.status>=200&&n.status<=399?(t.confirmed_paths.push(r.at_2x_path),e(!0)):e(!1)},n.send()},e.RetinaImage=n,n.prototype.swap=function(e){function n(){t.el.complete?(t.el.setAttribute("width",t.el.offsetWidth),t.el.
@deroter
deroter / BitbucketへのSSH公開鍵の手順メモ.md
Last active October 19, 2016 13:36
まとめ# BitbucketへのSSH公開鍵の手順メモ.自分用

BitbucketへのSSH公開鍵の手順メモ

Bitbucket登録後にSSHの公開鍵を設定する時のメモ

SSH鍵の作成

$ cd ~/.ssh

$ mkdir bitbucket
@deroter
deroter / casperjs.markdown
Last active December 17, 2015 12:49
まとめ:casper.jsを使ってのスクリーンショットのやり方まとめ

casper.jsを使ってのスクリーンショットのやり方まとめ(自分用。すぐ忘れるからなw)

準備するもの

まずはhomebrewをあぷでして最新版に。インストールしてなかったらする。

$ brew update

次に本体。