Skip to content

Instantly share code, notes, and snippets.

View morgant's full-sized avatar

Morgan Aldridge morgant

View GitHub Profile
@ekollof
ekollof / screen-record.ksh
Last active March 22, 2025 20:11
Record your multihead OpenBSD desktop (probably some assembly required)
#!/bin/ksh
# Help message
usage() {
echo "Usage: $0 [-s screen] [-l] [-h]"
echo " -s screen Select screen number (0, 1, 2, etc.)"
echo " -l List available screens"
echo " -h Show this help message"
exit 1
}
@rfht
rfht / fauxstream-vaapi.sh
Created September 27, 2024 01:28
updated fauxstream script, currently still undergoing testing, with performance improvements, VA-API use, and better avoidance of desyncs
#!/bin/sh
########
# Copyright (c) 2018-2019 Thomas Frohwein <[email protected]>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
@morgant
morgant / acme-client.conf
Created October 14, 2023 16:29
OpenBSD httpd & relayd reverse proxy configuration
authority letsencrypt {
api url "https://acme-v02.api.letsencrypt.org/directory"
account key "/etc/acme/letsencrypt-privkey.pem"
}
# example.net
domain example.net {
alternative names { www.example.net }
domain key "/etc/ssl/private/example.net.key"
domain certificate "/etc/ssl/example.net.crt"
@mttaggart
mttaggart / electron-versions.csv
Last active April 26, 2025 02:21
CVE-2023-4863 Electron App Tracker | THIS LIST IS NOW DEPRECATED. PLEASE VISIT https://github.com/mttaggart/electron-app-tracker FOR THE LATEST DATA
app_name repo electron_version vulnerable
1Clipboard https://github.com/wiziple/1clipboard
1Password None 25.8.1 FALSE
3CX Desktop App 19.0.8 TRUE
5EClient None
Abstract None
Account Surfer None
Advanced REST Client https://github.com/advanced-rest-client/arc-electron ^17.0.0 TRUE
Aedron Shrine None
Aeon https://github.com/leinelissen/aeon 23.2.0 TRUE
@ao-kenji
ao-kenji / GXemul-luna88k-guide-ja.md
Last active March 19, 2025 15:54
OpenBSD/luna88kをGXemul上で動かすためのガイドです。

OpenBSD/luna88k on GXemul クイックガイド

Anders Gavare さん作のエミュレータ GXemul で OpenBSD/luna88k が動作し始めたので、とりあえず試してみたい方向けのガイドを記載します。

GXemulとは?

LUNA-88Kを含む様々なマシンのエミュレーションができるソフトです。

詳しくは本家Webページ http://gavare.se/gxemul/ を参照してください。

GXemulのビルド

@idelem
idelem / titleUrlMarkdownClip.js
Last active November 1, 2025 23:45 — forked from bradleybossard/titleUrlMarkdownClip.js
Bookmarklet to copy current page title and url in Markdown format to clipboard, like [title](url) - Usual for posting links to resources in README.md files
javascript:(function() {
function copyToClipboard(text) {
if (window.clipboardData && window.clipboardData.setData) {
/*IE specific code path to prevent textarea being shown while dialog is visible.*/
return clipboardData.setData("Text", text);
} else if (document.queryCommandSupported && document.queryCommandSupported("copy")) {
var textarea = document.createElement("textarea");
textarea.textContent = text;
@probonopd
probonopd / Wayland.md
Last active January 12, 2026 21:47
Think twice about Wayland. It breaks everything!

Think twice before abandoning X11. Wayland breaks everything!

tl;dr: Wayland is not "the future", it is merely an incompatible alternative to the established standard with a different set of priorities and goals.

Wayland breaks everything! It is binary incompatible, provides no clear transition path with 1:1 replacements for everything in X11, and is even philosophically incompatible with X11. Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating e

@SwagDevOps
SwagDevOps / icy-notify.lua
Last active September 30, 2025 13:00
MPV notifications based on icy-title and icy-name
-- ~/.config/mpv/scripts/icy-notify.lua
local utils = require 'mp.utils'
local msg = require 'mp.msg'
local DEBUG = false
-- table ----------------------------------------------------------------------
table.union = function(a, b)
local result = {}

Note

Apple will reject apps that are using private url schemes (Ugh, Apple....) if they are pretty much obvius. Some apps are rejected and others are not, so, be aware of this issue before implementing any of those URL's in your app as a feature.

Updates

  • [UPDATE 4] iOS 10 update: apparently settings now can be reached using App-Pref instead of prefs
  • [UPDATE 3] For now you just can use url schemes to open your apps's settings with Swift 3.0 (Xcode 8). I'll keep you informed when OS preferences can be reached
  • [UPDATE 2] The openURL() method of UIApplication is now deprecated. You should use application(_:open:options:) instead
  • [UPDATE 1] Not yet tested in iOS 10. It will fail because of policies changes in URL scheme handling.