Skip to content

Instantly share code, notes, and snippets.


Limon Limon-O-O

View GitHub Profile
Limon-O-O /
Created Sep 28, 2020 — forked from airdrummingfool/
Update current Xcode target's build number with the number of commits on a specified branch.
# Usage: ` [branch]`
# Run this script after the 'Copy Bundle Resources' build phase
# Ref:
buildNumber=$(expr $(git rev-list $branch --count) - $(git rev-list HEAD..$branch --count))
echo "Updating build number to $buildNumber using branch '$branch'."
Limon-O-O /
Created Aug 17, 2017 — forked from JamesMenetrey/
Install Oh-My-Zsh + iTerm2 with Solarized + System-wide console in 2017 (macOS)

Install iTerm2 with Solarized in 2017

Here is the looks and feel of your terminal once the tutorial has been applied on your system:

Install iTerm2

Using Homebrew:

Limon-O-O / movietransitions.swift
Created Jul 24, 2016 — forked from SheffieldKevin/movietransitions.swift
Make a movie with transitions with AVFoundation and swift
View movietransitions.swift
// main.swift
// mutablecomposition
// Created by Kevin Meaney on 24/08/2015.
// Copyright (c) 2015 Kevin Meaney. All rights reserved.
import Foundation
Limon-O-O /
Created Jun 27, 2016 — forked from tpinto/
Xcode: Automatic version and build number for iOS apps on Info.plist and Settings.bundle -
# Tips from:
# Reference from:
# Get the correct path for the git binary
git=`sh /etc/profile; which git`
# Save paths for the project and target Info.plist
Limon-O-O / FCPrivateBatteryStatus.m
Created Mar 20, 2016 — forked from marcoarment/FCPrivateBatteryStatus.m
How to get raw battery info (mAh remaining, etc.) from iOS using private APIs. For internal testing only, NOT APP STORE DISTRIBUTION!
View FCPrivateBatteryStatus.m
#import <Foundation/Foundation.h>
#include <dlfcn.h>
NSDictionary *FCPrivateBatteryStatus()
static mach_port_t *s_kIOMasterPortDefault;
static kern_return_t (*s_IORegistryEntryCreateCFProperties)(mach_port_t entry, CFMutableDictionaryRef *properties, CFAllocatorRef allocator, UInt32 options);
static mach_port_t (*s_IOServiceGetMatchingService)(mach_port_t masterPort, CFDictionaryRef matching CF_RELEASES_ARGUMENT);
static CFMutableDictionaryRef (*s_IOServiceMatching)(const char *name);
You can’t perform that action at this time.