Skip to content

Instantly share code, notes, and snippets.

@nunommc
Last active September 18, 2015 13:08
Show Gist options
  • Save nunommc/49499568cc6b155e8d4c to your computer and use it in GitHub Desktop.
Save nunommc/49499568cc6b155e8d4c to your computer and use it in GitHub Desktop.
My Notes to launch most frameworks on the command line

sidekiq

  • Start: be sidekiq -d -L log/sidekiq.log
  • Stop: ps -ef | grep sidekiq | grep -v grep | awk '{print $2}' | xargs kill -9

Elasticsearch

  • Start: elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml

redis server

  • Start: redis-server /usr/local/etc/redis.conf

Git

  • compact objects: git repack -a -d --depth=250 --window=250

Gems

  • remove old gems: gem cleanup

RVM

  • empty gemset:
  $ rvm gemset use NAME
  $ rvm gemset empty NAME
  • cleanup: rvm cleanup [all]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment