Skip to content

Instantly share code, notes, and snippets.

View iandol's full-sized avatar
👾
typing away...

Ian Max Andolina iandol

👾
typing away...
View GitHub Profile
@iandol
iandol / change-machine-id.md
Created August 2, 2025 09:56 — forked from dllud/change-machine-id.md
How to change a cloned GNU/Linux machine's identity

How to change a cloned GNU/Linux machine's identity

You've just finished installing and configuring all those packages on your first machine. Now it's just a matter of cloning the hard drive into all the others and changing the hostname. Right?

Well, not so easy. If you wish to avoid conflicts on your network, backups and elsewhere, i.e. if you wanna end up with a unique fingerprint for each machine, you must go a few steps further.

Here follows a checklist to help you out. It's aimed at Debian and derivates (e.g. Ubuntu), though other distros won't be much different.

The old way: edit /etc/hostname and /etc/hosts

@iandol
iandol / convertOM2OSXTags.sh
Created July 27, 2018 01:07 — forked from scottstanfield/convertOM2OSXTags.sh
This script converts OpenMeta to OS X Mavericks tags.
#!/bin/bash
#
# This script converts OpenMeta to OS X Mavericks tags.
#
# http://code2k.net
#
# Copyright © 2013 CODE2K:LABS. All Rights Reserved.
mdfind "kMDItemOMUserTags == *" -onlyin "." | while IFS= read -r file; do
echo "$file"
@iandol
iandol / bookends_to_bibtex.scpt
Last active February 24, 2019 05:48 — forked from naupaka/bookends_to_bibtex.scpt
Applescript to export selected groups in the Bookends bibliography management software to bibtex files. This has been modified to write to file for batches of references which stops Bookends crashes. Also I've added a script (fixCase.rb) to enforce the case of keywords using {}. These should both be placed on the path, then called using: `booken…
#!/usr/bin/osascript
(*
Script written by Naupaka Zimmerman
March 17, 2017
MIT License
Copyright (c) 2017 Naupaka Zimmerman