This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| launchctl stop homebrew.mxcl.nginx | |
| launchctl start homebrew.mxcl.nginx | |
| kill -HUP `cat /usr/local/var/run/nginx.pid` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd ~/bin | |
| wget https://github.com/mochi/mochiweb/raw/master/src/reloader.erl | |
| # Compile | |
| erlc reloader.erl | |
| # Edit ~/.erlang | |
| code:load_abs(“/Users/leo/bin/reloader”). | |
| reloader:start(). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %% Hook for the above onresponse tests. | |
| onresponse_hook(Status, Headers, Req) -> | |
| case Status of | |
| 404 -> | |
| {ok, Html} = file:read_file("www/404.html"), | |
| {ok, Req2} = cowboy_http_req:reply(404, [], Html, Req), | |
| Req2; | |
| _ -> | |
| Req | |
| end. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aria2c -x4 -s4 --load-cookies=/Users/Leo/Library/Application\ Support/Firefox/Profiles/3kztyzg0.default/cookies.sqlite |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exts = [ | |
| 'BrightRoll', | |
| 'GoogleAdMobAds', | |
| 'GoogleAdSense', | |
| 'Greystripe', | |
| 'IAd', | |
| 'InMobi', | |
| 'JumpTap', | |
| 'MdotM', | |
| 'Millennial', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mongoid_config = Mongoid.load! Rails.root.join('config/mongoid.yml') | |
| config.oauth.database = Mongo::Connection.new(mongoid_config['host'], mongoid_config['port']).db(mongoid_config['database']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #invitable | |
| field :invitation_token, :type => String | |
| field :invitation_sent_at, :type => Time | |
| field :invitation_accepted_at, :type => Time | |
| field :invitation_limit, :type => Integer | |
| field :invited_by_id, :type => String | |
| field :invited_by_type, :type => String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://github.com/applicake/doorkeeper/tree/mongoid-support | |
| https://github.com/applicake/doorkeeper | |
| https://github.com/socialcast/devise_oauth2_providable | |
| https://github.com/assaf/rack-oauth2-server (MongoDB only, with admin interface) | |
| https://github.com/nov/rack-oauth2 | |
| https://github.com/pelle/oauth-plugin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://github.com/marcuswestin/WebViewJavascriptBridge | |
| https://github.com/newyankeecodeshop/GAJavaScript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Rack | |
| class File | |
| ALLOWED_VERBS = %w[GET HEAD POST] | |
| end | |
| end |