rails new store-backendgem 'spree_backend', github: 'spree/spree'| # Connect | |
| printf "USERNAME\nPASSWORD\ny" | /opt/cisco/anyconnect/bin/vpn -s connect HOST | |
| # Disconnect | |
| /opt/cisco/anyconnect/bin/vpn disconnect |
| Failed to click element because of overlapping element | |
| change | |
| `page.find("#some_element").click` | |
| to | |
| `page.find("#some_element").trigger("click")` |
| El-Capitan | |
| gem install libv8 -v '3.11.8.17' -- --with-system-v8 |
| config.assets.js_compressor = :uglifier | |
| config.assets.css_compressor = :sass |
| :+1: | |
| :-1: | |
| :airplane: | |
| :art: | |
| :bear: | |
| :beer: | |
| :bike: | |
| :bomb: | |
| :book: | |
| :bulb: |
| RESERVED_WORDS = ["admin", "users","help", "about", "account", "login", "signup", "logout", "edit", "index", | |
| "stylesheets","account","reset", "assets", "javascripts", "images", "privacy", | |
| "a", "about", "tos","contact","comments","likes","photos","albums","popular", "tour", "activity", "discover", "annotations", "activities", "notifications", "follower_requests"] | |
| validates :username, presence: true, format: { with: USERNAME_REGEX, message: "Your username can only contain letters A-Z, numbers 0-9, and underscores."}, length: { maximum: 15 }, uniqueness: { case_sensitive: false, message: "That username is not available"}, exclusion: { in: RESERVED_WORDS, message: "\"%{value}\" is reserved."} |
| BEHAVIOUR: | |
| http://reka.co -> https://reka.co | |
| http://www.reka.co -> https://reka.co | |
| https://www.reka.co -> https://reka.co | |
| MAKE SURE YOU SET CLOUDFLARE SLL TO (FULL STRICT) | |
| upstream unicorn { | |
| server unix:/tmp/unicorn.appsname.sock fail_timeout=0; | |
| } |
| This gist is the update of this post https://u.osu.edu/hasnan.1/2014/03/30/rails-4-multiple-file-upload-with-carrierwave-nested-form-and-jquery-file-upload/ | |
| License MIT |
| rvm use --create —ruby-version 1.9.3-p550@wrapper |