FridayHug.com http://fridayhug.com
The Smallest Rails App http://thesmallestrailsapp.com
%w(action_controller/railtie coderay).each &method(:require)| { | |
| "workbench.colorTheme": "One Dark Pro", | |
| "editor.fontSize": 16, | |
| "editor.fontFamily": "'Source Code Pro', Consolas, 'Courier New', monospace", | |
| "workbench.statusBar.visible": true, | |
| "explorer.openEditors.visible": 0, | |
| "workbench.iconTheme": "eq-material-theme-icons", | |
| "window.menuBarVisibility": "toggle", | |
| "editor.renderControlCharacters": true, | |
| "workbench.activityBar.visible": true, |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure('2') do |config| | |
| config.vm.box = 'ubuntu/trusty64' | |
| config.vm.hostname = 'appname' | |
| config.vm.network "private_network", ip: "192.168.10.10" | |
| config.vm.network "forwarded_port", guest: 3000, host: 3000 | |
| config.vm.synced_folder ".", "/home/vagrant/" |
| # | |
| # Install the MYSQL driver | |
| # gem install mysql2 | |
| # | |
| # Ensure the MySQL gem is defined in your Gemfile | |
| # gem 'mysql2' | |
| # | |
| # And be sure to use new-style password hashing: | |
| # http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
| development: |
| First add user to www-data group then... | |
| sudo chown -R USER:www-data /var/www/owncloud/data/USER/files |
| npm --add-python-to-path='true' --debug install --global windows-build-tools |
| { | |
| "name": "ruby-rails-sample", | |
| "description": "A sample Ruby on Rails application", | |
| "scripts": { | |
| "dokku": { | |
| "predeploy": "bundle exec rails db:create db:migrate RAILS_ENV=production" | |
| } | |
| } | |
| } |
| #... | |
| gem 'bootstrap-sass', '~> 3.3.7' | |
| gem 'devise', '~> 4.4' | |
| gem 'jquery-rails' | |
| gem 'niceql' | |
| gem 'pry-rails', group: :development | |
| gem 'rails-i18n' | |
| gem 'ransack' | |
| gem 'simple_form' | |
| gem 'sweet-alert-confirm' |
FridayHug.com http://fridayhug.com
The Smallest Rails App http://thesmallestrailsapp.com
%w(action_controller/railtie coderay).each &method(:require)| sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev -y | |
| cd | |
| wget http://ftp.ruby-lang.org/pub/ruby/2.5/ruby-2.5.3.tar.gz | |
| tar -xzvf ruby-2.5.3.tar.gz | |
| cd ruby-2.5.3/ | |
| ./configure | |
| make | |
| sudo make install | |
| ruby -v | |
| gem install bundler |
| package main | |
| import ( | |
| "bufio" | |
| "io" | |
| "os" | |
| "github.com/pierrec/lz4" | |
| ) |