Skip to content

Instantly share code, notes, and snippets.

Gaspard van Koningsveld qwertzguy

  • California, USA
Block or report user

Report or block qwertzguy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
qwertzguy / pre-commit
Last active Apr 25, 2018
Git pre-commit hook to find unused Java imports
View pre-commit
# Git pre-commit hook to find unused Java imports.
# Install:
# curl > .git/hooks/pre-commit && chmod 755 .git/hooks/pre-commit
exec 1>&2
modified_files=$(git diff --cached --name-only --diff-filter=ACM -- *.java)
qwertzguy / gist:91397dd42bcc72d28750
Last active Aug 29, 2015
Make Fedora cloud-vm run on VirtualBox
View gist:91397dd42bcc72d28750
/!\ This doesn't work sadly :(
Download image from, 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
You can’t perform that action at this time.