- Xcodegen - a Swift command line tool for generating your Xcode project;
- XcodeProj - read, update and write your Xcode projects;
- XCLogParser - tool to parse
xcactivitylog
by Spotify;
This file contains 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
do { | |
let encoder = JSONEncoder() | |
encoder.outputFormatting = .prettyPrinted | |
let data = try encoder.encode(sampleInput) | |
if let jsonString = String(data: data, encoding: .utf8) { | |
print(jsonString) | |
} | |
} catch { |
This file contains 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
#!/bin/sh | |
# make sure you have imagemagick installed: brew install imagemagick | |
# your app_icons.sh file should have the correct permissions: run `chmod 775 app_icons.sh` in your terminal from where you put this file | |
# put your `my_icon.png` next to this file and run ./app_icons.sh to export your app icons | |
x=my_icon.png | |
y=${x%.*} | |
# delete the export directory so we start clean |
This file contains 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
// Разное интересное по многопоточности: | |
// Featured-секция, для любителей архивной документации от Apple: | |
1. https://developer.apple.com/library/archive/technotes/tn/tn2028.html#//apple_ref/doc/uid/DTS10003065 - про внутренности потоков в MAC OS X в сравнении с MAC OS 9 | |
2. https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KernelProgramming/About/About.html - Kernel Programming guide, вы же понимаете, что там будет, да :D | |
// Для любителей WWDC: | |
1. https://developer.apple.com/videos/play/wwdc2015/718/ - GCD раз. |
This file contains 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
#------------------------------------------------------------------------------- | |
# CocoaPods | |
#------------------------------------------------------------------------------- | |
function pods_install() { | |
red="\001$(tput setaf 1)\002" | |
yellow="\001$(tput setaf 3)\002" | |
green="\001$(tput setaf 2)\002" | |
reset="\001$(tput sgr0)\002" | |
if [ "$1" = "-f" ] ; then |
This file contains 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
It's been a while since this gist was written. In the meantime the package homeassistant-supervised apt | |
package was introduced for debian based systems. If you used that way the first thing you should do use | |
the normal package uninstaller with something like: (sudo) apt remove homeassistant-supervised | |
If for some reason that doesn't work proceed with the below instructions for a manual cleanup. | |
1) stop services: | |
sudo systemctl stop hassio-supervisor.service | |
sudo systemctl stop hassio-apparmor.service | |
2) disable services: |
This file contains 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 Binding { | |
/// Wrapper to listen to didSet of Binding | |
func didSet(_ didSet: @escaping ((newValue: Value, oldValue: Value)) -> Void) -> Binding<Value> { | |
return .init(get: { self.wrappedValue }, set: { newValue in | |
let oldValue = self.wrappedValue | |
self.wrappedValue = newValue | |
didSet((newValue, oldValue)) | |
}) | |
} | |
Install the following apps on your mac running macOS:
- (standalone) Xcode Command Line Tools
- Homebrew
- Git
Modified from: https://www.moncefbelyamani.com
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>method</key> | |
<string>app-store</string> | |
<key>teamID</key> | |
<string>XXXXXXXXXX</string> | |
<key>uploadBitcode</key> | |
<true/> |
NewerOlder