This file contains 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
/!\ This doesn't work sadly :( | |
Download image from https://getfedora.org/en/cloud/download/, get General Purpose OpenStack qcow2 image. | |
Convert using qemu-img (install qemu): qemu-img convert -O vmdk fedora.qcow2 fedora.vmdk | |
Make user-data iso on a Linux machine: printf "#cloud-config\npassword: password\nchpasswd: { expire: False }\nssh_pwauth: True\n" > user-data; genisoimage -output seed.iso -volid cidata -joliet -rock user-data |
This file contains 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/bash | |
# | |
# Git pre-commit hook to find unused Java imports. | |
# | |
# Install: | |
# curl https://gist.githubusercontent.com/qwertzguy/3df69c05ed9c5bfd95b373a5a61e769c/raw/pre-commit > .git/hooks/pre-commit && chmod 755 .git/hooks/pre-commit | |
exec 1>&2 | |
modified_files=$(git diff --cached --name-only --diff-filter=ACM -- *.java) |