Skip to content

Instantly share code, notes, and snippets.

View dminchev's full-sized avatar

Dobromir Minchev dminchev

View GitHub Profile

Install minio

brew install minio
vim /usr/local/etc/minio/config.json
{
 "version": "20",
@dminchev
dminchev / nginx.conf
Created August 3, 2017 09:07 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@dminchev
dminchev / setup.md
Created November 11, 2015 11:20
setup server

adduser deploy
ssh-copy-id -i ~/.ssh/deploy.pub deploy@example.com

Install rbenv

aptitude install git

@dminchev
dminchev / Sublime Text 2 Packages
Created February 8, 2013 09:14
Sublime Text 2 Packages
https://github.com/tadast/sublime-rails-snippets
https://github.com/elomarns/auto-encoding-for-ruby
https://github.com/CraigWilliams/BeautifyRuby
https://github.com/luqman/SublimeText2RailsRelatedFiles
https://github.com/kuroir/SCSS.tmbundle
https://github.com/phuibonhoa/handcrafted-haml-textmate-bundle
https://github.com/pavelpachkovskij/sublime-html-to-haml
http://xavura.github.com/CoffeeScript-Sublime-Plugin/
namespace :deploy do
namespace :assets do
desc 'Run the precompile task locally and rsync with shared'
task :precompile, :roles => :web, :except => { :no_release => true } do
%x{bundle exec rake assets:precompile}
%x{rsync --recursive --times --rsh=ssh --compress --human-readable --progress public/assets #{user}@#{location}:#{shared_path}}
%x{bundle exec rake assets:clean}
end
end
task :start do ; end