Skip to content

Instantly share code, notes, and snippets.

@dannote
dannote / JavaScriptCore.lua
Created May 11, 2015 18:40
JavaScriptCore Lua bindings
local ffi = require "ffi"
local lgi = require "lgi"
local WebKit = lgi.WebKit
ffi.cdef [[
typedef struct OpaqueJSValue* JSObjectRef;
typedef struct OpaqueJSValue* JSValueRef;
typedef struct OpaqueJSString* JSStringRef;
typedef struct OpaqueJSClass* JSClassRef;
typedef struct OpaqueJSContext* JSContextRef;
@dannote
dannote / final-cut-pro-trial-reset.swift
Last active November 15, 2024 15:21
Final Cut Pro X trial reset
#!/usr/bin/swift
import Foundation
let path = URL(fileURLWithPath: NSString(string: "~/Library/Application Support/.ffuserdata").expandingTildeInPath)
let data = try! NSData(contentsOf: path) as Data
let dictionary = try! NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as! NSDictionary
let mutableDictionary = dictionary.mutableCopy() as! NSMutableDictionary
for (key, value) in mutableDictionary {
@dannote
dannote / itunes-song-list.swift
Created May 27, 2018 10:52
Get song list from iTunes including Apple Music tracks
#!/usr/bin/swift
import Foundation
let path = NSString(string: "~/Music/iTunes/iTunes Music Library.xml").expandingTildeInPath
let data = NSDictionary(contentsOfFile: path)
let allowedTypes = ["File", "Remote"]
if let data = NSDictionary(contentsOfFile: path) as? [String : AnyObject] {
for (_, track) in data["Tracks"] as! [String : NSDictionary] {
0000000000264e88 D _guard variable for metal_plugin::MPSConstantHelper<float>(metal_plugin::OpKernelContext*, metal_plugin::Tensor&, float const*)::cache_
0000000000264e48 D _guard variable for metal_plugin::SplitOpBase<float>::ComputeEasyCases(metal_plugin::OpKernelContext*, bool*)::{lambda(int, char const*)#1}::operator()(int, char const*) const::vmodule_activated
0000000000264e38 D _guard variable for metal_plugin::MPSStridedSliceOp<float>::Compute(metal_plugin::OpKernelContext*)::{lambda(int, char const*)#2}::operator()(int, char const*) const::vmodule_activated
0000000000264e28 D _guard variable for metal_plugin::MPSStridedSliceOp<float>::Compute(metal_plugin::OpKernelContext*)::{lambda(int, char const*)#1}::operator()(int, char const*) const::vmodule_activated
0000000000264d68 D _guard variable for metal_plugin::DepthwiseConv2dNativeOp<float>::Compute(metal_plugin::OpKernelContext*)::{lambda(int, char const*)#1}::operator()(int, char const*) const::vmodule_activated
0000000000264da8 D _guard variable fo