I hereby claim:
- I am mdesantis on github.
- I am mdesantis (https://keybase.io/mdesantis) on keybase.
- I have a public key whose fingerprint is F5F7 7045 0619 72C4 1130 5FD1 477C 5D30 1F85 13A9
To claim this, I am signing this object:
begin | |
require "bundler/inline" | |
rescue LoadError => e | |
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
raise e | |
end | |
gemfile(true) do | |
source "https://rubygems.org" | |
# Activate the gem you are reporting the issue against. |
> rails -v | |
Rails 5.1.0.rc1 | |
> rails new rails_vue --webpack=vue | |
create | |
create README.md | |
create Rakefile | |
create config.ru | |
create .gitignore | |
create Gemfile | |
run git init from "." |
# Usage example: | |
# | |
# class User < ActiveRecord::Base | |
# include UniqueConstraintHandler | |
# handle_unique_constraint_on :email | |
# end | |
# | |
# User.create email: 'test@example.com' | |
# user = User.create email: 'test@example.com' | |
# user.new_record? #=> true |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
echo 127.0.0.1 rendezvous-eu-west-1-a.runtime.heroku.com >> /etc/hosts | |
ssh -L 5000:rendezvous-eu-west-1-a.runtime.heroku.com:5000 remoteuser@remoteserver |
http://www.softwareqatest.com/qatweb1.html#LOAD
Tools:
# Hack to change the Rails cookie serializer from Marshal to JSON and therefore allow the session | |
# to be shared between different languages but also avoid that someone knowing the | |
# cookie secret key could execute arbitrary code on the server by unmarshalling | |
# modified Ruby code added to the session/permanent cookie. | |
# | |
# Note that all users will beed to login again since both the remember me cookie and the session cookies | |
# won't be valid. Note also that the remember me cookie is tested multiple times per request even when it fails. | |
# for performance reasons you might want to delete it if these extra cycles are too costly for you. | |
# | |
# Rails 4 (not tested on Rails 3). |
#!/bin/bash | |
# From this stackexchange question: http://unix.stackexchange.com/questions/72746 | |
set -e | |
package=php5-fpm | |
mkdir $package | |
cd $package |
# Schedule script for using Whenever toghether with rbenv | |
# | |
# Whenever: https://github.com/javan/whenever | |
# rbenv: https://github.com/sstephenson/rbenv | |
set :env_path, '"$HOME/.rbenv/shims":"$HOME/.rbenv/bin"' | |
# doesn't need modifications | |
# job_type :command, ":task :output" |