Skip to content

Instantly share code, notes, and snippets.

View wgcv's full-sized avatar

W. Gustavo Cevallos wgcv

View GitHub Profile
@dannote
dannote / final-cut-pro-trial-reset.swift
Last active November 17, 2024 12:28
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 {