Skip to content

Instantly share code, notes, and snippets.

View luishurtado's full-sized avatar

Luis Hurtado luishurtado

  • www.kommit.co
  • Manizales - Colombia
View GitHub Profile
@zefer
zefer / copy-s3-bucket.rb
Created April 4, 2011 11:24
Copy contents of an S3 bucket to a another bucket using an EC2 instance and a simple Ruby script. Useful for transferring large amounts of data and will work across geographic regions.
require 'rubygems'
require 'right_aws'
aws_access_key_id = 'your-access-key'
aws_secret_access_key = 'your-secret-key'
target_bucket = 'your-source-bucket'
destination_bucket = 'your-destination-bucket'
s3 = RightAws::S3Interface.new(aws_access_key_id, aws_secret_access_key)
@doublerebel
doublerebel / signasdebug.sh
Created September 4, 2013 21:07
Sign apk with Android default debug keystore. Required for TestFlight module to recognize build as debug. Titanium Mobile signs with its own tirocks keystore by default.
cp app-unsigned.apk temp.apk
jarsigner -verbose -keystore ~/.android/debug.keystore -digestalg SHA1 -sigalg MD5withRSA -storepass android -keypass android temp.apk androiddebugkey
$ANDROID_SDK/tools/zipalign -v 4 temp.apk temp.apkz
mv temp.apkz $1 && rm temp.apk
@rubencaro
rubencaro / install_elixir.md
Last active September 30, 2023 03:58
Elixir installation guide

Elixir installation guide

Version numbers should be the ones you want. Here I do it with the last ones available at the moment of writing.

The simplest way to install elixir is using your package manager. Sadly, at the time of writing only Fedora shows the intention to keep its packages up to date. There you can simply sudo dnf install erlang elixir and you are good to go.

Anyway, if you intend to work with several versions of erlang or elixir at the same time, or you are tied to a specific version, you will need to compile it yourself. Then asdf is your best friend.

@iotashan
iotashan / ti.parse.js
Created June 17, 2015 15:38
Parse JS SDK ported to Titanium
/*!
* Parse JavaScript SDK
* Version: 1.3.4
* Built: Fri Jan 23 2015 12:45:28
* http://parse.com
*
* Copyright 2015 Parse, Inc.
* The Parse JavaScript SDK is freely distributable under the MIT license.
*
* Includes: Underscore.js