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 August 27, 2024 23:34
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 March 5, 2025 13:13 — 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;

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.
BIG iOS URL SCHEME LIST
HAD TO MAKE A DROPBOX FILE BECAUSE THIS LIST WAS TOO LONG TO POST IN THE COMMENTS OR NOT MAKE THE WORKFLOW APP TAKE FOREVER TO READ IT.
☠JAILBREAK/SYSTEM APPS
--------------------------
activator://
itms-apps://
itms-services://
@phansch
phansch / yardoc_cheatsheet.md
Last active April 3, 2025 18:35 — forked from chetan/yardoc_cheatsheet.md
Improved YARD cheatsheet