Skip to content

Instantly share code, notes, and snippets.

View aaronpearce's full-sized avatar

Aaron Pearce aaronpearce

View GitHub Profile
@aaronpearce
aaronpearce / AppleRemote.swift
Created February 18, 2022 03:08
Detect Apple Remote model
//
// AppleRemote.swift
// HomeCamTV2
//
// Created by Aaron Pearce on 18/02/22.
// Copyright © 2022 Pearce Media Limited. All rights reserved.
//
import GameController
// Based upon https://web.archive.org/web/20150227031931/http://www.codelib.net/home/jkm/hexcolorscale.html
extension UIColor {
func scaled(by factor: CGFloat) -> UIColor {
let components = self.cgColor.components
var r: CGFloat = (components?[0] ?? 0.0) * 255
var g: CGFloat = (components?[1] ?? 0.0) * 255
var b: CGFloat = (components?[2] ?? 0.0) * 255
let alpha: CGFloat = components?[3] ?? 1.0
{
"title": "Remote Site is Down",
"message": "appstoreconnect.apple.com has been down for five minutes, please reboot the poor Mac mini.",
"imageName": "exclamationmark.triangle.fill",
"color": "#FF0000"
}
Company:
Role:
Full-time:
Remote OK:
Sponsorship:
Salary Range: [Actual range, not "Based on experience or skillset, location, hourly" or so forth]
Contact:
Location:
Relocation Assistance:
Open to Agencies/Consultancies/Intermediaries:
fragment is larger than or outside of variable
call void @llvm.dbg.value(metadata i64 0, metadata !2267, metadata !DIExpression(DW_OP_LLVM_fragment, 128, 64)), !dbg !2271
!2267 = !DILocalVariable(name: "bytes", arg: 1, scope: !2268, file: !3, line: 28, type: !160)
fragment is larger than or outside of variable
call void @llvm.dbg.value(metadata i64 0, metadata !2267, metadata !DIExpression(DW_OP_LLVM_fragment, 192, 64)), !dbg !2271
!2267 = !DILocalVariable(name: "bytes", arg: 1, scope: !2268, file: !3, line: 28, type: !160)
fragment is larger than or outside of variable
call void @llvm.dbg.value(metadata i64 0, metadata !2272, metadata !DIExpression(DW_OP_LLVM_fragment, 128, 64)), !dbg !2276
!2272 = !DILocalVariable(name: "bytes", arg: 1, scope: !2273, file: !3, line: 33, type: !160)
fragment is larger than or outside of variable
@aaronpearce
aaronpearce / mysql - kill all sleeping connections
Created January 10, 2019 07:12 — forked from lucashungaro/mysql - kill all sleeping connections
MySQL - kill command for all idle queries
SELECT GROUP_CONCAT('kill ',id SEPARATOR '; ') AS kill_list
FROM INFORMATION_SCHEMA.PROCESSLIST
WHERE command='Sleep';
@aaronpearce
aaronpearce / genesis_public_key
Last active February 20, 2018 21:50
genesis_public_key
047efb376d43be66bdd5a6a587970323a14fffba85cb8d987cfa42ab31c86578591acdcc8f31b640b58d4d7497133f6a292356b079b2551bc7c084e57486fa6cc6;brandonshega
Job Title:
Location:
Full Time: YES/NO
Remote: YES/NO
Company Description:
Responsibilities:
Pay Scale:
Application Link:
// ==UserScript==
// @name dAmn Alerts
// @namespace Pickley
// @description Makes noise and shit when a message is hit in Menubar
// @include http://chat.deviantart.com/chat/*
// @include https://chat.deviantart.com/chat/*
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// ==/UserScript==
@aaronpearce
aaronpearce / gist:8223665
Created January 2, 2014 18:16
.gitattributes
*.pbxproj binary merge=union