Skip to content

Instantly share code, notes, and snippets.

View jsm84's full-sized avatar

Josh Manning jsm84

  • Red Hat
  • Raleigh, NC
View GitHub Profile
@sharpdressedcodes
sharpdressedcodes / hp-bios-update.md
Created December 10, 2022 03:02 — forked from eNV25/hp-bios-update.md
Instructions to Update the BIOS/UEFI for an HP Laptop on Linux

Instructions to Update the BIOS/UEFI for an HP Laptop on Linux

The easiest way to should be to use [HP PC HARDWARE DIAGNOSTICS 4-IN-1 USB KEY][hp-usb-key]. You should use this option if your BIOS/UEFI does not have a "BIOS update" option.

Unfortunately HP's automatic tool only runs on Windows, but it is possible to make a USB key formatted manually by running the self-extracting executable on Wine. You cannot simply extract the executable using 7-zip because the executable needs to do some file generation.

@eNV25
eNV25 / hp-bios-update.md
Last active October 13, 2025 07:50
Instructions to Update the BIOS/UEFI for an HP Laptop on Linux

Instructions to Update the BIOS/UEFI for an HP Laptop on Linux

To update the BIOS/UEFI firmware requires HP-specific files in the EFI System Partition, also referred to as ESP.

On a Linux system, the ESP is typically mounted on /boot/efi or /efi. Whithin you should also find a EFI directory, e.g. /boot/efi/EFI or /efi/EFI. This article assumes that the ESP is mounted on /efi and that the /efi/EFI directory exists. You can replace that with the mount point your system uses.

The HP-specific files are located in /efi/EFI/HP or /efi/EFI/Hewlet-Packard. These files typically come preinstalled in HP Windows PCs. If you have these files you could skip Install HP-specific files.

@Goddard
Goddard / name-cheap-dynamic-dns.sh
Last active April 4, 2025 08:20
auto update ip script for dynamic dns
curl -i -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET https://dynamicdns.park-your-domain.com/update?host=@&domain=[domain]&password=[update-password]&ip=[local-ip]
operator-sdk scorecard --cr-manifest ./deploy/crds/io_v1alpha1_jaeger_cr.yaml --csv-path ./deploy/bundle/jaeger.v1.8.2.clusterserviceversion.yaml
@sahilsk
sahilsk / instance_filtering.md
Last active March 20, 2025 20:13
boto3, python, aws, instance filtering

Source

Russell Ballestrini

– Filtering AWS resources with Boto3

This post will be updated frequently when as I learn more about how to filter AWS resources using Boto3 library.

Filtering VPCs by tags

@jessedearing
jessedearing / 0-README.md
Last active November 14, 2023 15:02
@sadserver's tweets in fortune file format

Description

This is all of @sadserver's tweets packaged in a file ready to be converted into a .dat file for the fortune program.

Installing

  1. Install fortune if your distro doesn't already have it.
  2. Convert this into a fortune file run strfile -c % sadserver_tweets sadserver_tweets.dat
  3. Copy the files into your fortune directory cp sadserver_tweets sadserver_tweets.dat /usr/local/share/games/fortunes. Note that I'm on OS X so the file path reflects that. Linux is going to be something like /usr/share/games/fortunes.
  4. Add a line to your shell's profile/rc file. I.e. fortune sadserver_tweets
  5. Laugh/cry when you log into your desktop/servers.
@subfuzion
subfuzion / curl.md
Last active October 11, 2025 00:58
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@Changaco
Changaco / btrfs-undelete
Last active September 13, 2025 07:45
btrfs-undelete
#!/bin/bash
# btrfs-undelete
# Copyright (C) 2013 Jörg Walter <info@syntax-k.de>
# This program is free software; you can redistribute it and/or modify it under
# the term of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or any later version.
if [ ! -b "$1" -o -z "$2" -o -z "$3" ]; then
echo "Usage: $0 <dev> <file/dir> <dest>" 1>&2
echo
@Uradamus
Uradamus / NWN Linux Install Notes.md
Last active September 18, 2024 22:01
Some notes on getting the native version of NWN installed on Linux.

This uses the version available through GOG.com. Thanks go to TheCycoONE from the Arch Linux and GOG communities who's AUR package and forums posts were instrumental in my discovering how to finally install the GOG version of Neverwinter Nights on Linux.

First step is to ensure you have the necessary dependencies and utilities installed:

  • elfutils
  • glu
  • ia-32-libs (only if you are on a 64bit distro)
  • innoextract
  • libgl
  • libstdc++5
@shamil
shamil / mount_qcow2.md
Last active October 14, 2025 23:09
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8