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
2017/02/16 16:13:41 [INFO] Packer version: 0.12.2 | |
2017/02/16 16:13:41 Packer Target OS/Arch: windows amd64 | |
2017/02/16 16:13:41 Built with Go Version: go1.7.4 | |
2017/02/16 16:13:41 Using internal plugin for parallels-iso | |
2017/02/16 16:13:41 Using internal plugin for parallels-pvm | |
2017/02/16 16:13:41 Using internal plugin for profitbricks | |
2017/02/16 16:13:41 Using internal plugin for amazon-ebs | |
2017/02/16 16:13:41 Using internal plugin for azure-arm | |
2017/02/16 16:13:41 Using internal plugin for hyperv-iso | |
2017/02/16 16:13:41 Using internal plugin for null |
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
{ | |
"variables": { | |
"client_id": null, | |
"client_secret": null, | |
"subscription_id": null | |
}, | |
"builders": [ | |
{ | |
"type": "azure-arm", | |
"subscription_id": "{{user `subscription_id`}}", |
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
PACKER_LOG=1 PACKER_LOG_PATH=./packer-build-using-except-works.log packer build -only=docker packer-with-except.json | |
PACKER_LOG=1 PACKER_LOG_PATH=./packer-build-using-only-skips-the-post-provisioner.log packer build -only=docker packer-with-only.json |
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
msg = DNSMessage(qdn, qstate.qinfo.qtype, qstate.qinfo.qclass, PKT_QR | PKT_AA) | |
msg.answer.append("{} 300 IN A {}".format(qdn, ipv4)) |
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
msg = DNSMessage(qdn, qstate.qinfo.qtype, qstate.qinfo.qclass, PKT_QR) | |
msg.authority.append("{}.<somedomain>. 60 IN NS {}.<somedomain>".format(b32, decoded)) | |
msg.additional.append("{}.<somedomain>. 60 IN A {}".format(b32, decoded)) |
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
import base64 | |
# Based on: https://jpmens.net/2011/08/09/extending-unbound-with-python-module/ | |
def init_standard(id, env): | |
return True | |
def deinit(id): | |
return True |
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
#!/usr/bin/python | |
# For: https://github.com/phillipberndt/autorandr | |
# Based on: https://fosspost.org/tutorials/custom-system-tray-icon-indicator-linux | |
import os | |
from gi import require_version | |
require_version('Gtk', '3.0') | |
require_version('AppIndicator3', '0.1') | |
from gi.repository import Gtk as gtk, AppIndicator3 as appindicator | |
from subprocess import Popen, PIPE |