git (private server)
Alternative: github
Cashboard
| sudo /usr/sbin/groupadd rvm | |
| sudo /usr/sbin/usermod -G rvm ubuntu | |
| sudo apt-get install git-core build-essential zlib1g-dev libssl-dev libreadline5-dev libxml2-dev libsqlite3-dev libxslt-dev libxml2-dev libcurl4-openssl-dev | |
| sudo su - | |
| bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
| rvm pkg install zlib | |
| rvm remove 1.9.2 | |
| rvm install 1.9.2 --with-zlib-dir=$rvm_path/usr | |
| rvm use 1.9.2 --default | |
| gem install bundler passenger |
| <!-- Mobile meta & links --> | |
| <!-- Reference | |
| Custom Icon and Image Creation Guidelines: | |
| http://developer.apple.com/library/safari/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html | |
| Configuring Web Applications: | |
| http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/configuringwebapplications/configuringwebapplications.html |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta content="yes" name="apple-mobile-web-app-capable"> | |
| <!-- iPhone --> | |
| <link href="http://taylor.fausak.me/static/images/apple-touch-icon-57x57.png" | |
| sizes="57x57" |
| class ImageUploader < CarrierWave::Uploader::Base | |
| include CarrierWave::MiniMagick | |
| storage :file | |
| def thumb(size) | |
| begun_at = Time.now | |
| size.gsub!(/#/, '!') | |
| uploader = Class.new(self.class) | |
| uploader.versions.clear | |
| uploader.version_names = [size] |
| --colour | |
| -I app |
This script installs a patched version of ruby 1.9.3-p194 with patches for boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.
Huge thanks to funny-falcon for the performance patches.
| do -> | |
| _parse = Backbone.Model.prototype.parse | |
| _.extend Backbone.Model.prototype, | |
| initNestedCollections: (nestedCollections) -> | |
| @_nestedCollections = {} | |
| _.each nestedCollections, (theClass, key) => | |
| @_nestedCollections[key] = new theClass([]) | |
| @resetNestedCollections() |
| TEMPLATE | |
| ---- | |
| %form#uploadAsset{"accept-charset" => "UTF-8", :action => "/admin/assets", "data-remote" => "true", :enctype => "multipart/form-data", :method => "post"} | |
| %div{:style => "margin:0;padding:0;display:inline"} | |
| %input{:name => "utf8", :type => "hidden", :value => "✓"}/ | |
| %input{:name => "authenticity_token", :type => "hidden", :value => ""}/ | |
| .element | |
| .avatar.thin | |
| %label.hint#assetLabel | |
| Your Asset |