Skip to content

Instantly share code, notes, and snippets.

esphome:
name: "air-quality-indoor"
platform: ESP32
board: "featheresp32"
wifi:
ssid: "YOUR WIFI NETWORK NAME"
password: "YOUR WIFI PASSWORD"
logger:
#ifndef CLASS_AWSCONNECTOR
#define CLASS_AWSCONNECTOR
#include "../config/config.h"
#include "../config/aws_iot_certificates.h"
#include <WiFiClientSecure.h>
#include <MQTTClient.h>
class AWSConnector
{
@Savjee
Savjee / commands
Created March 5, 2016 20:48
Jenkins-install-commands
# Install JRE & JDK
sudo apt-get install openjdk-7-jre
sudo apt-get install openjdk-7-jdk
# Download the security key for the Jenkins repository
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
# Add the key to the trusted keys for apt-get
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
@Savjee
Savjee / gist:b4b3a21d143a30e7dc07
Created January 16, 2016 18:49
s3-webhosting-bucket-policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
@Savjee
Savjee / ChamiloScraper.php
Last active August 29, 2015 13:57
ChamiloScraper
<?php
/*
ChamiloScraper
Copyright (c) 2014 Xavier Decuyper
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@Savjee
Savjee / s3-to-AWStat.sh
Created January 20, 2013 18:27
s3-to-AWStat is a bash script that downloads Amazon S3 access logs and makes them ready for AWStat.
#!/bin/bash
# s3-to-AWStat
# Copyright 2013 Xavier Decuyper
# http://www.savjee.be
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,