This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ╔══════════════════════════════════════════════════════════════════╗ | |
| # ║ Shared Shell Environment ║ | |
| # ║ Single Source of Truth ║ | |
| # ╚══════════════════════════════════════════════════════════════════╝ | |
| # | |
| # This file is read by all three shell configs on this Mac: | |
| # - ~/.config/fish/config.fish (fish) | |
| # - ~/.zshrc (zsh) | |
| # - ~/.bashrc (bash) | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Bell + macOS notification when a command takes >= 120s | |
| function __longrun_bell --on-event fish_postexec --argument-names cmdline | |
| set -l threshold 120000 # ms | |
| if set -q CMD_DURATION; and test "$CMD_DURATION" -ge $threshold | |
| # 1) Sounds | |
| printf '\a' # terminal BEL (enable Audible Bell in Warp) | |
| command -q osascript; and osascript -e 'beep' >/dev/null 2>&1 # macOS alert sound | |
| # 2) Make a friendly duration like "2m 3s" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VS Code Settings | |
| Run > | |
| `code --list-extensions | xargs -L 1 echo code --install-extension` | |
| Output > | |
| code --install-extension 343max.android-emulator-launcher | |
| code --install-extension adelphes.android-dev-ext | |
| code --install-extension alexisvt.flutter-snippets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias clean='rm -rf ~/Library/Developer/Xcode/DerivedData/' | |
| alias fast='bundle exec fastlane' | |
| alias cl='curl -L' | |
| alias ll='ls -l' | |
| alias ..='cd ..' | |
| alias please='sudo' | |
| alias now='date +"%T"' | |
| alias welcome='sh -x ~/welcome.sh' | |
| status --is-interactive; and source (rbenv init -|psub) | |
| source ~/.bash_profile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FILE=$1 | |
| ANOTHER_FILE=$2 | |
| exec 4> "$ANOTHER_FILE" | |
| while read -ru 3 LINE; do | |
| line="$LINE" | |
| linearray=($line) | |
| echo ${linearray[2]} | |
| xcrun c++filt "${linearray[2]}" >&4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| platform :ios, '9.0' | |
| workspace '../WebEngageAll' | |
| source 'https://github.com/WebEngage/podspecs.git' | |
| # source 'https://github.com/CocoaPods/Specs.git' | |
| def app_pods | |
| pod 'WebEngage' #:path => '../Built' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension Int { | |
| var arc4random: Int { | |
| if self > 0 { | |
| return Int(arc4random_uniform(UInt32(self))) | |
| } else if self < 0 { | |
| return -Int(arc4random_uniform(UInt32(abs(self)))) | |
| } else { | |
| return 0 | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ###################### | |
| # Options | |
| ###################### | |
| set -x | |
| set -e | |
| REVEAL_ARCHIVE_IN_FINDER=false | |
| FRAMEWORK_NAME="${PROJECT_NAME}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // for custom overwrites within an entity like changing an attribute from Boolean to NSNumber, etc | |
| - (BOOL)createDestinationInstancesForSourceInstance:(NSManagedObject *)sInstance | |
| entityMapping:(NSEntityMapping *)mapping | |
| manager:(NSMigrationManager *)manager | |
| error:(NSError **)error { | |
| NSManagedObject *newObject = | |
| [NSEntityDescription insertNewObjectForEntityForName:[mapping destinationEntityName] | |
| inManagedObjectContext:[manager destinationContext]]; | |
| // do transfer of nsdate to nsstring non-lightweight operations here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git branch -r | awk -F/ '/\/PREFIX/{print $2}' | |
| git branch -r | awk -F/ '/\/PREFIX/{print $2}' | xargs -I {} git push origin :{} |
NewerOlder