Skip to content

Instantly share code, notes, and snippets.

View pablosproject's full-sized avatar
🏠

Paolo Tagliani pablosproject

🏠
View GitHub Profile
@pablosproject
pablosproject / setup.sh
Last active November 25, 2021 16:29
New Mac Setup
# hide dock
defaults write com.apple.dock autohide -bool true
# remove recent app from dock
defaults write com.apple.dock show-recents -bool FALSE
# change key repeat speed
# [System Preferences-> keyboard]
defaults write -g KeyRepeat -int 1
defaults write -g InitialKeyRepeat -int 10
@pablosproject
pablosproject / script.sh
Last active July 7, 2021 08:02
[Xcode Build Number] Script to get the build number from current date #xcode
#!/bin/bash
buildNumber=$(date -u "+%Y%m%d%H%M")
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE"
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $buildNumber" "$INFOPLIST_FILE"
@pablosproject
pablosproject / CALayer+MBAnimationPersistence.h
Last active July 7, 2021 08:01 — forked from matej/CALayer+MBAnimationPersistence.h
[Animation Resume] Persists (pauses) layer animations (including UIView animation generated animations) when the application enters into background and restores (resumes) animations from where they left off upon returning from background. #ios
//
// CALayer+MBAnimationPersistence.h
//
// Created by Matej Bukovinski on 19. 03. 14.
// Copyright (c) 2014 Matej Bukovinski. All rights reserved.
//
#import <QuartzCore/QuartzCore.h>
@pablosproject
pablosproject / xcode-build-bump.sh
Last active July 7, 2021 08:02 — forked from sekati/xcode-build-bump.sh
[Xcode Build Dump] #xcode
# xcode-build-bump.sh
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)