- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
| Verifying my Blockstack ID is secured with the address 13oMJgQp8t3RaMqGueKv1ATJGN2qxP5kfa https://explorer.blockstack.org/address/13oMJgQp8t3RaMqGueKv1ATJGN2qxP5kfa |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # installs to /opt/gradle | |
| # existing versions are not overwritten/deleted | |
| # seamless upgrades/downgrades | |
| # $GRADLE_HOME points to latest *installed* (not released) | |
| gradle_version=2.2.1 | |
| mkdir /opt/gradle | |
| wget -N http://services.gradle.org/distributions/gradle-${gradle_version}-all.zip | |
| unzip -oq ./gradle-${gradle_version}-all.zip -d /opt/gradle | |
| ln -sfnv gradle-${gradle_version} /opt/gradle/latest |
| sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo | |
| sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo | |
| sudo yum install -y apache-maven | |
| mvn --version |
| # The tables that should be ignored | |
| IGNORED_TABLES = %w() | |
| # The tables should have their charset changed, | |
| # but with no asociated AR model, thus columns will not be modified | |
| TABLES_WITHOUT_MODELS = %w( | |
| oauth_access_grants | |
| oauth_access_tokens | |
| oauth_applications | |
| schema_migrations | |
| ) |
| #!/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 | |
| # |
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
| salimane at Salimanes-MacBook-Pro in ~ | |
| ⚛ ruby --version | |
| ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin13.0] | |
| salimane at Salimanes-MacBook-Pro in ~ | |
| ⚛ cat regex.rb | |
| regex = %r{^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$} | |
| link = "https://www.facebook.com/DUSA.ve?ref=stream" | |
| puts link =~ regex |
Here's a preliminary experiment to see how much memory is saved with the new copy-on-write friendly (bitmap marking) GC.
Calculated by memstats.rb https://gist.github.com/kenn/5105061 on Debian x86_64.
# ./memstats.rb 20547