Skip to content

Instantly share code, notes, and snippets.

View MadmanMonty's full-sized avatar

Christopher Baxter MadmanMonty

View GitHub Profile
@MadmanMonty
MadmanMonty / lambda_function.py
Last active April 24, 2022 20:33 — forked from kbowman-newedenconsultinggroup/lambda_function.py
Alexa Smart Home Skill Adapter for Home Assistant - With client certificates
"""
Copyright 2019 Jason Hu <awaregit at gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@MadmanMonty
MadmanMonty / lambda_function.py
Created April 20, 2022 20:52 — forked from matt2005/lambda_function.py
Alexa Smart Home Skill Adapter for Home Assistant
"""
Copyright 2019 Jason Hu <awaregit at gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@MadmanMonty
MadmanMonty / ESP32 CAM setup
Created April 2, 2021 08:51
ESP32 CAM Tasmota Template, with LED1 and Light configuration. The default on the tasmota website incorrectly defines these, preventing activation of the light.
{"NAME":"AITHINKER CAM inc LEDs","GPIO":[4992,1,1,1,416,5088,1,1,1,1,1,1,1,1,5089,5090,0,5091,5184,5152,0,5120,5024,5056,0,0,0,0,4928,320,5094,5095,5092,0,0,5093],"FLAG":0,"BASE":1}
@MadmanMonty
MadmanMonty / bundle php-cs-fixer-pre-commit.php
Last active August 29, 2015 14:17 — forked from mardix/php-cs-fixer-pre-commit.php
php-cs-fixer dry run on git commit
#!/usr/bin/env php
<?php
// If you want to auto correct files, or just inform and fail. (values: disabled, manual, partial, auto. default: partial)
//$autoCorrect = 'partial';
$autoCorrect = 'auto';
$verboseOutput = true;
$binPath = '..\\..\\..\\bin\\';
/**
* .git/hooks/pre-commit
@MadmanMonty
MadmanMonty / build.xml
Created February 5, 2014 16:40
Ant TestNg for jenkins
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="Ant Play">
<property name="classes.dir" value="bin" />
<property name="report.dir" value="test-output" />
<path id="classpath">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
<pathelement path="${basedir}\${classes.dir}"/>
</path>
@MadmanMonty
MadmanMonty / gist:6691060
Last active December 23, 2015 20:39 — forked from AstonJ/gist:2896818
#get root access
su -
cd /tmp
#Remove old Ruby
yum remove ruby
# Install dependencies
yum groupinstall "Development Tools"
yum install zlib zlib-devel
@MadmanMonty
MadmanMonty / MyEventListener.php
Created June 28, 2012 09:39 — forked from worenga/MyEventListener.php
Doctrine2 Event Listener
<?php
namespace My\Bundle\Listener;
use Doctrine\Common\EventSubscriber;
use Doctrine\ORM\Events;
use Doctrine\ORM\Event\OnFlushEventArgs;
use Doctrine\ORM\Mapping\ClassMetadata;
use My\Bundle\Entity\Event;