UPDATE a fork of this gist has been used as a starting point for a community-maintained "awesome" list: machine-learning-with-ruby Please look here for the most up-to-date info!
- liblinear-ruby: Ruby interface to LIBLINEAR using SWIG
| class Something(Base): | |
| __tablename__ = 'yaddayadda' | |
| id = Column(Integer, primary_key=True) | |
| data = Column(MutableList.as_mutable(ARRAY(String(100)))) |
I've been looking for the best Linux backup system, and also reading lots of HN comments.
Instead of putting pros and cons of every backup system I'll just list some deal-breakers which would disqualify them.
Also I would like that you, the HN community, would add more deal breakers for these or other backup systems if you know some more and at the same time, if you have data to disprove some of the deal-breakers listed here (benchmarks, info about something being true for older releases but is fixed on newer releases), please share it so that I can edit this list accordingly.
| # You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
| # This is how I upload my new Sol Trader builds (http://soltrader.net) | |
| # Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
| S3KEY="my aws key" | |
| S3SECRET="my aws secret" # pass these in | |
| function putS3 | |
| { | |
| path=$1 |
| web: node server.js |
| --- | |
| restart_sidekiq: &RESTART_SIDEKIQ | |
| mode: "000755" | |
| content: | | |
| #!/bin/bash | |
| initctl restart sidekiq || initctl start sidekiq | |
| ln -sf /var/app/current/log/sidekiq.log /var/app/containerfiles/logs/sidekiq.log | |
| mute_sidekiq: &MUTE_SIDEKIQ | |
| mode: "000755" | |
| content: | |
| web: node server.js |
| #!/bin/bash | |
| # Run this script on a running Linux OS that you want to be put into an image file. | |
| # Ensure that the system you run this on is less than 10GB in size if you wish to | |
| # deploy the image file to AWS EC2. | |
| # Note: This is based on Michael Fairchild's instance-to-ebs-ami.sh script. | |
| # -https://gist.github.com/249915 | |
| imageFile=${1:-"awsImage-$(date +%m%d%y-%H%M).img"} | |
| imageMountPoint=${2:-'/mnt/image'} | |
| extraFilesArchive=${3:-'awsInstanceFiles.tar.gz'} |
initialize: once, when the controller is first instantiatedconnect: anytime the controller is connected to the DOM