Skip to content

Instantly share code, notes, and snippets.

View irik77587's full-sized avatar

Ishrak irik77587

View GitHub Profile
@irik77587
irik77587 / README.TXT
Last active July 26, 2024 04:21
How to enable Secure Boot in systemd-boot self-signed not Debian-signed
Special thanks to https://blog.hansenpartnership.com/the-meaning-of-all-the-uefi-keys/ for all the explainations
If you want to keep microsoft keys, you will need to backup db and dbx before entering Setup Mode (Not shown here)
Later add those to db.esl just how I added mok.esl and debian_uefi_ca.esl. Steps for dbx is not shown here.
Enter into Setup Mode from fwsetup/UEFI (GRUB 2 command/Esc)
downloaded debian UEFI CA ROOT certificate
collected mok.pub from /var/lib/dkms/
/* add zswap to cmdline for systemd-boot since I have SSD */
echo "zswap.enabled=1" > /usr/lib/kernel/cmdline
@irik77587
irik77587 / app.js
Last active October 3, 2022 08:10
treat html file as handlebars in express
var express = require('express');
var app = express();
// view engine setup
app.set('views', path.join(__dirname, 'views'));
// app.set('view engine', 'hbs');
// To use a different extension (i.e. html) for your template files:
app.set('view engine', 'html');