I hereby claim:
- I am 04n0 on github.
- I am 04n0 (https://keybase.io/04n0) on keybase.
- I have a public key ASDOHtLIOe-Z8jpW_7VR2wkyAL3g367wCfkp3DbJBA7d0go
To claim this, I am signing this object:
| [Unit] | |
| Description=ansible-workshop | |
| After=network.target | |
| [Service] | |
| ExecStart=/bin/sh -c '/usr/bin/python3 /opt/ansible-workshop/pycon.py >> /opt/ansible-workshop/pycon.log 2>&1' | |
| Restart=on-abort | |
| WorkingDirectory=/opt/ansible-workshop/ | |
| User=workshop | |
| RemainAfterExit=yes |
| user nginx; | |
| pid /var/run/nginx.pid; | |
| worker_processes {{ ansible_processor_vcpus }}; | |
| worker_rlimit_nofile 409600; | |
| events { | |
| worker_connections {{ nginx_max_conns }}; | |
| multi_accept on; | |
| } |
| #!/bin/sh | |
| date > /etc/box_build_time | |
| OSX_VERS=$(sw_vers -productVersion | awk -F "." '{print $2}') | |
| # Set computer/hostname | |
| COMPNAME=vagrant-macos | |
| scutil --set ComputerName "${COMPNAME}" | |
| scutil --set HostName "${COMPNAME}" | |
| # Packer passes boolean user variables through as '1', but this might change in |
| #!/bin/sh | |
| # This script adds a Mac OS Launch Daemon, which runs every time the | |
| # machine is booted. The daemon will re-detect the attached network | |
| # interfaces. If this is not done, network devices may not work. | |
| PLIST=/Library/LaunchDaemons/com.github.04n0.osx-vm-templates.detectnewhardware.plist | |
| cat <<EOF > "${PLIST}" | |
| <?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"> |
I hereby claim:
To claim this, I am signing this object:
| ------------------------------------------------------------------------- | |
| USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor) Dec. 29, 2005 | |
| Compiled by Eric Pement - pemente[at]northpark[dot]edu version 5.5 | |
| Latest version of this file (in English) is usually at: | |
| http://sed.sourceforge.net/sed1line.txt | |
| http://www.pement.org/sed/sed1line.txt | |
| This file will also available in other languages: | |
| Chinese - http://sed.sourceforge.net/sed1line_zh-CN.html |
| import os | |
| import re | |
| def zsh_to_fish(cmd): | |
| return (cmd.replace('&&', '; and ') | |
| .replace('||', '; or ')) | |
| def is_valid_fish(cmd): |