Skip to content

Instantly share code, notes, and snippets.

View adelinofaria's full-sized avatar

Adelino Faria adelinofaria

View GitHub Profile
@adelinofaria
adelinofaria / .gitattributes
Last active August 29, 2015 14:17
Added on each Xcode Project
# Avoid conflicts in pbxproj files
.pbxproj merge=union
# Always diff strings files as text
*.strings text diff=multibytetext
@adelinofaria
adelinofaria / .gitignore
Last active May 25, 2017 16:24
iOS .gitignore
# Created by https://www.gitignore.io/api/osx,vim,emacs,swift,xcode,fastlane,cocoapods,objective-c
### CocoaPods ###
## CocoaPods GitIgnore Template
# CocoaPods - Only use to conserve bandwidth / Save time on Pushing
# - Also handy if you have a lage number of dependant pods
# - AS PER https://guides.cocoapods.org/using/using-cocoapods.html NEVER IGONRE THE LOCK FILE
Pods/
@adelinofaria
adelinofaria / .lldbinit
Last active July 13, 2023 15:57
LLDB init file
command alias uikit expr @import UIKit
command alias foundation expr @import Foundation
command regex ps 's/^[[:space:]]*$/po [NSThread callStackSymbols]/'
command regex pv 's/^[[:space:]]*$/po [[[UIApplication sharedApplication] keyWindow] recursiveDescription]/' 's/^(.+)$/po [%1 recursiveDescription]/'
command regex pe 's/^[[:space:]]*$/po [[NSProcessInfo processInfo] environment]/'
command regex pd 's/^(.+)$/po [[NSString alloc] initWithData:%1 encoding:4]/'
command regex pjson 's/^(.+)$/po [[NSString alloc] initWithData:(id)[NSJSONSerialization dataWithJSONObject:%1 options:0 error:nil] encoding:4]/'
command regex pcef 's/^(.+)$/p (unsigned short*)%1.string_->str/'
@adelinofaria
adelinofaria / version_increment.sh
Created June 1, 2015 14:46
Xcode version increment on build.
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}")
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}"
@adelinofaria
adelinofaria / osx_setup.sh
Last active July 13, 2023 16:25
Setup an osx machine with the basic.
#!/bin/bash
# bash <(curl -s https://gist.githubusercontent.com/adelinofaria/daf2eda5a3158328e874/raw)
# Install bash config files
bash <(curl -s https://gist.githubusercontent.com/adelinofaria/b15be15f6dd7afcaaeef/raw)
# Homebrew
bash <(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)
@adelinofaria
adelinofaria / .zshrc
Last active July 13, 2023 16:34
.zshrc
# General
# Prompt
## Default Config
#export TERM=%n@%m %1~ %#
# Alias
alias l='ls -CF'