Skip to content

Instantly share code, notes, and snippets.

View Nimdis's full-sized avatar

Sergei Toroshchin Nimdis

View GitHub Profile
@Nimdis
Nimdis / c.rb
Last active November 19, 2015 12:56
from utc offset to timezone ruby rails
Time.at(secs).gmtime.strftime("#{secs == secs.abs ? '+' : '-'}%I:%M")
@Nimdis
Nimdis / ^m
Last active November 5, 2015 12:56
show and remove ^M in vim
:e! ++ff=unix
:%s/^V^M//g
@Nimdis
Nimdis / gist:26921abf3fbaa2fd1d15
Created May 5, 2015 23:44
update nodejs through npm
sudo npm install -g n
sudo n stable
@Nimdis
Nimdis / gist:6e4bdfcb23ba8df2bb23
Created January 6, 2015 12:29
Running tests with mocha and coffee-script.
mocha --compilers coffee:coffee-script/register tests/rest_tests.test.coffee
@Nimdis
Nimdis / gen
Created July 15, 2014 11:19
random password generation
openssl rand -base64 10
@Nimdis
Nimdis / gist:029b87b98349d9710041
Created July 14, 2014 08:29
rabbitmq config file on mac os x
/usr/local/etc/rabbitmq
@Nimdis
Nimdis / gist:33ed914d440ee0c4b501
Created July 10, 2014 08:11
alembic autogenerate revision
bin/alembic revision --autogenerate -m "Added account table"
@Nimdis
Nimdis / gist:0c27aaef854b2ecf759d
Created July 7, 2014 07:05
where is nginx config in mac os x
/usr/local/etc/nginx/sites-available
@Nimdis
Nimdis / gist:a34d4647dd4a89139a98
Created July 1, 2014 20:10
ubuntu 14.04 mysql rails troubles
sudo apt-get install libmysqlclient-dev libmysqlclient18 ruby-dev
svn propedit svn:ignore .