Skip to content

Instantly share code, notes, and snippets.

Patrick van der Leer patvdleer

Block or report user

Report or block patvdleer

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

Keybase proof

I hereby claim:

  • I am patvdleer on github.
  • I am patvdleer ( on keybase.
  • I have a public key ASCRTBvSnT8IJIV_zEd6pTH2BkADPqeB7eTadlLn9bwBWwo

To claim this, I am signing this object:

sudo apt install libffi-dev pkg-config build-essential git
cd ~
mkdir -p $SUBDIR
patvdleer /
Created Aug 3, 2017
Paho MQTT client wrapper
import random
import string
import threading
import paho.mqtt.client as paho
from . import logger
class Client(paho.Client):
patvdleer /
Last active Jun 17, 2019
packtpub daily claimer/downloader
import os
import re
import shutil
import sys
import requests
import argparse
except ImportError:
sys.stderr.write("The Python module argparse is required")
patvdleer / cms_fix.php
Created Feb 21, 2017
Magento clean cms blocks
View cms_fix.php
require_once 'abstract.php';
class X043_Shell_CMSFixer extends Mage_Shell_Abstract {
public function getCollection() {
return Mage::getModel('cms/block')->getCollection();
You can’t perform that action at this time.