Skip to content

Instantly share code, notes, and snippets.

@mxey
mxey / Vagrantfile
Created December 5, 2018 11:39
Vagrantfile disable audio
machine.vm.provider "virtualbox" do |v|
# Prevent VirtualBox from interfering with host audio stack
v.customize ["modifyvm", :id, "--audio", "none"]
end
(
set -e -x
aptly mirror update -max-tries=5 "upstream-stretch"
aptly repo import "upstream-stretch" "stretch" Name
aptly publish update "stretch" "stretch"
) 2>&1 | ts >> "/var/log/aptly/stretch.log"
./diff_stringify_facts.sh host1.example.com host2.example.com
host1.example.com
I, [2017-09-08T15:34:29.591598 #84032] INFO -- : Catalogs compiled for host1.example.com
I, [2017-09-08T15:34:29.699115 #84032] INFO -- : Diffs computed for host1.example.com
I, [2017-09-08T15:34:29.699145 #84032] INFO -- : No differences
host2.example.com
I, [2017-09-08T15:34:29.591598 #84032] INFO -- : Catalogs compiled for host2.example.com
I, [2017-09-08T15:34:29.699115 #84032] INFO -- : Diffs computed for host2.example.com
I, [2017-09-08T15:34:29.699145 #84032] INFO -- : No differences
@mxey
mxey / diff_stringify_facts.sh
Last active September 9, 2017 16:23
Testing the effect of Puppet stringify_facts with octocatalog-diff
#!/bin/bash
set -e -u -o pipefail
mkdir -p facts
for hostname in "$@"; do
echo "${hostname}"
fact_file="facts/${hostname}.json"
(
@mxey
mxey / hosts
Created February 4, 2016 13:48
$ ansible-playbook -i hosts playbook.yml -vvv
No config file found; using defaults
1 plays in playbook.yml
PLAY ***************************************************************************
TASK [ping] ********************************************************************
task path: /Users/mga/Documents/Arbeitsmittel/Ansible-Bug mit ansible_host Template/playbook.yml:4
<osf4-management1.osf.credativ.lan> ESTABLISH SSH CONNECTION FOR USER: None
<osf4-management1.osf.credativ.lan> SSH: EXEC ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/mga/.ansible/cp/ansible-ssh-%h-%p-%r -tt osf4-management1.osf.credativ.lan '( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454593572.41-8142288545326 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454593572.41-8142288545326 )" )'
/etc/http/conf/http.conf:
file:
- managed
- source: salt://apache/http.conf
- user: root
- group: root
- mode: 644
- template: jinja
- context:
custom_var: "override"
#!/bin/sh
. /etc/rc.subr
name=ghost
rcvar=ghost_enable
command="/opt/ghost/index.js"
command_interpreter="/usr/local/bin/node"
ghost_user="ghost"
layout title date comments categories published
post
How do I even Minecraft?
2013-11-11 10:32
true
Uncategorized
Forgot to edit categories
false

You ever heard of Minecraft? Launcher

<?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>net.mxey.homebrew.upgrade</string>
<key>ProgramArguments</key>
<array>
<string>/Users/mxey/bin/upgrade-homebrew-on-ac</string>
</array>
mxey@mxeybook ~ % pmset -g assertions
23.10.13 11:33:45 MESZ
Assertion status system-wide:
BackgroundTask 0
PreventDiskIdle 0
ApplePushServiceTask 0
UserIsActive 1
PreventUserIdleDisplaySleep 0
InteractivePushServiceTask 0
PreventSystemSleep 0