Author: Chris Lattner
| import Foundation | |
| class AsyncOperation: Operation { | |
| enum State: String { | |
| case isReady, isExecuting, isFinished | |
| } | |
| override var isAsynchronous: Bool { | |
| return true | |
| } |
Last updated March 13, 2024
This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.
- https://authenticjobs.com/#category=4&onlyremote=1
- http://www.workingnomads.co/jobs
- https://remoteok.io/remote-jobs
- https://weworkremotely.com/jobs/search?term=front
- https://hn.algolia.com/?dateRange=custom&page=0&prefix=false&query=ask%20hn%3A%20who%20is%20hiring%3F&sort=byDate&type=ask_hn
- http://jobs.remotive.io/
- https://remoteintech.company/
- https://jobspresso.co/browsejobs/#s=1
- https://remoteleaf.com/
- https://dailyremote.com/
| Install Ruby Gems on Mac OS X without sudo | |
| 1. Add GEM_HOME to your .bash_profile | |
| For example, nano ~/.bash_profile and add | |
| export GEM_HOME=/Users/srinivas/.gem where the path is to your own Home folder | |
| 2. Add the gem executables to your system path | |
| Also in .bash_profile, add | |
Syntax: cat <filename> | jq -c '.[] | select( .<key> | contains("<value>"))'
Example: To get json record having _id equal 611
cat my.json | jq -c '.[] | select( ._id | contains(611))'Remember: if JSON value has no double quotes (eg. for numeric) to do not supply in filter i.e. in contains(611)
| /// Represents parts of time | |
| struct TimeParts: CustomStringConvertible { | |
| var seconds = 0 | |
| var minutes = 0 | |
| /// The string representation of the time parts (ex: 07:37) | |
| var description: String { | |
| return NSString(format: "%02d:%02d", minutes, seconds) as String | |
| } | |
| } |
| // | |
| // AppNotify.swift | |
| // | |
| // Created by Christopher Bess on 6/30/15. | |
| // MIT License | |
| // | |
| import Foundation | |
| /// Represents the app notification. |
- Install Firefox Developer Edition from https://www.mozilla.org/en-GB/firefox/developer/ and run it
- Enter "about:config" in Firefox's URL bar and press Enter
- Search for "xpinstall.signatures.required" and double click the setting to toggle it to "false"
- Download the Firefox WebExtensions prototype build from https://s3.amazonaws.com/io.github.robertknight/hypothesis/prototypes/hypothesis-stage.xpi
- Open it in Firefox by going to File -> Open and selecting the downloaded extension
What works:
- Annotation badge. Looks slightly more attractive than Chrome.
| defaults write xcodebuild PBXNumberOfParallelBuildSubtasks 4 | |
| defaults write xcodebuild IDEBuildOperationMaxNumberOfConcurrentCompileTasks 4 | |
| defaults write com.apple.xcode PBXNumberOfParallelBuildSubtasks 4 | |
| defaults write com.apple.xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks 4 |