Skip to content

Instantly share code, notes, and snippets.

@cirocosta
cirocosta / main.go
Created May 25, 2017 15:05
Logrus - Writes logs with level greater than error to stderr and all others (errors included) to a file in json format
package main
import (
"fmt"
"os"
log "github.com/sirupsen/logrus"
)
type MyHook struct{}
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active April 23, 2024 02:53
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S