Skip to content

Instantly share code, notes, and snippets.

View adelinofaria's full-sized avatar

Adelino Faria adelinofaria

View GitHub Profile
@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'
@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 / 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 / .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 / .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 / .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 / bot-pre-integration.sh
Last active August 29, 2015 14:16
OS X Server - Bot pre-integration script
export LANG=en_US.UTF-8
if [ ! -e "$HOME/.cocoapods/repos" ]
then
pod setup
fi
cd framework
if [ -e "Pods" ]
@adelinofaria
adelinofaria / bash_config.sh
Last active July 13, 2023 16:13
Bash config files script
# bash <(curl -s https://gist.githubusercontent.com/adelinofaria/b15be15f6dd7afcaaeef/raw)
echo "Start bash_config.sh"
#echo "Git Commit First Name"
#read gitFirstName
#echo "Git Commit Last Name"
#read gitLastName
@adelinofaria
adelinofaria / .bash_aliases
Last active May 19, 2017 10:38
Bash aliases file
# General
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -larth'
alias ..='cd ..'
alias cd..='cd ..'
# Recursively delete `.DS_Store` files
@adelinofaria
adelinofaria / inputrc
Created August 12, 2014 16:16
OS X terminal config for text input
# /etc/inputrc - global inputrc for libreadline
# See readline(3readline) and `info rluserman' for more information.
# Be 8 bit clean.
set input-meta on
set output-meta on
# To allow the use of 8bit-characters like the german umlauts, uncomment
# the line below. However this makes the meta key not work as a meta key,
# which is annoying to those which don't need to type in 8-bit characters.