Skip to content

Instantly share code, notes, and snippets.

@Zrubi
Zrubi / .preprocess.conf
Created Jul 29, 2020
My very basic Photo pre-processing script
View .preprocess.conf
work_dir = /home/user/tmp/import
<model>
<default>
prefix = OOO_00
author = Z
</default>
@Zrubi
Zrubi / qubes-display
Created Jul 27, 2020
This tool is used to help switching pre-defined display settings
View qubes-display
#!/bin/bash
if [[ -z "$1" ]] || [[ "$1" == "--help" ]]
then
echo ""
echo "This tool is used to help switching pre-defined display settings"
echo ""
echo -e "Usage:\t$0 <Name>"
echo ""
exit
View imm-https-enable
#!/bin/sh
# This script going to fix the IMM (v1) web access,by enabling HTTPS.
# Reference: https://support.lenovo.com/hu/en/solutions/ht504331
# First, you have to download and install the IBM Advanced Settings Utility.
# Then adjust your hostname, username and password. The script assuming factory defaults.
# self signed cert generation:
/opt/lenovo/toolscenter/asu/asu64 set IMM.https_service enable --host=192.168.70.125 --user=USERID --password=PASSW0RD
View create-esxi-image
#!/bin/bash
# This script prepare a bootable pendrive from a VMware ESXi iso image.
# the official install steps are documented here:
# https://docs.vmware.com/en/VMware-vSphere/6.7/vsphere-esxi-67-installation-setup-guide.pdf
# Use at Your own risk!
ISO=$1
DEVICE=$2
View uInitrd
#!/bin/sh
# uInitrd generator for U-Boot
# place this file to /etc/initramfs/post-update.d/ directory,
# and make it executable
# reference: https://forum.doozan.com/read.php?2,12096
uInitrd="/boot/uInitrd"
die () {
View uImage
#!/bin/sh
# uImage generator for U-Boot
# place this file to /etc/kernel/postinst.d/ directory,
# and make it executable
# reference: https://forum.doozan.com/read.php?2,12096
uImage="/boot/uImage"
die () {
View geteltorito.pl
#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Std;
# geteltorito.pl: a bootimage extractor
# Script that will extract the first El Torito bootimage from a
# bootable CD image