Skip to content

Instantly share code, notes, and snippets.

View rafaelks's full-sized avatar
🌎

Rafael K. Streit rafaelks

🌎
View GitHub Profile
sudo cp -r /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.* /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
@rafaelks
rafaelks / rocketchat_cla_mobile.md
Created June 11, 2018 18:32
Rocket.Chat Mobile CLA Agreement

Contributing to Rocket.Chat First of all, thank you for contributing to Rocket.Chat!

The Rocket.Chat Contributor License Agreement was based on Meteor's Contributor Agreement (MCA) version 2.

A Contributor License Agreement is a legal document in which you grant us a right to use the code you submit under the terms of this Agreement, including providing it to others. You are also certifying that you wrote it, and that you are allowed to license it to us. You are not giving up your copyright in your work.

Please read this document carefully before signing.

Rocket.Chat Contributor License Agreement

@rafaelks
rafaelks / Objective-C: ExportStrings
Last active August 29, 2015 14:14
Objective-C: NSRange vs Range <String.Index>
- (void)exportStrings:(NSString *)result
{
NSString *foo = @"";
NSString *bar = @"";
if (!result) {
return;
}
}
@rafaelks
rafaelks / Swift: ExportStrings
Last active August 29, 2015 14:14
Swift: NSRange vs Range <String.Index>
func exportStrings() -> Void {
var foo: String = ""
var bar: String = ""
if let result = result {
let rangeFoo = result.rangeOfString("foo:")
let rangeBar = result.rangeOfString("?bar=")
if let rangeFoo = rangeFoo {
if let rangeBar = rangeBar {
@rafaelks
rafaelks / HTTP & HTTPs with Nginx & Gunicorn
Last active August 29, 2015 14:13
HTTP & HTTPs with Nginx & Gunicorn
upstream my_server {
server unix:/home/user/src/my_project/run/gunicorn.sock fail_timeout=0;
}
server {
listen 80;
/* ... */
location / {