Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
#!/usr/bin/env python3 | |
# Conway's Game of Chess | |
# Copyright (C) 2023 Eric Lesiuta | |
import argparse | |
import atexit | |
import curses | |
import hashlib | |
import os | |
import pickle |
using System.Text; | |
using AsmResolver; | |
using AsmResolver.DotNet; | |
using AsmResolver.DotNet.Builder.Metadata.Blob; | |
using AsmResolver.DotNet.Builder.Metadata.Strings; | |
using AsmResolver.DotNet.Code.Cil; | |
using AsmResolver.DotNet.Signatures; | |
using AsmResolver.IO; | |
using AsmResolver.PE; | |
using AsmResolver.PE.DotNet.Builder; |
import openai | |
import boto3 | |
import json | |
import time | |
from typing import Dict, List | |
openai.api_key = '### SET YOUR OPENAPI API KEY HERE ###' | |
session = boto3.session.Session() | |
client = session.client('iam') |
' Proof of Concept: retrieving SSN for syscalling in VBA | |
' Author: Juan Manuel Fernandez (@TheXC3LL) | |
'Based on: | |
'https://www.mdsec.co.uk/2020/12/bypassing-user-mode-hooks-and-direct-invocation-of-system-calls-for-red-teams/ | |
'https://www.crummie5.club/freshycalls/ | |
Private Type LARGE_INTEGER |
<?php | |
// half-hearted CSS minification | |
$css = preg_replace( | |
array('/\s*(\w)\s*{\s*/','/\s*(\S*:)(\s*)([^;]*)(\s|\n)*;(\n|\s)*/','/\n/','/\s*}\s*/'), | |
array('$1{ ','$1$3;',"",'} '), | |
file_get_contents('linked.css') | |
); | |
// embed as a data: uri | |
$base64css = rtrim(strtr(base64_encode($css), '+/', '-_'), '='); |
# study stream aliases | |
# Requires https://github.com/caarlos0/timer to be installed. spd-say should ship with your distro | |
declare -A pomo_options | |
pomo_options["work"]="45" | |
pomo_options["break"]="10" | |
pomodoro () { | |
if [ -n "$1" -a -n "${pomo_options["$1"]}" ]; then | |
val=$1 |
n=256;q, t, m, e, p, c, f=(range(n),16,lambda x | |
,y, r=0:m((h:=x <<1,h^283)[ | |
h&n!= 0],y>> 1,(r,r ^x) | |
[y&1])if y else r,lambda | |
a,w= 1,p=n -2:e(m(a, a),(w,m | |
(w,a))[p&1] ,p>> 1)if p | |
else w, lambda b: list( | |
map (print,["%.2x "*t%(*b[r:r+t],)for | |
r in [*q][::t]])),lambda a,i: (a<<i|a>>8-i)&255 | |
,lambda a: (a^c(a,1)^c(a,2)^c(a,3)^c(a,4))^99); |
# I'll be doing another one for Linux, but this one will give you | |
# a pop up notification and sound alert (using the built-in sounds for macOS) | |
# Requires https://github.com/caarlos0/timer to be installed | |
# Mac setup for pomo | |
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\ | |
-title 'Work Timer is up! Take a Break 😊'\ | |
-appIcon '~/Pictures/pumpkin.png'\ | |
-sound Crystal" |