Skip to content

Instantly share code, notes, and snippets.

View minacle's full-sized avatar
♥️
* 𝙳𝚎𝚝𝚎𝚛𝚖𝚒𝚗𝚊𝚝𝚒𝚘𝚗․ 

Mina Her minacle

♥️
* 𝙳𝚎𝚝𝚎𝚛𝚖𝚒𝚗𝚊𝚝𝚒𝚘𝚗․ 
View GitHub Profile
@minacle
minacle / chntpw.rb
Last active September 15, 2023 06:20
**Please read my comment below**
class Chntpw < Formula
desc "The Offline NT Password Editor"
homepage "https://github.com/Tody-Guo/chntpw"
url "https://github.com/sidneys/chntpw/archive/0.99.6.tar.gz"
sha256 "e915f5addc2673317285c6f022c94da7fdee415d9800cd38540a13706706786b"
head "https://github.com/sidneys/chntpw.git"
depends_on "openssl@1.0"
patch do
tell application "System Events"
tell process "Xcode"
set frontmost to true
tell menu bar 1
set moveTabToNewWindow to a reference to menu item "Move Tab to New Window" of menu "Window"
if enabled of moveTabToNewWindow is true then
click moveTabToNewWindow
end if
tell menu "View"
set hideToolbar to a reference to menu item "Hide Toolbar"
@minacle
minacle / NilResettable.swift
Created September 9, 2019 10:58
Requires Swift >=5.1
// BSD 2-Clause License
//
// Copyright (c) 2019, Mayu Laierlence
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
public enum StringOrValue<Value>: Codable
where Value: Codable {
case string(String)
case value(Value)
public init(from decoder: Decoder) throws {
let container = try decoder.singleValueContainer()
do {
self = .string(try container.decode(String.self))
public enum ArrayOrValue<Value>: Codable
where Value: Codable {
case array([Value])
case value(Value)
public init(from decoder: Decoder) throws {
do {
let container = try decoder.singleValueContainer()
self = .value(try container.decode(Value.self))
// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-commercial, and by any
// means.
//
// In jurisdictions that recognize copyright laws, the author or authors
// of this software dedicate any and all copyright interest in the
// software to the public domain. We make this dedication for the benefit
@minacle
minacle / ZAPZAPZAP-AdSupport.patch
Last active June 21, 2019 02:00
FBSDKCoreKit ~> 5.0.2
--- a/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsUtility.m
+++ b/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsUtility.m
@@ -20,8 +20,6 @@
#import <objc/runtime.h>
-#import <AdSupport/AdSupport.h>
-
#import "FBSDKAccessToken.h"
#import "FBSDKAppEvents.h"
@minacle
minacle / gyb
Last active September 21, 2020 11:58
Grab `gyb` from apple/swift with automated `+generate`
#!/usr/bin/env sh
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
#!/usr/bin/env python
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
{
"editor.rulers": [
80,
120
],
"editor.wordWrap": "bounded",
"editor.wordWrapColumn": 120,
"editor.renderLineHighlight": "all",
"files.insertFinalNewline": false,
"files.trimFinalNewlines": true,