Skip to content

Instantly share code, notes, and snippets.

View stopfstedt's full-sized avatar

Stefan Topfstedt stopfstedt

View GitHub Profile
@AndreaCovelli
AndreaCovelli / lenovo-uefi-kek-fwupd-fix.md
Last active June 16, 2026 08:57
Fix for Lenovo UEFI KEK CA update failing on fwupd

Fixing fwupdmgr UEFI KEK CA Permission Denied on Lenovo AMD Systems

When upgrading firmware on Linux (e.g., Ubuntu 26.04) on certain Lenovo AMD motherboards (like the ThinkCentre M715q), fwupdmgr may fail during a KEK CA database update.

The Error

Running fwupdmgr upgrade --force fails with the following message:

Upgrade KEK CA from 2011 to 2023?
@darrenpmeyer
darrenpmeyer / autobuild-openconnect-7-ubuntu.sh
Last active June 10, 2020 16:22
Autobuild script for OpenConnect 7 (Ubuntu 14/15/16 trusty/vivid/xenial)
#!/usr/bin/env bash
## NOTE! OpenConnect is now on Version 8, and this is only for historical use
## See https://gist.github.com/darrenpmeyer/1a56d0d4817352998fe9d7cfe5a79684 for new script
oc_ver="7.08"
echo "Autobuild OpenConnect $oc_ver"
echo " "
echo "This script uses apt-get and make install via sudo rights"
echo "To simplify this, we're going to use sudo -v to pre-authenticate you"
@jrjohnson
jrjohnson / pathToIlios3.md
Last active August 29, 2015 14:03
What it will look like getting to Ilios3

#Ilios 3

##How do we know when we get there?

###Whats included

  • Seperate Backend and Frontend Archetecture.
  • Backend is a collection of models and a REST API written in Symfony
  • Controllers on the backend handle cron tasks, the api, and server side functions The backend consolidates and serves up the assets for the frontend
  • Fronend is Emberjs single page application backed by REST API and ember-data]
  • Unit tests covering 100% of the API (phpunit) and 100% of the fronend (qunit)
@jrjohnson
jrjohnson / vagrantsudo.sh
Created May 23, 2014 18:21
Run this to make vagrant run without asking for sudo password
#!/bin/bash
# Script for placing sudoers.d files with syntax-checking
# Making a temporary file to contain the sudoers-changes to be pre-checked
TMP=$(mktemp -t vagrant_sudoers)
cat /etc/sudoers > $TMP
cat >> $TMP <<EOF
# Allow passwordless startup of Vagrant when using NFS.
Cmnd_Alias VAGRANT_EXPORTS_ADD = /bin/bash -c echo '*' >> /etc/exports
@eladc
eladc / box-linux.sh
Last active July 13, 2023 11:43
Mount your Box.com Account Using davfs2
#!/bin/bash
## davfs2 installation and Box.com account configuration script for Linux
## Tested on Ubuntu, Fedora and OpenSuse
## Update 1.032615
## This script must be run as root
if [ ! $UID = 0 ]; then
echo "This script needs super user privileges to run"
echo "run it againg using sudo or login as root"
exit 1
@Trott
Trott / gist:7271573
Created November 1, 2013 20:37
Using nc to proxy SSH through an intermediary server (here called intermediary.example.com). Put this in ~/.ssh/config and `ssh target` will do the trick.
Host target
ProxyCommand ssh -q intermediary.example.com nc target.example.com 22