Skip to content

Instantly share code, notes, and snippets.

@en4rab
en4rab / CF-U1-BIOS.md
Last active March 4, 2026 12:46
Recovering the BIOS password from a Panasonic CF-U1 mk2 (AMI Aptio UEFI)

Recovering the BIOS password from a Panasonic CF-U1 mk2 (AMI Aptio UEFI)

A mess of my own making

While messing with a CF-U1 handheld PC that I bought off ebay I managed to mess up the BIOS and it seems it reverted to previous settings which included an unknown BIOS password, it would however still boot into windows. Since I could still boot windows I was able to dump the bios flash using AFUWINGUI.EXE the version I used was 3.09.03.1462 which is available here:
https://www.ami.com/support-other/ Click on Aptio 4 AMI Firmware Update Utility

@jirutka
jirutka / apk-chroot-installation-demo.sh
Created October 8, 2017 20:34
This is a demo script used at Alpine Linux booth at LinuxDays 2017 to demonstrate how is apk-tools and Alpine Linux awesome. Recorded output: https://asciinema.org/a/141360
#!/bin/sh
# vim: set ts=4:
#
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/
#
set -eu
APK_KEY_URI='https://alpinelinux.org/keys/alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub'
APK_KEY_SHA1='3af08548ef78cfdedcf349880c2c6a1a48763a0e'
@jirutka
jirutka / LICENSE
Last active August 9, 2022 09:39
Generate a new GPG key pair in a temporary GPG Home and export it to a file. It can run completely unattended, without prompting for a passphrase.
The MIT License
Copyright 2018-2019 Jakub Jirutka <jakub@jirutka.cz>.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@jirutka
jirutka / git-edit
Last active April 4, 2018 16:03
git edit – start interactive rebase to edit the specified commit.
#!/bin/sh
# vim: set ts=4:
set -e
if [ $# -eq 0 ] || [ "$1" = '-h' ]; then
cat >&2 <<-EOF
Usage: git edit <tree-ish>
git edit [-h]
Start interactive rebase to edit the specified commit.
@jirutka
jirutka / README.adoc
Last active May 6, 2023 17:38
Script for periodical synchronization of data (e.g. mirrors) using rsync

Files

  • /etc/periodic/15min/sync-mirror-alpine → /usr/local/bin/sync-mirror (symlink)

  • /etc/sync-mirror.d/alpine.conf

  • /usr/local/bin/sync-mirror

  • /var/www/mirrors/alpine

@jirutka
jirutka / git-deploy.sh
Created September 11, 2016 12:55
Script for deploying files to git, for example building documentation and deploying to gh-pages branch on GitHub. https://github.com/jirutka/rake-jekyll#deploy-to-git
#!/bin/sh
# vim: set ts=4:
set -e
: ${DEPLOY_BRANCH:="gh-pages"}
: ${SOURCE_BRANCH:="master"}
die() {
# bold red
@mbrehin
mbrehin / msoffice_ooffice_pdf_diffs_with_git.md
Last active February 27, 2026 20:16
Microsoft Office, Open Office, PDF diffs with Git

Sometimes when working with Git you'd like to commit binary files.
But those files won't have clean comparisons with Git standard diff command.
Fortunately Git is a great tool that comes with a lot of possibilities…

MS Office

If, as a developer, you are under company constraints and must use MS Office,
you'll encounter some issues when trying to diff MS Office files.

Maybe you're asking yourself: what's the problem with that?

@mpetroff
mpetroff / index.html
Created March 28, 2015 02:29
Bootstrap Navbar without jQuery
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Navbar Template for Bootstrap</title>