Skip to content

Instantly share code, notes, and snippets.

View trytuna's full-sized avatar

Timo Schrappe trytuna

  • TU Dortmund
  • Germany
View GitHub Profile
# https://github.com/churchers/vm-bhyve/wiki
pkg install vm-bhyve grub2-bhyve
zfs create zroot/vm
echo 'vm_enable="YES"' >> /etc/rc.conf
echo 'vm_dir="zfs:zroot/vm"' >> /etc/rc.conf
vm init
cp /usr/local/share/examples/vm-bhyve/* /zroot/vm/.templates/
vm switch create public
vm switch add public em0
@trytuna
trytuna / keepmealive.plist
Last active March 28, 2017 12:45
Prevent external USB HDD from spinning down
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.example.keepmealive</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/touch</string>
<string>/Volumes/MiniServer/keepmealive</string>
@trytuna
trytuna / .block
Last active June 22, 2018 08:12
Film Flowers Petal Starter Code
license: gpl-3.0
@trytuna
trytuna / .block
Last active June 22, 2018 13:58
Film Flowers, Single Starter
license: gpl-3.0
@trytuna
trytuna / .block
Last active June 22, 2018 12:19
Film Flowers, Single Scaled Starter
license: gpl-3.0
@trytuna
trytuna / .block
Last active June 22, 2018 13:21
Film Flowers, Single Update Starter
license: gpl-3.0
@trytuna
trytuna / .block
Created June 22, 2018 14:01
Film Flowers, Single Update Complete
license: gpl-3.0
@trytuna
trytuna / .block
Last active June 22, 2018 14:06
Film Flowers, Single Update Complete
license: gpl-3.0
@trytuna
trytuna / .block
Created June 22, 2018 14:06
Film Flowers, Single Update Complete
license: gpl-3.0
@trytuna
trytuna / hosts.yml
Last active June 26, 2018 15:19 — forked from phips/hosts.yml
Ansible setting of hostname from inventory, but ignoring IP addresses
- name: Ensure hostname set
hostname: name={{ inventory_hostname }}
when: inventory_hostname is not match('(\d{1,3}\.){3}\d{1,3}')
- name: Ensure hostname is in /etc/hosts
lineinfile:
dest=/etc/hosts
regexp="^{{ ansible_default_ipv4.address }}.+$"
line="{{ ansible_default_ipv4.address }} {{ ansible_fqdn }} {{ ansible_hostname }}"