Skip to content

Instantly share code, notes, and snippets.

View deroter's full-sized avatar

shinya deguchi deroter

  • ふにす
  • 大阪
View GitHub Profile
order deny,allow
deny from all
allow from 111.111.0.01
allow from 111.111.0.02
allow from 111.111.0.03
allow from 111.111.0.04
@deroter
deroter / ssh-keygen-new.md
Created October 18, 2014 05:58
ssh-keygen

#SSH公開鍵の追加作成手順

.sshに移動する。

ssh公開鍵は.sshディレクトリに。

$cd ~/.ssh

ssh-keygenコマンドで新しい鍵を作成「keyname」に任意の名前を。

@deroter
deroter / adsence.md
Created October 9, 2014 02:53
adsenceを始める前に

Adsenceプログラムポリシーめも

プロダクト固有のポリシー

それぞれで表示できる個数が異なる。

  • コンテンツ向け AdSenseは1ページ3つまで
  • リンクユニットを 3 つまで
  • 検索ボックスを 2 つまで
@deroter
deroter / Ghost in Digitalocean.md
Created January 2, 2014 13:57
DigitaloceanでのGhost
@deroter
deroter / heroku memo.md
Created December 2, 2013 05:55
herokumemo

heroku memo

$ git push heroku master


$ heroku open

$ heroku list

$ heroku login

PC買ったときのSublimetext2の設定備忘録

Packege管理

基本的にはDropbox。

Dropboxに作った[Sublime Text 2]ディレクトリにある[Installed Packages][Packages][Settings]のシンボリックリンクを作る。

その前にクライアント側のインスコディレクトリにcdで移動

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

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

準備するもの

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

$ brew update

次に本体。

@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 / 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.