This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gzip on; | |
| gzip_comp_level 9; | |
| gzip_min_length 1400; | |
| gzip_types text/plain text/css image/png image/gif image/jpeg application/x-javascript text/xml application/xml application/x | |
| ml+rss text/javascript; | |
| gzip_vary on; | |
| gzip_http_version 1.1; | |
| gzip_disable "MSIE [1-6]\.(?!.*SV1)"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo nano /etc/apt/sources.list | |
| # add repo's: | |
| # | |
| # deb http://nginx.org/packages/debian/ squeeze nginx | |
| # deb-src http://nginx.org/packages/debian/ squeeze nginx | |
| # then.... | |
| wget http://nginx.org/keys/nginx_signing.key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysql -u root -p | |
| CREATE USER 'db_user'@'%' IDENTIFIED BY 'PASSWORD'; | |
| FLUSH PRIVILEGES; | |
| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP ON `db_name` . * TO 'db_user'@'%'; | |
| FLUSH PRIVILEGES; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh root@nas.mybox.com | |
| vi /etc/ssh/sshd_config | |
| # override default of no subsystems | |
| #Subsystem sftp /usr/libexec/sftp-server | |
| Subsystem sftp internal-sftp | |
| # restart ssh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - f.field_container :content do | |
| = f.label :content, "Content" | |
| %br/ | |
| = f.text_area :content, :class => '' | |
| = f.error_message_on :content | |
| #ace-editor | |
| :javascript | |
| $(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Homebrew only has wkhtmltopdf-0,9,9 and it fails with QT patched options by default. So if you need HEAD version with fully suppoorted options just | |
| Grab yourself a copy of fresh wkhtmltopdf | |
| Open it and drag to Your Applications | |
| then... | |
| ln /Applications/wkhtmltopdf.app/Contents/MacOS/wkhtmltopdf /usr/local/bin/wkhtmltopdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unicorn.rb | |
| ----------------------------------- | |
| application = "jarvis" | |
| remote_user = "vagrant" | |
| env = ENV["RAILS_ENV"] || "development" | |
| RAILS_ROOT = File.join("/home", remote_user, application) | |
| worker_processes 8 | |
| timeout 30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env ruby | |
| app_name = 'jarvis' | |
| user = 'vagrant' | |
| group = 'vagrant' | |
| rails_env = ENV["RAILS_ENV"] || "development" | |
| RAILS_ROOT = File.join("/home", user, app_name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| username: vagrant | |
| password: vagrant | |
| sudo apt-get update | |
| sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev | |
| sudo aptitude install mysql-server mysql-client | |
| sudo nano /etc/mysql/my.cnf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # disable nerdtree + netrw when loading MacVim, | |
| # as we can use alloy's build with the sidebar | |
| # https://github.com/alloy/macvim | |
| if has("gui_running") | |
| call janus#disable_plugin('nerdtree') | |
| let g:loaded_netrw = 1 " Disable netrw | |
| let g:loaded_netrwPlugin = 1 " Disable netrw | |
| end |