Skip to content

Instantly share code, notes, and snippets.

@kmamit
kmamit / component
Created November 20, 2014 10:36
component
{
"name": "Basic Div",
"components": [
{
"name": "Default Div",
"template": "<div class='alert' ng-click='selectElem($index, $event)' style='{{css}}'></div>",
"isBootstrap": true,
"data": {
"css": "width:auto;height:10vh;background-color:yellow;border:2px solid;border-color:black;padding:5px;margin:5px;",
"childrens" : [],
@kmamit
kmamit / gist:4686144
Created January 31, 2013 20:27
Rubber Amazon EC2
** [out :: production.foo.com]
** [out :: production.foo.com] /usr/local/rvm/gems/ruby-1.9.3-p194/gems/mongo-1.3.1/lib/mongo/connection.rb:518:in `connect'
** [out :: production.foo.com] :
** [out :: production.foo.com] Failed to connect to a master node at production.foo.com:27017
** [out :: production.foo.com] (
** [out :: production.foo.com] Mongo::ConnectionFailure
** [out :: production.foo.com] )
** [out :: production.foo.com] from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/mongo-1.3.1/lib/mongo/connection.rb:656:in `setup'
** [out :: production.foo.com] from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/mongo-1.3.1/lib/mongo/connection.rb:101:in `initialize'
** [out :: production.foo.com] from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/mongo-1.3.1/lib/mongo/connection.rb:152:in `new'
@kmamit
kmamit / gist:4557041
Created January 17, 2013 16:05
rails g bootstrap:install -f
rails g bootstrap:install -f
@kmamit
kmamit / control panel
Created October 9, 2012 05:47
Host 1 free vps control panel
http://94.249.200.2:5353
@kmamit
kmamit / Remove dir
Created October 9, 2012 05:27
Remove dir ubuntu
$ rm -rf /path/to/directory
$ rm -rf /tmp/foo
@kmamit
kmamit / application status
Created October 6, 2012 13:43
passs........application
LK2060411513712
@kmamit
kmamit / Lost notice
Created October 2, 2012 12:29
Lost notice
please forward this mail to all......
Hi,
I lost my Canon Poweshot A1200 camera (black colour) on friday night during udghosh in new sac.
If someone finds it please return it to me or call me - 8765696177.
Thank You
Shanu Yogi
10665
@kmamit
kmamit / Restore
Created October 1, 2012 18:23
Restore pgsql file
psql dbname < infile
@kmamit
kmamit / Psql commands
Created October 1, 2012 17:06
More psql commands
create user george with password 'password';
grant all privileges on database money to cashier;
@kmamit
kmamit / terminal commands
Created September 26, 2012 17:58
terminal
sudo vim /etc/apache2/sites-enabled/mynewsite