Skip to content

Instantly share code, notes, and snippets.

View Lascorbe's full-sized avatar
👋
Hi there!

Luis Ascorbe Lascorbe

👋
Hi there!
View GitHub Profile
@Lascorbe
Lascorbe / IncrementVersionAndUpload.sh
Last active December 18, 2015 02:39
Auto-increment your Xcode project's build number
# This script will auto-increment your Xcode project's build number for every build (debug & release).
# It will also increment the third position of a semantic formatted version string only for release builds
#
# Examples:
# Buil number (CFBundleVersion): from 1.2.1235 to 1.2.1236
# Version string (CFBundleShortVersionString): from 1.2.5 to 1.2.6
#
# 1. Select your Target in Xcode
# 2. Select "Build Phases" Tab
# 3. Select "Add Build Phase" -> "Add Run Script"
@Lascorbe
Lascorbe / AutoincrementVersion.sh
Last active December 19, 2015 16:19
instructions added
#!/bin/sh
# Increments automatically CFBundleVersion or CFBundleVersion and CFBundleShortVersionString depending if it's a Debug or Release version.
# Created by Luis Ascorbe on 12/04/13.
# Copyright 2013 Luis Ascorbe. All rights reserved.
# Instructions
# 1- Put this file on the same folder where it's the .xcodeproj file
# 2- Create a new Run Script on Build Phases BEFORE Compile Sources
# 3- Rename it as "Auto Increment Version" (or whatever you want)
//
// JSDynamicRowHeightTableViewController.h
//
// Created by Javier Soto on 7/25/13.
// Copyright (c) 2013 JavierSoto. All rights reserved.
//
#import <UIKit/UIKit.h>
/**

Transcript of: https://www.youtube.com/watch?v=X71cvxfALaw

Aral Balkan is an experience designer who is working to change the world bringing design thinking to open source, bringing a new category of technology Experience Driven Open Source. Let's hear it for Aral Balkan.

[Digital Feudalism & How to Avoid It. A tale of indie data.]

Thank you. Thank you very much.

Today, we stand at a cross roads. In front of us are two paths. One leads to a digital free land of people who own their own data, devices, and their services. Empowered by this they are able to safe guard their privacy, their civil liberties, and their human rights. The other leads to a digital feudalism, populated by digital serfs. They don't have the option of owning their data, devices, and services. All they can do is rent them from their faceless, corporate landlords. And enfeebled by this they enjoy neither privacy nor civil liberties, nor human rights.

# Enable programmable completion features.
if [ -f /etc/bash_completion ]; then
source /etc/bash_completion
fi
# Set the PS1 prompt (with colors).
# Based on http://www-128.ibm.com/developerworks/linux/library/l-tip-prompt/
# And http://networking.ringofsaturn.com/Unix/Bash-prompts.php .
PS1="\[\e[34;1m\]\u:\[\e[32;1m\]\w$ \[\e[0m\]"
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/usr/local/sbin
# Add some more custom software to PATH.
PATH=$HOME/.rvm/bin:$PATH
export PATH
# Make sure pkg-config can find self-compiled software
# and libraries (installed to ~/usr)
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:~/usr/lib/pkgconfig
export PKG_CONFIG_PATH
# Load .profile, containing login, non-bash related initializations.
source ~/.profile
# Load .bashrc, containing non-login related bash initializations.
source ~/.bashrc
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
@Lascorbe
Lascorbe / facebook_meesenger_licenses.md
Last active December 28, 2015 07:29
Third party software/code used by the Facebook Messenger app (iOS)
// HACK, but not critical if it fails.
+ (UIPopoverController *)popoverControllerForObject:(id)object {
if (!PSIsIpad()) return nil;
UIPopoverController *popoverController = object;
#ifndef PSPDFKIT_DONT_USE_OBFUSCATED_PRIVATE_API
NSString *printInteractionControllerKeyPath = [NSString stringWithFormat:@"%1$@%2$@.%1$@%3$@%4$@%5$@.%6$@%5$@", @"print", @"State", @"Panel", @"View", @"Controller", @"pover"];
@try {
if ([object isKindOfClass:UIPopoverController.class]) {
@Lascorbe
Lascorbe / swift_2_guided_tour_solutions.swift
Last active June 11, 2016 23:44
Swift 2 Guided Tour - Solutions
/****************/
/* A Swift Tour */
/****************/
//
// This file contains all the solutions (I made) to the "A Swift Tour" exercises
// found in "The Swift Programming Language", you can find that guide here:
// https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html#//apple_ref/doc/uid/TP40014097-CH2-ID1
//
// All examples are written using Swift 2.0 and Xcode 7