Context: https://twitter.com/VictorTaelin/status/1776677635491344744
Results: 5/10 with GPT-4-Turbo, 10/10 by claude-3-opus-20240229 Temp: 0.0
Barely tested, your mileage may vary.
Context: https://twitter.com/VictorTaelin/status/1776677635491344744
Results: 5/10 with GPT-4-Turbo, 10/10 by claude-3-opus-20240229 Temp: 0.0
Barely tested, your mileage may vary.
Develop an AI prompt that solves random 12-token instances of the A::B problem (defined here), with 90%+ success rate.
We'll use your prompt as the SYSTEM PROMPT, and a specific instance of problem as the PROMPT, inside XML tags. Example:
Install HF Code Autocomplete VSCode plugin.
We are not going to set an API token. We are going to specify an API endpoint.
We will try to deploy that API ourselves, to use our own GPU to provide the code assistance.
We will use bigcode/starcoder
, a 15.5B param model.
We will use NF4 4-bit quantization to fit this into 10787MiB VRAM.
It would require 23767MiB VRAM unquantized. (still fits on a 4090, which has 24564MiB)!
#objective-c xrefs hopper script | |
#rewrite the IDAPython script https://github.com/fireeye/flare-ida/blob/master/python/flare/objc2_xrefs_helper.py | |
#author: Kai Lu(@k3vinlusec) | |
#editor: Zhuoli Li(@dreampiggy) | |
def getRefPtr(doc,classMethodsVA,objcSelRefs, objcMsgRefs, objcConst): | |
ret = (None, None) | |
namePtr = doc.readUInt64LE(classMethodsVA) #get name field in struct __objc_method, it's selector | |
ctn = 0 |
// https://gist.github.com/saagarjha/ed701e3369639410b5d5303612964557 | |
#import "swizzler.h" | |
#import <Foundation/Foundation.h> | |
#import <mutex> | |
#import <objc/runtime.h> | |
#import <unordered_map> | |
#import <utility> | |
struct PairHasher { | |
std::size_t operator()(const std::pair<Class, Protocol *> &pair) const { |
// ============================================================================= | |
// XNU kperf/kpc demo | |
// Available for 64-bit Intel/Apple Silicon, macOS/iOS, with root privileges | |
// | |
// | |
// Demo 1 (profile a function in current thread): | |
// 1. Open directory '/usr/share/kpep/', find your CPU PMC database. | |
// M1 (Pro/Max/Ultra): /usr/share/kpep/a14.plist | |
// M2 (Pro/Max): /usr/share/kpep/a15.plist | |
// M3: /usr/share/kpep/as1.plist |
// Example usage: | |
// Swizzler<NSString *, NSDateFormatter *, NSDate *> NSDateFormatter_stringFromDate_ { | |
// NSDateFormatter.class, @selector(stringFromDate:), [&](auto self, auto date) { | |
// if ([NSCalendar.currentCalendar components:NSCalendarUnitWeekday fromDate:date].weekday == 4) { | |
// return @"It Is Wednesday My Dudes"; | |
// } else { | |
// return NSDateFormatter_stringFromDate_(self, date); | |
// } | |
// } | |
// }; |
// To compile: clang++ -arch x86_64 -arch arm64 -std=c++20 library_injector.cpp -lbsm -lEndpointSecurity -o library_injector, | |
// then codesign with com.apple.developer.endpoint-security.client and run the | |
// program as root. | |
#include <EndpointSecurity/EndpointSecurity.h> | |
#include <algorithm> | |
#include <array> | |
#include <bsm/libbsm.h> | |
#include <cstdint> | |
#include <cstdlib> |
(* | |
With a QuickTime file open QuickTime Player, and an OmniOutliner file open that matches the title below, if this is invoked: | |
- If the QT file is playing, it is paused and the current playback speed is recorded (use option-click on the fast forward button to increase playing speed in QuickTime Player) | |
- If there is not a row starting with the right session number, one is created at the top level (with a link back to the QT file) | |
- A new row is added with the current time code and the insertion point to the right of it and OmniOutliner is activated. | |
- Otherwise, playing in the QT file is resumed a couple seconds before the point at which it was paused, with the playback rate restored, and QT is activated | |
- Setup: |
wget --no-check-certificate --recursive --domains=opensource.apple.com --no-clobber --accept "*.gz" --no-parent -l2 https://opensource.apple.com/tarballs | |
wget --no-check-certificate --recursive --domains=opensource.apple.com --no-clobber --accept "*.gz" -l2 https://opensource.apple.com/ | |
wget --no-check-certificate --recursive --domains=opensource.apple.com --no-clobber --accept "*.gz" --no-parent -l3 https://opensource.apple.com/darwinbuild/ |