Skip to content

Instantly share code, notes, and snippets.

View ospfranco's full-sized avatar

Oscar Franco ospfranco

View GitHub Profile
import Cocoa
class _FileIcon: NSView {
let image = NSImageView()
@objc var url: NSString = "" {
didSet {
self.setupView()
}
}
@ospfranco
ospfranco / build-openssl.sh
Last active August 8, 2025 11:57
Cross-compile OpenSSL 3.X for Android
#!/bin/bash
# This script builds openSSL from source for the Android platform
# while patching some hand-written assembly that fails on Android
# It's useful when trying to use OpenSSL in Rust which tries to
# from the official sources and will therefore fail when launching
# your crate on Android
# Link to the main PR that fixes the sources:
{
"name": "quack"
}
@ospfranco
ospfranco / quick-input-widget.js
Created July 20, 2025 19:05
A JS Snippet that allows to apply styles to the VSCode Command Palette/Quick Open
/*
* GNU GENERAL PUBLIC LICENSE
* Version 3, 29 June 2007
*
* Copyright (C) [2023] [Captain Vincent]
* Original Source: https://gist.github.com/CaptainVincent/74a15cd9d9c450e961b867f69008ee6e
*
* Everyone is permitted to copy and distribute verbatim copies of this license document,
* but changing it is not allowed.
*