Skip to content

Instantly share code, notes, and snippets.

Eric Soukenka toodooleedoo

Block or report user

Report or block toodooleedoo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Openvpn Safe start

This script accepts an openvpn file as an input parameter and will inject you're username and password into the ovpn file to allow login without having to type a password. Additionally you can configure a default ovpn file by naming the file default.ovpn.

It will also use iptables to ONLY allow connections to the IP in the .ovpn file. This prevents any leaks from a VPN drop as all other connections will not be allowed.

toodooleedoo /
Last active Feb 18, 2016
MP #AEM #NIX dispather cache cleaner

#MP #AEM #NIX dispather cache cleaner

Due to an issue where pages were being corrupted this was placed to search for incorrect HTML files in the dispatcher cache and cleanup as needed. Was a quick workaround.

toodooleedoo /
Last active Oct 19, 2017
#AEM #CQ Rotate Logs

#CQ #NIX Rotate Logs

Rotates AEM/CQ logs

if [ -z "${DATESTRING}" ]; then
DATESTRING="`date '+%d/%h/%Y'`";
for ((i=0;i<=9;i+=1)); do
printf "${DATESTRING} 0${i}: "
cat ${REQUEST_LOG} |grep -E "(ms)" |grep "<-" |grep "${DATESTRING}:0${i}" |sed -e 's/.*<-//g;s/.*-//g;s/ms//g;s/text\/html//g;s/.* //g' |awk "NR > 0 { s +=\$1 }; END {print s \" <- TIME TOTAL-> \" NR}" |awk '{print $1/$5}'

#Photo Organizer and backup utility

##Description Integrates photos taken from me and my wifes Androids to my Google Drive using some 3rd party tools. This allows me to integrate photos into my personal workflow which includes utter paranoia of losing my pictures :)

  • Snap Picture on an Android
  • Bittorrent sync places it on my linux box in ~/BTS/Androids/
  • Script does a find to look for any new photos via cron using linux find
  • If new photo is found sortphotos is triggered which examines EXIF data and moves to my master photo collection
toodooleedoo /
Last active Aug 29, 2015
#NODEJS #SHELL Convert Simplenote Notes to Laverna

#Convert a downloaded export from Simplenote and Import to Laverna

This is not very polished actually rather ugly. Was just used for a one time run however thought someone else would find this useful and maybe even convert it to NodeJS only and give it a little polish.

Don't plan on using unless your familiar with Linux and want to spend a little time.

Requires: NodeJS, Linux, Simplenote and Laverna Account Syncronized with Dropbox.


  • From Simplenote select your name in the top right --> Download zip
toodooleedoo /
Last active Aug 29, 2015
#AEM #Sightly Errors found after 6.1 upgrade

6.1 initial install and testing so far shows it is much more strict on the Sightly Specs Comparison

Will update this later to make it more clean only doing a quick POC at the moment from live code running on SP2.

#Invalid syntax for parameter

Runs in 6.0 errors in 6.1 note linkhandler is at

  <div class="status">
    <a x-cq-linkchecker="skip" data-sly-use.attr="${'../linkhandler.js' @href=${inheritedPageProperties.redirectTarget}" data-sly-attribute="${}">
toodooleedoo /
Last active Feb 18, 2016
#AEM #CQ #LINUX #CURL #NODEJS Bulk Content Importer

AEM CQ Bulk TSV Importer

While there is some use case specific logic this script takes a tab separated txt file which contains the AEM path, Node Property, and Node Value and updates accordingly.

##This more or less works but was abandoned.

toodooleedoo /
Last active Aug 29, 2015
#MP #LINUX Get report of types of dashboard reports accessed
curl --dump-header headers.txt --silent "https://${MW_HOST}/siteminderagent/forms/login.fcc" -H "Host: ${MW_HOST}" -d "USER=${USER}" -d "target=http%3A%2F%2F${MP_HOST}%2Fpublish%2F" -d "PASSWORD=${PASS}" -o /dev/null
You can’t perform that action at this time.