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
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
}
View osx-for-hackers.sh
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
You can’t perform that action at this time.