Skip to content

Instantly share code, notes, and snippets.

View Sparticuz's full-sized avatar

Kyle McNally Sparticuz

View GitHub Profile
@Sparticuz
Sparticuz / encrypt-pdf.ts
Created July 21, 2023 18:47
encrypt-pdf
/* eslint-disable no-await-in-loop */
import { writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import type { Readable } from "node:stream";
import { encrypt, type EncryptOptions } from "node-qpdf2";
import { getFileFromS3, parseS3Uri, uploadFilePathToS3 } from "./aws.s3.js";
@Sparticuz
Sparticuz / compose\lutris.yml
Last active September 20, 2022 13:11
lutris
#########################
# retroarch.yml
#########################
#
# This container runs RetroArch
services:
####################
lutris:
depends_on:
declare interface Headers {
name: string;
value: string;
}
declare interface CommonHeaders {
date?: string;
from?: string[];
messageId?: string;
subject?: string;
@Sparticuz
Sparticuz / index.html
Last active April 4, 2017 13:59 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
FUNCTION lf AS C (count AS N = 1)
dim return as c = ""
while count
*concat(return,chr(10))
count = count - 1
end while
lf = return
END FUNCTION
function hmacsha256 as b (message as c, key as b)
# START http://boxstarter.org/package/nr/url?
$Boxstarter.RebootOk=$true
$Boxstarter.AutoLogin=$true
# Windows Stuff
Disable-MicrosoftUpdate
Disable-BingSearch
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -DisableOpenFileExplorerToQuickAccess -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableShowRecentFilesInQuickAccess -EnableShowFrequentFoldersInQuickAccess -EnableExpandToOpenFolder
Update-ExecutionPolicy RemoteSigned