Skip to content

Instantly share code, notes, and snippets.

Avatar
🇺🇦
Stay strong

Danila Poyarkov dannote

🇺🇦
Stay strong
View GitHub Profile
View metal_plugin_demangled.dump
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
@dannote
dannote / itunes-song-list.swift
Created May 27, 2018
Get song list from iTunes including Apple Music tracks
View itunes-song-list.swift
#!/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] {
@dannote
dannote / final-cut-pro-trial-reset.swift
Last active Jan 29, 2023
Final Cut Pro X trial reset
View final-cut-pro-trial-reset.swift
#!/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 / JavaScriptCore.lua
Created May 11, 2015
JavaScriptCore Lua bindings
View JavaScriptCore.lua
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;