This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
@echo "WARNING: Installation requires your sudo access, please enter your password when prompted." | |
@echo " ... press Enter to continue... " | |
@read | |
curl -LOs https://src.fedoraproject.org/repo/pkgs/bash-completion/bash-completion-1.3.tar.bz2/a1262659b4bbf44dc9e59d034de505ec/bash-completion-1.3.tar.bz2 | |
curl -LOs https://raw.githubusercontent.com/Homebrew/formula-patches/c1d87451da3b5b147bed95b2dc783a1b02520ac5/bash-completion/bug-740971.patch | |
curl -LOs https://gist.github.com/rckrdstrgrd/c8ab333b032f0e5cc3c2204eee7f8204/raw/abf1dbce62239cd2629f193b889726d98e19a646/osx.patch | |
curl -LOs https://gist.github.com/rckrdstrgrd/c8ab333b032f0e5cc3c2204eee7f8204/raw/abf1dbce62239cd2629f193b889726d98e19a646/SHA256SUMS | |
shasum -c SHA256SUMS || (@echo "There was an error downloading one or more files... please try again."; exit 1) | |
tar -xzvf bash-completion-1.3.tar.bz2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Register a mDNS/DNS-SD alias name for your computer using the Avahi daemon | |
After=network.target auditd.service | |
[Service] | |
EnvironmentFile=-/etc/avahi/avahi-alias.conf | |
ExecStart=/usr/local/bin/avahi-alias $HOST_1 $HOST_2 $HOST_3 $HOST_4 $HOST_5 | |
Restart=always | |
[Install] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python2 | |
''' | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
gittouch() { | |
touch -ch -d "$(git log -1 --format=%ci $1 | cut -d ' ' -f 1,2)" $1 | |
} | |
git ls-files | | |
while IFS= read -r file; do | |
gittouch "$file" | |
done |