Skip to content

Instantly share code, notes, and snippets.

@nodswal
nodswal / luks-encrypt-in-place.sh
Created August 13, 2024 19:14 — forked from samdoran/luks-encrypt-in-place.sh
Encrypt a physical volume using LUKS without erasing the drive.
#!/bin/bash
# Encrypt existing hard drive in place.
# Requires a second physical drive to temporarily store data. This drive will be erased.
# This script is meant to be run on Clonezilla 1.2.9-19 or later.
# The cryptsetup syntax is different in Clonezilla than in Red Hat.
# --- Variables --- #
@nodswal
nodswal / parse_lmgrd.py
Created February 2, 2022 23:29 — forked from grigory-rechistov/parse_lmgrd.py
lmgrd log file parser
#!/usr/bin/env python
# The script to parse a lmgrd log and give some license usage metrics
#
# Copyright (c) 2014 Grigory Rechistov <grigory.rechistov@phystech.edu>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,