Skip to content

Instantly share code, notes, and snippets.

View adrianjagielak's full-sized avatar
🚀
Deploying stuff

Jagi ᯅ adrianjagielak

🚀
Deploying stuff
View GitHub Profile
@sebjvidal
sebjvidal / ViewController.swift
Created May 28, 2024 16:39
UICustomViewMenuElement Demo
//
// ViewController.swift
// UIMenu-Demo
//
// Created by Seb Vidal on 28/05/2024.
//
import UIKit
class ViewController: UIViewController {
@juliensagot
juliensagot / VariableBlurView.swift
Last active April 15, 2025 21:17
SwiftUI variable blur view
import Foundation
import SwiftUI
import UIKit
extension UIBlurEffect {
public static func variableBlurEffect(radius: Double, imageMask: UIImage) -> UIBlurEffect? {
let methodType = (@convention(c) (AnyClass, Selector, Double, UIImage) -> UIBlurEffect).self
let selectorName = ["imageMask:", "effectWithVariableBlurRadius:"].reversed().joined()
let selector = NSSelectorFromString(selectorName)
@StefKors
StefKors / onKeyPress.swift
Last active April 3, 2025 01:22
SwiftUI keyboard events based on keyawareview and keyboardshortcuts
//
// KeyAwareView.swift
//
// Created by Stef Kors on 04/09/2023.
//
// source: https://onmyway133.com/posts/how-to-handle-keydown-in-swiftui-for-macos/
// source: https://github.com/sindresorhus/KeyboardShortcuts/blob/main/Sources/KeyboardShortcuts/Key.swift
import SwiftUI
import Carbon.HIToolbox
@stephancasas
stephancasas / CustomMenuBarExtraCornerMask.swift
Last active April 28, 2025 12:59
A SwiftUI MenuBarExtra window with custom corners
//
// MenuBarTestApp.swift
// MenuBarTest
//
// Created by Stephan Casas on 7/7/23.
//
import SwiftUI
@main

Tested Nov 23 2022

Survey of algorithms authenticator apps support

app sha1-6 sha256-6 sha512-6 sha1-8 sha256-8 sha512-8 notes
[google (android)] ✔️
[google (apple)] ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
[microsoft (android)] ✔️
[microsoft (apple)] ✔️
[authy (android)] ✔️ ✔️
@kamilhism
kamilhism / oktaverify2totp.md
Created September 10, 2022 16:18
Get TOTP secret key for Okta Verify
  1. Get the content of the QR for Okta Verify app setup. It looks like this: oktaverify://[email protected]/?t=XXXXX&f=YYYYY&s=https://DOMAIN.okta.com&issuer=DOMAIN.okta.com&isIdxEnabled=true
  2. Replace XXXXX, YYYYY and DOMAIN to your values in curl below:
curl --request POST \
  --url https://DOMAIN.okta.com/idp/authenticators \
  --header 'Accept: application/json; charset=UTF-8' \
  --header 'Accept-Encoding: gzip, deflate' \
  --header 'Authorization: OTDT XXXXX' \
  --header 'Content-Type: application/json; charset=UTF-8' \
@TehBrian
TehBrian / final-cut-pro-trial-reset.sh
Last active May 30, 2025 14:40
Final Cut Pro Trial Reset
mv -vf ~/Library/Application\ Support/.ffuserdata ~/Library/Containers/com.apple.FinalCutTrial/Data/Library/Application\ Support/.ffuserdata ~/.Trash
@h3ssan
h3ssan / JetBrains trial reset.md
Last active May 28, 2025 16:03
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these

@approovm
approovm / 00-android-bypass-certificate-pinning-and-mitm-attack-setup.md
Last active April 18, 2025 18:03
Certificate Pinning Bypassing: Setup with Frida, mitmproxy and Android Emulator with a writable file system
@maxwellmlin
maxwellmlin / LPX-Trial-Reset.sh
Created April 14, 2021 03:46
Logic Pro X Trial Reset
mv -v ~/Library/Application\ Support/.lpxuserdata ~/.Trash