Skip to content

Instantly share code, notes, and snippets.

View esphome-co2-sensor-mhz19.yaml
esphome:
name: "air-quality-indoor"
platform: ESP32
board: "featheresp32"
wifi:
ssid: "YOUR WIFI NETWORK NAME"
password: "YOUR WIFI PASSWORD"
logger:
View AWSConnector.cpp
#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 Mar 5, 2016
Jenkins-install-commands
View 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 Jan 16, 2016
s3-webhosting-bucket-policy
View gist:b4b3a21d143a30e7dc07
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
@Savjee
Savjee / ChamiloScraper.php
Last active Aug 29, 2015
ChamiloScraper
View ChamiloScraper.php
<?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 Jan 20, 2013
s3-to-AWStat is a bash script that downloads Amazon S3 access logs and makes them ready for AWStat.
View s3-to-AWStat.sh
#!/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,