mkdir -m 750 WKD-PATH
gpg-wks-server --directory WKD-PATH --install-key KEY-ID EMAIL-ADDRESS
Upload to https://example.com/.well-known/openpgpkey/
Create a self-signed certificate:
- Open Keychain Access.
- Choose Keychain Access > Certificate Assistant > Create Certificate ...
- Enter a name 4.Set 'Certificate Type' to 'Code Signing'
Then, your command should look like this, if your certificate name is my-new-cert
:
codesign -fs my-new-cert /Applications/Utilities/Boot\ Camp\ Assistant.app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DAYS = %w[Sunday Monday Tuesday Wednesday Thursday Friday Saturday].freeze | |
def next_day(current_day) | |
DAYS.at((DAYS.find_index(current_day) + 1) % DAYS.length) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warning; | |
use GD; | |
$images = "/path/to/images"; | |
$header = "Content-type: multipart/x-mixed-replace; boundary=ddc072ce-3b52-4704-9fef-abf661a13d43\n"; | |
$boundary = "\n--ddc072ce-3b52-4704-9fef-abf661a13d43\n"; | |
$giftype = "Content-type: image/gif\n\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker builder prune |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install pg -- --with-pg-include=/opt/homebrew/opt/libpq/include --with-pg-lib=/opt/homebrew/opt/libpq/lib | |
bundle exec rails new . -n app_name -d postgresql -j esbuild -c tailwind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const scripts = document.getElementsByTagName("script"), | |
script_content = scripts[scripts.length - 1].innerHTML, | |
enc = new TextEncoder(), | |
data = enc.encode(script_content); | |
crypto.subtle.digest('SHA-256', data).then(function(val) { | |
const digest = ["sha256", _arrayBufferToBase64(val)].join("-"); | |
console.log(`The digest for your script is: ${digest}`); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[sdl] | |
autolock=true | |
[dosbox] | |
title=Windows 95 | |
memsize=256 | |
captures=capture | |
[video] | |
vmemsize=8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[sdl] | |
autolock=true | |
[dosbox] | |
title=Windows 98 | |
memsize=256 | |
captures=capture | |
[video] | |
vmemsize=8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[sdl] | |
autolock=true | |
mouse emulation=integration | |
[dosbox] | |
title=Windows for Workgroups 3.11 | |
memsize=256 | |
captures=capture | |
[dos] |
NewerOlder