Skip to content

Instantly share code, notes, and snippets.

Bruno Gama brunogama

Block or report user

Report or block brunogama

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
brunogama / git-commit-template
Last active Jan 9, 2019
Git commit template
View git-commit-template
# |<---- Using a Maximum Of 50 Characters ---->|
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Ticket (Github issue #23, or Jira format)
# END -----------------------------------------------------------------
brunogama /
Created Dec 11, 2018 — forked from NSExceptional/
The Xcode Build Settings Reference in a searchable document, as of Xcode 8.3.2

Build settings reference

Active Build Action (ACTION)

A string identifying the build system action being performed.


The locations of any sparse SDKs that should be layered on top of the one specified by Base SDK (SDKROOT). If more than one SDK is listed, the first one has highest precedence. Every SDK specified in this setting should be a "sparse" SDK, for example, not an SDK for an entire macOS release.

Alternate Install Group (ALTERNATE_GROUP)

brunogama / .git-commit-template.txt
Created Jul 7, 2018 — forked from adeekshith/.git-commit-template.txt
This commit message template helps you write great commit messages and enforce it across teams.
View .git-commit-template.txt
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
brunogama / Bookmarkified
Created Apr 3, 2018 — forked from lemieuxster/Bookmarkified
QR Code Bookmarklet
View Bookmarkified
javascript:(function(window, document, undefined) {try {var selectedText = document.getSelection().toString(); if (selectedText === ''){selectedText = window.location.href;} if(selectedText !== ''){var baseQRUrl = '' + encodeURIComponent(selectedText);, '_blank', 'width=400,height=400');}} catch (e) {}})(window, document);
brunogama / UIViewController+StoryboardInstantiable.swift
Created Mar 22, 2018
View UIViewController+StoryboardInstantiable.swift
public protocol StoryboardInstantiable: class {
static func fromStoryboard(name: String, bundle: Bundle?) -> Self
extension StoryboardInstantiable where Self: UIViewController {
static func fromStoryboard(name: String = "Main", bundle: Bundle? = nil) -> Self {
let identifier = String(describing: self)
let storyboard = UIStoryboard(name: name, bundle: bundle)
guard let viewController =
storyboard.instantiateViewController(withIdentifier: identifier) as? Self else {
brunogama / pre-commit
Created Dec 27, 2017 — forked from candostdagdeviren/pre-commit
Git Pre-Commit hook with SwiftLInt
View pre-commit
#Path to swiftlint
#if $SWIFT_LINT >/dev/null 2>&1; then
if [[ -e "${SWIFT_LINT}" ]]; then
for file_path in $(git ls-files -m --exclude-from=.gitignore | grep ".swift$"); do
export SCRIPT_INPUT_FILE_$count=$file_path
brunogama /
Created Aug 15, 2017 — forked from willurd/
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
brunogama / String.swift
Created Aug 11, 2017
Localized string extension
View String.swift
public extension String
public var localized: String {
return NSLocalizedString(self.lowercased(), tableName: nil, bundle: .main, value: "", comment: "")
brunogama /
Created May 17, 2016 — forked from ZevEisenberg/
Reset all iOS simulators with this one weird trick
osascript -e 'tell application "iOS Simulator" to quit'
osascript -e 'tell application "Simulator" to quit'
xcrun simctl erase all
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
You can’t perform that action at this time.