Skip to content

Instantly share code, notes, and snippets.

Alim AlemAblat

Block or report user

Report or block AlemAblat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
eryshkov / UUID.swift
Last active Feb 6, 2019
[UUID and Serial for mac]
View UUID.swift
//: Playground - noun: a place where people can play
import Cocoa
func getSerial() -> String? {//Получить серийный номер mac-компьютера
let platformExpert = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("IOPlatformExpertDevice") )
guard platformExpert > 0 else {
return nil
# Some things taken from here
# Set the colours you can use
You can’t perform that action at this time.