Skip to content

Instantly share code, notes, and snippets.

View mikeumus's full-sized avatar
🎯
Focusing

Michael Duane Mooring mikeumus

🎯
Focusing
View GitHub Profile
@mihkels
mihkels / MultiConnectionSupport.java
Created March 2, 2016 13:51
Spring Boot with Letsencrypt SSL certificate support
@Configuration
public class MultiConnectionSupport {
@Value("${server.port}")
private int serverPort;
@Value("${server.http.port}")
private int httpServerPort;
@Bean
public EmbeddedServletContainerFactory servletContainer() {
@mminer
mminer / MyService.swift
Last active April 23, 2024 23:00
Components of XPC service.
import Foundation
class MyService: NSObject, MyServiceProtocol {
func upperCaseString(_ string: String, withReply reply: @escaping (String) -> Void) {
let response = string.uppercased()
reply(response)
}
}
@mikeumus
mikeumus / gitMe.sh
Last active August 31, 2018 15:43
A script to run on new mahcines to setup git aliases - http://bit.ly/git-me
#!/bin/bash
# Run this script like this:
# curl http://bit.ly/git-me | sh
cat > ~/.gitconfig <<EOF
[user]
name = mikeumus
email = [email protected]
[alias]
co = checkout
http-server:
host-port: ":5778"
processor:
jaeger-binary:
server-host-port: ":6832"
jaeger-compact:
server-host-port: ":6831"
zipkin-compact:
server-host-port: ":5775"
@neoneye
neoneye / Logging.swift
Created March 29, 2019 16:16
SwiftyBeaver using Apple's unified logging system (OSLog)
// Copyright © 2019 Simon Strandgaard. All rights reserved.
import SwiftyBeaver
public let log = SwiftyBeaver.self
extension BaseDestination.LevelColor {
mutating func applyDefaultStyle() {
debug = "🏐 "
info = "🏐 "
verbose = "🏐 "
@mjrusso
mjrusso / ViewController.swift
Created April 15, 2020 00:01
iPadOS 13.4: ImageCaptureCore's ICCameraFile `requestReadData(atOffset:length:completion:)` always passes empty Data object to completion block
import UIKit
import ImageCaptureCore
import MobileCoreServices
class ViewController: UIViewController {
var deviceFinder = DeviceFinder()
override func viewDidLoad() {
super.viewDidLoad()