Skip to content

Instantly share code, notes, and snippets.

@kiesel
kiesel / crash.log
Created November 14, 2017 14:43
terraform crash
$ TF_LOG=trace terraform "state list"
2017/11/14 14:25:21 [INFO] Terraform version: 0.10.8 44110772d9ffd0ec3589943c6d4c93c24a5fff06
2017/11/14 14:25:21 [INFO] Go runtime version: go1.9
2017/11/14 14:25:21 [INFO] CLI args: []string{"/home/dandral/bin/terraform", "state list"}
2017/11/14 14:25:21 [DEBUG] Attempting to open CLI config file: /home/dandral/.terraformrc
2017/11/14 14:25:21 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/11/14 14:25:21 [DEBUG] CLI config is &main.Config{Providers:map[string]string{}, Provisioners:map[string]string{}, DisableCheckpoint:false, DisableCheckpointSignature:false, PluginCacheDir:"", Credentials:map[string]map[string]interface {}(nil), CredentialsHelpers:map[string]*main.ConfigCredentialsHelper(nil)}
2017/11/14 14:25:21 [DEBUG] plugin: waiting for all plugin processes to complete...
panic: runtime error: slice bounds out of range
@kiesel
kiesel / keybase.md
Created April 21, 2015 08:06
keybase.md

Keybase proof

I hereby claim:

  • I am kiesel on github.
  • I am alexdandrea (https://keybase.io/alexdandrea) on keybase.
  • I have a public key whose fingerprint is FAFD D116 DEA0 3950 DF3F 1CF0 3075 490A 9348 5392

To claim this, I am signing this object:

@kiesel
kiesel / GetSourceProfiling.class.php
Created September 12, 2013 06:33
Script to do performance measurement for `xml.Node::getSource()`
<?php
class GetSourceProfiling extends \util\cmd\Command {
protected $runs= 1;
protected $indent= 0;
#[@arg(position= 0)]
public function setRuns($r) {
$this->runs= $r;
}
@kiesel
kiesel / mvx
Created April 1, 2013 10:07
Script to invoke xp utility within Maven-setup environment
#!/bin/sh
set -e
set -u
RUNNER=$(shift)
CURDIR=$(pwd)
cp target/project.pth-package target/mvx.pth
trap "{ cd $CURDIR; rm target/mvx.pth; }" EXIT
@kiesel
kiesel / README.md
Last active December 12, 2015 09:39
Store all issues from a repo's issue tracker as files.

About

This downloads all issues (open/closed) from the specified GitHub issue tracker and stores each issue as file in a separate directory named after the issue.

Usage:

$ xpcli StoreIssues -r xp-framework/rfc -f ../rfc/
@kiesel
kiesel / README.md
Created June 8, 2012 08:57
XP Framework Website Attachments

This is the git repo for XP website attachments

@kiesel
kiesel / ThinkingRock.vba
Created April 5, 2012 06:42
ThinkingRock Outlook Macro
Declare Function abOpenClipboard Lib "User32" Alias "OpenClipboard" (ByVal Hwnd As Long) As Long
Declare Function abCloseClipboard Lib "User32" Alias "CloseClipboard" () As Long
Declare Function abEmptyClipboard Lib "User32" Alias "EmptyClipboard" () As Long
Declare Function abIsClipboardFormatAvailable Lib "User32" Alias "IsClipboardFormatAvailable" (ByVal wFormat As Long) As Long
Declare Function abSetClipboardData Lib "User32" Alias "SetClipboardData" (ByVal wFormat As Long, ByVal hMem As Long) As Long
Declare Function abGetClipboardData Lib "User32" Alias "GetClipboardData" (ByVal wFormat As Long) As Long
Declare Function abGlobalAlloc Lib "Kernel32" Alias "GlobalAlloc" (ByVal wFlags As Long, ByVal dwBytes As Long) As Long
Declare Function abGlobalLock Lib "Kernel32" Alias "GlobalLock" (ByVal hMem As Long) As Long
Declare Function abGlobalUnlock Lib "Kernel32" Alias "GlobalUnlock" (ByVal hMem As Long) As Boolean
Declare Function abLstrcpy Lib "Kernel32" Alias "lstrcpyA" (ByVal lpString1 As Any, ByVal lpSt
@kiesel
kiesel / ArchiveMail.vba
Last active October 2, 2015 17:58
ArchiveMail Outlook Macro
Function GetFolder(StartFolder As Outlook.Folder, ByVal FolderPath As String) As Outlook.Folder
Dim TestFolder As Outlook.Folder
Dim FoldersArray As Variant
Dim i As Integer
On Error GoTo GetFolder_Error
If Left(FolderPath, 2) = "\\" Then
FolderPath = Right(FolderPath, Len(FolderPath) - 2)
End If
@kiesel
kiesel / issue18.diff
Created July 31, 2011 11:06
Patch for issue 18
diff --git a/core/src/main/php/webservices/soap/SoapTypeMapper.class.php b/core/src/main/php/webservices/soap/SoapTypeMapper.class.php
new file mode 100644
index 0000000..16381b9
--- /dev/null
+++ b/core/src/main/php/webservices/soap/SoapTypeMapper.class.php
@@ -0,0 +1,156 @@
+<?php
+/* This class is part of the XP Framework
+ *
+ * $Id$
@kiesel
kiesel / gist:1032374
Created June 17, 2011 21:17
Patch for issue 23
Index: skeleton/scriptlet/xml/XMLScriptletURL.class.php
===================================================================
--- skeleton/scriptlet/xml/XMLScriptletURL.class.php (revision 15184)
+++ skeleton/scriptlet/xml/XMLScriptletURL.class.php (working copy)
@@ -198,6 +198,10 @@
* @return string
*/
public function getURL() {
+ $defaultPorts= array(
+ 'http' => 80,