Skip to content

Instantly share code, notes, and snippets.

@zl4bv
zl4bv / advent.rb
Last active December 3, 2015 19:30
Claim today's Wellington Advent Calendar treat
# Fill in the following parameters:
params = {
'name_first' => '',
'name_last' => '',
'email' => '',
'region' => 'Wellington City'
}
# NOTE: You need to have the `nokogiri` gem installed
#
### Keybase proof
I hereby claim:
* I am zl4bv on github.
* I am zl4bv (https://keybase.io/zl4bv) on keybase.
* I have a public key whose fingerprint is 4325 5B01 8330 0E59 BAD9 F4C7 1F52 EB63 1B05 5FA9
To claim this, I am signing this object:
@zl4bv
zl4bv / winrmcp_repo.md
Last active August 29, 2015 14:18
Attempts to reproduce file transfer error using winrmcp

Attempt 1: "Server execution failed"

PS K:\packer> .\bin\packer-winrmcp.exe -addr=localhost:6776 -user=vagrant -pass=vagrant .\sample.wav c:\sample.wav
Error uploading file to $env:TEMP\winrmfs-551de321-abfa-d5a3-769a-82d07712b1c1.tmp: Couldn't create shell: http error: 5
00 - <s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/
ws/2004/08/addressing" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:e="http://schemas.xmlsoap.org/ws/2
004/08/eventing" xmlns:n="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:w="http://schemas.dmtf.org/wbem/wsman
/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:Action>http://schemas.dmtf.org/
wbem/wsman/1/wsman/fault</a:Action><a:MessageID>uuid:10DDAF0C-7AED-44FC-A4E0-356F05727E90</a:MessageID><a:To>http://sche
mas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><a:RelatesTo>uuid:03f180e1-4432-4a1d-6227-18314036acfb</a:Rel
@zl4bv
zl4bv / Gemfile
Last active August 29, 2015 14:23
test-kitchen-segfault
source 'https://rubygems.org'
gem 'rake'
gem 'berkshelf'
gem 'test-kitchen'
gem 'kitchen-ec2'
gem 'winrm-transport'
@zl4bv
zl4bv / build_yubioath-desktop.sh
Created November 15, 2015 22:24
Building yubioath-desktop on debian
#!/bin/bash
# PySide dependencies
#
# https://github.com/PySide/BuildScripts/blob/master/dependencies.ubuntu.sh
#
apt-get install build-essential cmake libqt4-dev libxml2-dev \
libxslt1-dev python-dev qtmobility-dev
# yubioath-desktop dependencies

Keybase proof

I hereby claim:

  • I am zl4bv on github.
  • I am zl4bv (https://keybase.io/zl4bv) on keybase.
  • I have a public key ASBtBtj8IxaUCWpwBMO0Gn0MNOEm5bhjKvTjUwslexltbAo

To claim this, I am signing this object:

@zl4bv
zl4bv / shortcuts.md
Last active December 6, 2019 04:29
macOS boot shortcuts

macOS boot shortcuts

Shut down your Mac, then start it up holding one of these keys:

  • option - choose startup disk
  • -r - start macOS Recovery using the latest already installed macOS
  • option--r - start macOS Recovery using the latest compatible macOS
  • shift-option--r - start macOS Recovery using the original macOS
  • shift - start Safe Mode
  • d - run Apple Diagnostics
@zl4bv
zl4bv / jamf_bitdefender.md
Last active February 12, 2021 00:25
Jamf configuration profile settings for Bitdefender Endpoint protection

Jamf configuration profile settings for Bitdefender Endpoint Security

Privacy Preferences Policy Control

Required for macOS Big Sur.

App Access

Identifier: com.bitdefender.epsecurity.BDLDaemonApp
@zl4bv
zl4bv / nps-killer.sieve
Last active December 4, 2023 05:43
Reject NPS surveys before they reach your inbox
require ["comparator-i;ascii-numeric", "reject"];
/**
* Emails containing Net Promoter Score surveys
*/
if allof (
header :comparator "i;unicode-casemap" :contains "Subject" ["How likely are you to recommend", "How did we do?", "how was your recent delivery?", "Two Quick Questions", "Tell us how we did!"])
{
reject "NPS surveys are not accepted";
}