Skip to content

Instantly share code, notes, and snippets.

@ObuchiYuki
ObuchiYuki / Lock.swift
Created March 23, 2020 06:08
A simple implementation of lock in swift
//
// Lock.swift
// CoreUtil
//
// Created by yuki on 2020/03/22.
// Copyright © 2020 yuki. All rights reserved.
//
import Foundation
@Omar-Ikram
Omar-Ikram / EndpointSecurityDemo.m
Last active August 6, 2025 15:17
A demo of using Apple's EndpointSecurity framework - tested on macOS Monterey 12.2.1 (21D62)
//
// main.m
// EndpointSecurityDemo
//
// Created by Omar Ikram on 17/06/2019 - macOS Catalina 10.15 Beta 1 (19A471t)
// Updated by Omar Ikram on 15/08/2019 - macOS Catalina 10.15 Beta 5 (19A526h)
// Updated by Omar Ikram on 01/12/2019 - macOS Catalina 10.15 (19A583)
// Updated by Omar Ikram on 31/01/2021 - macOS Big Sur 11.1 (20C69)
// Updated by Omar Ikram on 07/05/2021 - macOS Big Sur 11.3.1 (20E241)
// Updated by Omar Ikram on 04/07/2021 - macOS Monterey 12 Beta 2 (21A5268h)
@zedshaw
zedshaw / gist:4e14bbca46eb21aad08d
Created June 18, 2015 04:44
If you ever need to build apache APR on OSX Yosemite, just touch it a whole bunch.
set -e
# go somewhere safe
cd /tmp
# get the source to base APR 1.5.2
curl -L -O http://archive.apache.org/dist/apr/apr-1.5.2.tar.gz
# extract it and go into the source
tar -xzvf apr-1.5.2.tar.gz
@mike-zhang
mike-zhang / git_Backup.py
Created November 29, 2012 01:40
git备份程序
import os
'''
.ssh/config (windows,for local git server):
Host host100
Hostname 192.168.1.100
User git
IdentityFile C:/Users/admin/.ssh/id_rsa_gitBackup_host100
repo example: