Skip to content

Instantly share code, notes, and snippets.

View kj187's full-sized avatar

Julian Kleinhans kj187

View GitHub Profile
### Keybase proof
I hereby claim:
* I am kj187 on github.
* I am kj187 (https://keybase.io/kj187) on keybase.
* I have a public key ASAbBERgRA_icYGB6Y3Nmn-3KEzDxSn0U0i-KNYaW8S2_go
To claim this, I am signing this object:
RESTORE=$(echo -en '\033[0m')
RED=$(echo -en '\033[00;31m')
GREEN=$(echo -en '\033[00;32m')
YELLOW=$(echo -en '\033[00;33m')
BLUE=$(echo -en '\033[00;34m')
MAGENTA=$(echo -en '\033[00;35m')
PURPLE=$(echo -en '\033[00;35m')
CYAN=$(echo -en '\033[00;36m')
LIGHTGRAY=$(echo -en '\033[00;37m')
LRED=$(echo -en '\033[01;31m')

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@kj187
kj187 / converter.py
Created November 21, 2016 10:33
Converting a CloudFormation Template from JSON to YAML
#!/usr/bin/env python
## Converting a CloudFormation Template from JSON to YAML
## Script copyright: http://blog.flux7.com/how-to-convert-a-cloudformation-template-from-json-to-yaml
##
## Example:
## $ python converter.py --json my-stack.template --yaml my-stack.yaml
import yaml
import json
Verifying that +kj187kj is my blockchain ID. https://onename.com/kj187kj
@kj187
kj187 / dashing.sh
Created October 22, 2015 07:26
Dashing service script
#!/bin/bash
NAME=dashing
DASHING_PORT=3030
DASHING_DIR=$2
PID_DIR=$DASHING_DIR/tmp/pids
PIDFILE=$PID_DIR/thin.pid
GEM_HOME=$GEM_HOME
@kj187
kj187 / gist:9857991
Last active June 28, 2021 11:21
Inspiring Conference 2014 in Kolbermoor
<GetListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<listName>{E2C5D12A-7EBA-4BD9-9BF2-024A0628E8A2}</listName>
<rowLimit>10000</rowLimit>
<query><Query><Where><Eq><FieldRef Name="Kontakt" /><Value Type="Lookup" LookupId="TRUE">314</Value></Eq></Where></Query></query>
<queryOptions xmlns:SOAPSDK9="http://schemas.microsoft.com/sharepoint/soap/" >
<QueryOptions>
</QueryOptions>
</queryOptions>
@kj187
kj187 / gist:9205103
Created February 25, 2014 08:34
StandaloneView
#Step 1:
$this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
$this->configurationManager = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManager');
#Step 2:
Call $this->getStandaloneView(array('job' => $job), 'Pdf/Email.html')->render();
/**
<?php
namespace Thybag;
/**
* SharepointAPI
*
* Simple PHP API for reading/writing and modifying SharePoint list items.
*
* @author Carl Saggs
* @version 2012.12.24