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 / 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 / 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;