create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| { | |
| "always_show_minimap_viewport": true, | |
| "auto_complete": true, | |
| "auto_match_enabled": true, | |
| "bold_folder_labels": true, | |
| "caret_extra_bottom": 1, | |
| "caret_extra_top": 1, | |
| "caret_extra_width": 1, | |
| "caret_style": "blink", | |
| "close_sidebar_if_opened": true, |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| function retry(isDone, next) { | |
| var current_trial = 0, max_retry = 50, interval = 10, is_timeout = false; | |
| var id = window.setInterval( | |
| function() { | |
| if (isDone()) { | |
| window.clearInterval(id); | |
| next(is_timeout); | |
| } | |
| if (current_trial++ > max_retry) { | |
| window.clearInterval(id); |
| ### USAGE | |
| ### | |
| ### ./ElasticSearch.sh 1.5.0 will install Elasticsearch 1.5.0 | |
| ### ./ElasticSearch.sh 1.4.4 will install Elasticsearch 1.4.4 | |
| ### ./ElasticSearch.sh will fail because no version was specified (exit code 1) | |
| ### | |
| ### CLI options Contributed by @janpieper | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch | |
| ### ElasticSearch version |
| 2 - Autos & Vehicles | |
| 1 - Film & Animation | |
| 10 - Music | |
| 15 - Pets & Animals | |
| 17 - Sports | |
| 18 - Short Movies | |
| 19 - Travel & Events | |
| 20 - Gaming | |
| 21 - Videoblogging | |
| 22 - People & Blogs |
| content+='<a href= '#' class='pdf_viewer' data-url='+val2.displayUrl+ '>' + val2.displayUrl +'</a>' | |
| Include this line in JS | |
| $('a.pdf_viewer').live('click', function(e){ | |
| e.preventDefault(); | |
| url = $(e.target).data('url'); | |
| window.location = url; | |
| }); |
| *** [err :: 198.58.99.215] Redis::CommandError: ERR unknown command 'hget' | |
| *** [err :: 198.58.99.215] /apps/altoserv/shared/bundle/ruby/2.1.0/gems/redis-3.1.0/lib/redis/client.rb:103:in `call' | |
| *** [err :: 198.58.99.215] /apps/altoserv/shared/bundle/ruby/2.1.0/gems/redis-3.1.0/lib/redis.rb:1842:in `block in hget' | |
| *** [err :: 198.58.99.215] /apps/altoserv/shared/bundle/ruby/2.1.0/gems/redis-3.1.0/lib/redis.rb:37:in `block in synchronize' | |
| *** [err :: 198.58.99.215] /apps/altoserv/shared/bundle/ruby/2.1.0/gems/redis-3.1.0/lib/redis.rb:37:in `synchronize' | |
| *** [err :: 198.58.99.215] /apps/altoserv/shared/bundle/ruby/2.1.0/gems/redis-3.1.0/lib/redis.rb:1841:in `hget' | |
| *** [err :: 198.58.99.215] /apps/altoserv/shared/bundle/ruby/2.1.0/gems/redis-namespace-1.5.0/lib/redis/namespace.rb:383:in `call_with_namespace' | |
| *** [err :: 198.58.99.215] /apps/altoserv/shared/bundle/ruby/2.1.0/gems/redis-namespace-1.5.0/lib/redis/namespace.rb:282:in `method_missing' | |
| *** [err :: 198.58.99.215] /apps/altoserv/shared/bundle/ruby/2.1.0/g |
| class ImportController << ApplicationController | |
| require 'net/http' | |
| require 'net/https' | |
| require 'uri' | |
| #THIS METHOD TO SEND USER TO THE GOOGLE AUTHENTICATION PAGE. | |
| def authenticate | |
| # initiate authentication w/ gmail | |
| # create url with url-encoded params to initiate connection with contacts api |
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |
| [user] | |
| name = Dinesh Prathap | |
| email = [email protected] | |
| [alias] | |
| co = checkout | |
| lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
| st = status | |
| ci = commit | |
| br = branch | |
| df = diff |