Skip to content

Instantly share code, notes, and snippets.

View gasinvein's full-sized avatar

Sergei von Alis gasinvein

  • Tel Aviv, Israel
View GitHub Profile
#! /usr/bin/env python3
'''
Register a mDNS/DNS-SD alias name for your computer using the Avahi daemon
This script will register an alternate CNAME alias besides your hostname,
which could be useful for ex. when serving several http virtual hosts to
your ffriends on the local network and you don't want to make them configure
their /etc/hosts.
Why a CNAME? You could also publish your current address with avahi-publish-address
@gasinvein
gasinvein / create-osx-iso.sh
Last active July 12, 2018 09:35 — forked from julianxhokaxhiu/create-iso.sh
Simple bash script to create a Bootable ISO from macOS Sierra Install Image from Mac App Store
#!/bin/bash -e
#
# Credits to fuckbecauseican5 from https://www.reddit.com/r/hackintosh/comments/4s561a/macos_sierra_16a238m_install_success_and_guide/
# Adapted to work with the official image available into Mac App Store
#
# Enjoy!
SOURCE_APP="$1"
DEST_IMAGE="$2"
if ! [ -d "$SOURCE_APP" ]; then