Skip to content

Instantly share code, notes, and snippets.

View 0xWDG's full-sized avatar
💻
Hacking my way around

Wesley de Groot 0xWDG

💻
Hacking my way around
View GitHub Profile
@0xWDG
0xWDG / wifi.log
Created June 28, 2024 19:41
Wifi Log
Jun 28 00:30:04 Wesleys-Air newsyslog[12569]: logfile turned over
Fri Jun 28 05:59:39.549 Usb Host Notification Apple80211Set: seqNum 9735 Total 0 chg 0 en0
Fri Jun 28 05:59:40.065 Usb Host Notification Apple80211Set: seqNum 9736 Total 0 chg 0 en0
Fri Jun 28 05:59:40.079 Usb Host Notification Apple80211Set: seqNum 9737 Total 0 chg 0 en0
Fri Jun 28 06:15:38.383 Usb Host Notification Error Apple80211Set: Device power is off seqNum 9738 Total 0 chg 0 en0
Fri Jun 28 06:15:39.018 Usb Host Notification Apple80211Set: seqNum 9739 Total 0 chg 0 en0
Fri Jun 28 06:15:39.043 Usb Host Notification Apple80211Set: seqNum 9740 Total 0 chg 0 en0
Fri Jun 28 10:11:10.538 Usb Host Notification Error Apple80211Set: Unknown error seqNum 9741 Total 0 chg 0 en0
Fri Jun 28 10:11:11.187 Usb Host Notification Apple80211Set: seqNum 9742 Total 0 chg 0 en0
Fri Jun 28 10:11:18.516 Usb Host Notification Error Apple80211Set: Unknown error seqNum 9743 Total 0 chg 0 en0
@0xWDG
0xWDG / PillButtons.swift
Created June 12, 2024 08:05 — forked from metasidd/PillButtons.swift
Pill Buttons - Mail App iOS 18 - SwiftUI
//
// PillButtons.swift
//
// Created by Siddhant Mehta on 6/11/24
// Twitter: @metasidd
//
// Feel free to reuse, or remix.
import SwiftUI
@0xWDG
0xWDG / cryptoKitOTP.swift
Created June 10, 2024 14:42
cryptoKit OTP
import CryptoKit
import CommonCrypto
import Foundation
let period = TimeInterval(30)
let digits = 6
let secret = base32Decode(value: "5FAA5JZ7WHO5WDNN")! // Change this.
var counter = UInt64(Date().timeIntervalSince1970 / period).bigEndian
func cryptoKitOTP() {

Thank you for your interest in AuroraEditor. The purpose of this Contributor License Agreement is to clarify the intellectual property license granted with contributions of software from any person or entity (the "Contributor") to the owners of AuroraEditor. This license is for your protection as a Contributor of software to AuroraEditor and does not change your right to use your own contributions for any other purpose.

The owners of AuroraEditor are the copyright holders of AuroraEditor indicated in the license files distributed with the software.

You and the owners of AuroraEditor hereby accept and agree to the following terms and conditions:

Your "Contributions" means all of your past, present and future contributions of object code, source code and documentation to AuroraEditor, however submitted to AuroraEditor, excluding any submissions that are conspicuously marked or otherwise designated in writing by You as "Not a Contribution."

You hereby grant to the owners of AuroraEditor a non-exclusive, irre

@0xWDG
0xWDG / aurora.markdown
Created September 1, 2022 09:42
Aurora
@0xWDG
0xWDG / LayoutThatFits.swift
Created June 9, 2022 09:00 — forked from ryanlintott/LayoutThatFits.swift
An alternative to ViewThatFits
//
// LayoutThatFits.swift
// WWDC22Experiments
//
// Created by Ryan Lintott on 2022-06-08.
//
import SwiftUI
struct LayoutThatFits: Layout {
@0xWDG
0xWDG / SecureLabel.swift
Created April 16, 2022 09:46 — forked from damian-rzeszot/SecureLabel.swift
_UITextLayoutCanvasView
import UIKit
lazy var hiddenView: UIView = {
let hiddenView: UIView
// iOS 14.1 -> _UITextFieldCanvasView
// iOS 15.0 -> _UITextLayoutCanvasView
if let klass = NSClassFromString("_UITextFieldCanvasView") as? UIView.Type {
hiddenView = klass.init()
@0xWDG
0xWDG / SwiftUI_v1.swift
Created October 10, 2021 18:58
SwiftUI Binding
//
// ContentView.swift
// SwiftUITest
//
import SwiftUI
class ClassWithVariables {
var intVar: Int
var strVar: String
@0xWDG
0xWDG / Swizzle.md
Created April 1, 2020 12:55
Swizzle

Swizzle 1 works (somehow)

The login() function is in the extension The fakeLogin() function is in the main class

Swizzle 2 does not work as expected

The login() function is in the main class The fakeLogin() function is in the extension

Swizzle 3 does work as expected

The dynamic login() function is in the main class