FridayHug.com http://fridayhug.com
The Smallest Rails App http://thesmallestrailsapp.com
%w(action_controller/railtie coderay).each &method(:require)| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "net/url" | |
| "strings" | |
| "time" |
| guard 'livereload' do | |
| watch(%r{app/views/.+\.(erb|haml|slim)$}) | |
| watch(%r{app/helpers/.+\.rb}) | |
| watch(%r{public/.+\.(css|js|html)}) | |
| watch(%r{config/locales/.+\.yml}) | |
| watch(%r{(app|vendor)(/assets/\w+/(.+\.css)).*}) do |m| | |
| "/assets/application.css" | |
| end | |
| watch(%r{(app|vendor)(/assets/\w+/(.+\.(js|html|png|jpg))).*}) do |m| | |
| "/assets/#{m[3]}" |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "net" | |
| "net/http" | |
| "time" | |
| "github.com/shirou/gopsutil/cpu" |
| package main | |
| import ( | |
| "bufio" | |
| "io" | |
| "os" | |
| "github.com/pierrec/lz4" | |
| ) |
| 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 |
FridayHug.com http://fridayhug.com
The Smallest Rails App http://thesmallestrailsapp.com
%w(action_controller/railtie coderay).each &method(:require)| #... | |
| 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' |
| { | |
| "name": "ruby-rails-sample", | |
| "description": "A sample Ruby on Rails application", | |
| "scripts": { | |
| "dokku": { | |
| "predeploy": "bundle exec rails db:create db:migrate RAILS_ENV=production" | |
| } | |
| } | |
| } |
| npm --add-python-to-path='true' --debug install --global windows-build-tools |
| First add user to www-data group then... | |
| sudo chown -R USER:www-data /var/www/owncloud/data/USER/files |