Instantly share code, notes, and snippets.

Patrick van der Leer patvdleer

View GitHub Profile
View micropython_ESP32.sh
#!/bin/bash
sudo apt install libffi-dev pkg-config build-essential git
SUBDIR=esp
cd ~
mkdir -p $SUBDIR
cd $SUBDIR
View mqtt.py
import random
import string
import threading
import paho.mqtt.client as paho
from . import logger
class Client(paho.Client):
View packtsub.py
import os
import re
import shutil
import sys
import requests
try:
import argparse
except ImportError:
sys.stderr.write("The Python module argparse is required")
View cms_fix.php
<?php
require_once 'abstract.php';
class X043_Shell_CMSFixer extends Mage_Shell_Abstract {
public function getCollection() {
return Mage::getModel('cms/block')->getCollection();
}