I hereby claim:
- I am onerinas on github.
- I am onerinas (https://keybase.io/onerinas) on keybase.
- I have a public key ASA6rpWwMTaSotTsdkfDLFopIcJ9rZfh3MAuqeFjUSOCMgo
To claim this, I am signing this object:
package main | |
import ( | |
"encoding/csv" | |
"fmt" | |
"net/http" | |
) | |
func readCSVFromUrl(url string) ([][]string, error) { | |
resp, err := http.Get(url) |
class Api::UploadsController < ApiController | |
def create | |
@upload = Upload.new(upload_params) | |
ensure | |
clean_tempfile | |
end | |
private |
json.extract! document, :id, :documentable_type, :documentable_id, :created_at | |
json.url rails_blob_url(document.doc) |
I hereby claim:
To claim this, I am signing this object:
var DropDownExample = { | |
controller: function () { | |
var ctrl = this | |
ctrl.data = m.prop([{ name: 'alice', id: 1}, { name: 'bob', id: 2 }]) | |
ctrl.selectedId = m.prop() | |
}, | |
view: function (ctrl) { | |
return m('select', { onchange: m.withAttr('value', ctrl.selectedId) }, [ | |
ctrl.data().map(function(person) { | |
return m('option', { value: person.id }, person.name) |
#!/bin/sh | |
# Config for SSL. | |
echo "--- Making SSL Directory ---" | |
mkdir /etc/nginx/ssl | |
echo "--- Copying $i SSL crt and key ---" | |
openssl req -nodes -new -x509 -keyout /etc/nginx/ssl/server.key -out /etc/nginx/ssl/server.crt -subj "/C=US/ST=NY/L=NYC/O=Dis/CN=www.example.com" | |
echo "--- Turning SSL on in nginx.conf. ---" |
#!/bin/bash | |
echo "Starting Installation..." | |
# Install dependencies | |
yum install gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel ruby-devel libxml2 libxml2-devel libxslt libxslt-devel git | |
# Install Ruby from rvm | |
\curl -sSL https://get.rvm.io | bash -s stable --ruby |
liblinear-ruby: Ruby interface to LIBLINEAR using SWIG
classifier-reborn: Bayesian and LSI classification
dependencies: GSL
* -A in SSH enables agent forwarding. | |
* -p 2122 is not needed if you use the default port of 22. | |
* Replace SSH_USER and example.com with your own values. | |
* Example run: $ envoy run deploy_demo | |
* --no-scripts because Laravel composer.json's post-install-cmd includes optimize, which is already done by php artisan dump-autoload | |
@servers(['test' => '-A -p 2122 -l user test.example.com', 'prod' => '-A -p 2122 -l user example.com']) | |
@task('install_test', ['on' => ['test']]) | |
cd project |