Skip to content

Instantly share code, notes, and snippets.

Alejandro E. Babio alejandrobabio

Block or report user

Report or block alejandrobabio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alejandrobabio
alejandrobabio / apache_bench.sh
Created Jun 1, 2016 — forked from seyhunak/apache_bench.sh
Rails - Apache Bench - Load Testing (if Devise Sign-in Required)
View apache_bench.sh
1.
LOGIN_PAGE=http://localhost/users/sign_in
curl --cookie-jar cookie_file $LOGIN_PAGE | grep csrf-token
2.
<meta content="csrf-token" name="csrf-token" />
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@alejandrobabio
alejandrobabio / gist:f14ad6545e24d25eec02
Last active Aug 29, 2015
Script for read google drive
View gist:f14ad6545e24d25eec02
require 'google_drive'
client = Google::APIClient.new(application_name: 'Google Drive Ruby test', application_version: '0.0.1')
key = Google::APIClient::KeyUtils.load_from_pkcs12(
'path to your p12 key file (all the path with file name)',
'your secret here given at download file it seems to be always the same: notasecret')
asserter = Google::APIClient::JWTAsserter.new(
'service account - email address - here',
['https://www.googleapis.com/auth/drive'],
You can’t perform that action at this time.