Skip to content

Instantly share code, notes, and snippets.

@DanSkeel
DanSkeel / DSLogging.h
Last active September 12, 2015 06:00
Logging configuration header for global/local levels in CocoaLumberjack (2.0.0)
//
// Created by DanSkeel on 23.04.15.
#import "CocoaLumberjack.h"
#define DS_LogScopeGlobal extern
#define DS_LogScopeLocal static
#define DS_LogMutableYes
#define DS_LogMutableNo const
@DanSkeel
DanSkeel / main.m
Created June 15, 2015 17:12
Stupid command line tool that prints log files colored with XcodeColors
// Created by DanSkeel on 15.06.15.
// How to:
// Create a command line tool project in xcode and paste this into main.m
// Provide path to log file in `filePath` var
// Run and see colored log file in console output
#import <Foundation/Foundation.h>
#include <stdio.h>
@DanSkeel
DanSkeel / private.xml
Last active November 30, 2022 21:39
Settings for Karabiner to enable Shift+Enter shortcut for newline in Messages app
<?xml version="1.0"?>
<!-- Documentation: https://pqrs.org/osx/karabiner/xml.html.en -->
<root>
<appdef>
<appname>Messages</appname>
<equal>com.apple.iChat</equal>
</appdef>
<item>
<name>Enable Shift+enter newline shortcut in Messages app</name>
<identifier>private.Messages.NewLine</identifier>
@DanSkeel
DanSkeel / AVCaptureDeviceFormat of iPhone6s
Created December 10, 2015 08:56
AVCaptureDeviceFormat of iPhone6s
<AVCaptureDeviceFormat: 0x13910d5f0 'vide'/'420v' 192x 144, { 3- 30 fps}, HRSI:4032x3024, fov:57.702, max zoom:189.00 (upscales @21.00), AF System:2, ISO:23.0-1472.0, SS:0.000013-0.333333>,
<AVCaptureDeviceFormat: 0x13911ad10 'vide'/'420f' 192x 144, { 3- 30 fps}, HRSI:4032x3024, fov:57.702, max zoom:189.00 (upscales @21.00), AF System:2, ISO:23.0-1472.0, SS:0.000013-0.333333>,
<AVCaptureDeviceFormat: 0x13911a2d0 'vide'/'420v' 352x 288, { 3- 30 fps}, HRSI:3696x3024, fov:52.893, max zoom:189.00 (upscales @10.50), AF System:2, ISO:23.0-1472.0, SS:0.000013-0.333333>,
<AVCaptureDeviceFormat: 0x13911a7d0 'vide'/'420f' 352x 288, { 3- 30 fps}, HRSI:3696x3024, fov:52.893, max zoom:189.00 (upscales @10.50), AF System:2, ISO:23.0-1472.0, SS:0.000013-0.333333>,
<AVCaptureDeviceFormat: 0x139118950 'vide'/'420v' 480x 360, { 3- 30 fps}, HRSI:4032x3024, fov:57.702, max zoom:189.00 (upscales @8.40), AF System:2, ISO:23.0-1472.0, SS:0.000013-0.333333>,
<AVCaptureDeviceFormat: 0x139118bb0 'vide'/'420f' 480x 360, { 3- 30 f