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 / 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 / .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/'
[user]
name = GIT_NAME
email = GIT_EMAIL
[commit]
gpgsign = true
[color]
ui = 1
[help]
autocorrect = 1
[core]
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@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 / .gitignore_global
Last active May 25, 2017 16:24
OS X global .gitignore
# Created by https://www.gitignore.io/api/go,vim,ruby,macos,emacs,swift,xcode,fastlane,carthage,cocoapods,objective-c
### Carthage ###
# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts
Carthage/Build
@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 / 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}"