Skip to content

Instantly share code, notes, and snippets.

@alanc
alanc / SRU66-man-page-changes.diff
Created February 24, 2024 01:54
Changes to core OS man pages in Oracle Solaris 11.4 SRU 66
diff -NurbBw 11.4.63/man1/cp.1 11.4.66/man1/cp.1
--- 11.4.63/man1/cp.1 2024-02-23 17:45:28.936885164 -0800
+++ 11.4.66/man1/cp.1 2024-02-23 17:51:32.913974558 -0800
@@ -129,8 +129,15 @@
-S Call fsync(2) on the target file's file descriptor.
- -z Fast Copy. cp will reflink the source and destination files. For
- more information, see the reflink(3C) man page.
+ -z Fast Copy. cp will reflink the source and destination files.
@zhuowei
zhuowei / _header.txt
Last active February 9, 2024 07:37
Counting number of top iPad apps marked as available on visionOS
Business, Free: 71/100
Business, Paid: 84/100
Weather, Free: 92/100
Weather, Paid: 89/100
Utilities, Free: 75/100
Utilities, Paid: 77/100
Travel, Free: 89/100
Travel, Paid: 86/100
Sports, Free: 78/100
Sports, Paid: 77/100

NetUpdateSOAP

The SOAP endpoint for checking if a system update is available is located at /nus/services/NetUpdateSOAP.

Request

A POST request is sent to the endpoint.

HTTP Headers

@alyssarosenzweig
alyssarosenzweig / demo.m
Created September 25, 2021 02:09
AppleJPEGDriver decode routine for the Apple M1
/*
* Copyright (C) 2021 Alyssa Rosenzweig <alyssa@rosenzweig.io>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
@0xabad1dea
0xabad1dea / copilot-risk-assessment.md
Last active September 11, 2023 10:21
Risk Assessment of GitHub Copilot

Risk Assessment of GitHub Copilot

0xabad1dea, July 2021

this is a rough draft and may be updated with more examples

GitHub was kind enough to grant me swift access to the Copilot test phase despite me @'ing them several hundred times about ICE. I would like to examine it not in terms of productivity, but security. How risky is it to allow an AI to write some or all of your code?

Ultimately, a human being must take responsibility for every line of code that is committed. AI should not be used for "responsibility washing." However, Copilot is a tool, and workers need their tools to be reliable. A carpenter doesn't have to

# IDA (disassembler) and Hex-Rays (decompiler) plugin for Apple AMX
#
# WIP research. (This was edited to add more info after someone posted it to
# Hacker News. Click "Revisions" to see full changes.)
#
# Copyright (c) 2020 dougallj
# Based on Python port of VMX intrinsics plugin:
# Copyright (c) 2019 w4kfu - Synacktiv
@rickmark
rickmark / FORMATS.md
Created December 10, 2020 08:00
Apple Documentation Project

Apple Formats for Documentation

File Formats

Archives

  • bom
  • pbzx

Mach-O Binary

  • dyld cache
  • AOT rostetta 2

Signature Formats

Hacky Way to Get Among Us Running with "Local" Rather than the Central Servers

You will need one user who is the Admin and will run the Local game, and all Users will connect to the Admin's network. Instructions for each user - Admin and User - are below.

Admin:

  • Download and run ZeroTier on your machine
  • Sign in to the web client (my.zerotier.com/network)
    • Ensure it's set to private so rando's don't join
  • Share the Network ID with all your users, and when they join click the checkbox in the in the "Auth?" Column
@taviso
taviso / emoji.sh
Created August 29, 2019 18:14
UNIX signals as emoji
declare -ar _status=(
[ 0]=😀 # Success
[ 1]=🤨 # Error
[129]=📞 # SIGHUP
[130]=🛑 # SIGINT
[131]="(╯°□°)╯︵ ┻━┻" # SIGQUIT
[132]=👮 # SIGILL
[133]=🐍 # SIGTRAP
[134]=💥 # SIGABRT
@bendavis78
bendavis78 / chromeos-recovery.md
Created December 20, 2018 04:06
Chrome OS recovery images manual download