- Add new device:
- Entertainment Device
- Manufacturer: Harmony Beta
- Model: Test Apple TV
- Add your 'Watch Apple TV' activity
- From the Home screen of Harmony Hub, press the burger menu button (three lines) on the top left
- Harmony Setup > Add/Edit Devices & Activities > Activities > Select your Watch Apple TV activity
- Tap Connectivity
- Using your Apple TV remote, go to Settings > Remotes and Devices > Bluetooth
- Pair with 'Logitech Keyboard'
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
import Foundation | |
// from https://www.hackingwithswift.com/articles/108/how-to-use-regular-expressions-in-swift | |
extension String { | |
static func ~= (lhs: String, rhs: String) -> Bool { | |
guard let regex = try? NSRegularExpression(pattern: rhs) else { return false } | |
let range = NSRange(location: 0, length: lhs.utf16.count) | |
return regex.firstMatch(in: lhs, options: [], range: range) != nil | |
} |
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/bash | |
# | |
# A script to log your CPU temps to a file. | |
# https://gist.github.com/squarefrog/09daf36988136ebe061601afe58f2df8 | |
# | |
# You can set this script to run every X minutes using `cron`: | |
# | |
# $ sudo crontab -u username -e | |
# |
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
struct CustomData: Codable { | |
} | |
struct AmigoHelper: Codable { | |
var username: String? = nil | |
var name: String? = nil | |
var userID: String? = nil | |
var email: String? = nil |
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
struct AmigoHelper: Codable { | |
var username: String? = nil | |
var name: String? = nil | |
var userID: String? = nil | |
var email: String? = nil | |
//var customData: Array<Any>? = nil | |
init (username: String? = nil, | |
name: String? = nil, |
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
module Fastlane | |
module Actions | |
class AddIconOverlayAction < Action | |
def self.run(params) | |
#Helper.log.info "Image to overlay on icons: #{params[:overlay_image_path]}" | |
require 'mini_magick' | |
appiconset = params[:appiconset_path] |
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
Marker - 15 Sep 2015 12:47:34 | |
Sep 15 12:48:11 iosdev syslogd[9211]: --- syslogd restarted --- | |
Sep 15 12:48:11 iosdev syslogd[9211]: Configuration Notice: | |
ASL Module "com.apple.authkit.asl" claims selected messages. | |
Those messages may not appear in standard system log files or in the ASL database. | |
Sep 15 12:48:11 --- last message repeated 1 time --- | |
Sep 15 12:48:11 iosdev syslogd[9211]: Configuration Notice: | |
ASL Module "com.apple.cloudd" claims selected messages. | |
Those messages may not appear in standard system log files or in the ASL database. | |
Sep 15 12:48:11 iosdev syslogd[9211]: Configuration Notice: |
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
''' | |
Pasting in multiline text, eg: | |
This is | |
some text | |
fails when using the following, Alfred provided starting point. | |
''' | |
# Breaks ALL the things.. | |
query = '{query}' |
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
Process: Xcode [54350] | |
Path: /Applications/Xcode.app/Contents/MacOS/Xcode | |
Identifier: com.apple.dt.Xcode | |
Version: 6.3.2 (7718) | |
Build Info: IDEFrameworks-7718000000000000~2 | |
App Item ID: 497799835 | |
App External ID: 812404257 | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Xcode [54350] |
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
import UIKit | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
NSNotificationCenter.defaultCenter().addObserver(self, selector: "notificationReceived:", name: "bacon", object: nil) | |
var url = NSURL(string: "ashdfhfd") |
NewerOlder