Skip to content

Instantly share code, notes, and snippets.

View mims92's full-sized avatar

Mims mims92

  • Liege
View GitHub Profile
@mims92
mims92 / Linux-RandomPasswordGenerator
Created November 28, 2017 10:14
Linux - Bash - Random Password Generator
##################################################################################
# https://www.howtogeek.com/howto/30184/10-ways-to-generate-a-random-password-from-the-command-line/
##################################################################################
</dev/urandom tr -dc '12345!@#$%qwertQWERTasdfgASDFGzxcvbZXCVB' | head -c16; echo ""
@mims92
mims92 / AWS-GetParameterStore.py
Last active November 3, 2021 12:19
AWS - Python - Retrieve a value from the Parameter Store
#####################################################################
# Runs on AWS Lambda
# Please make sure the role as the getParameters access.
# -> AmazonSSMFullAccess for simplicity
#
# Boto3 library is already included.
# Documentation: http://boto3.readthedocs.io/en/latest/reference/services/ssm.html#SSM.Client.describe_parameters
#####################################################################
import boto3
@mims92
mims92 / ESP8266-TemperatureHumidityDHT11.ino
Created November 5, 2017 14:15
ESP8266 - C - DHT11 Temperature and humidity sensor
/**
* You need to include SimpleDHT library to Arduino IDE (or whatever IDE you are using).
* https://github.com/mims92/SimpleDHT (fork)
* https://github.com/winlinvip/SimpleDHT (official)
* Please it in the library folder of Arduino.
*/
#include "ESP8266WiFi.h"
#include "SimpleDHT.h"
#define DHTTYPE DHT22
@mims92
mims92 / ESP8266-WifiConnector.ino
Created November 4, 2017 09:49
ESP8266 - C - Connect to Wifi with static IP
/**
* 4-10-2017
* Can be improved to try to reconnect in case of failure.
*/
#include "ESP8266WiFi.h"
char pass[] = "PASS";
char ssid[] = "SSID";
IPAddress ip(192, 168, 42, 200); //Static ip
@mims92
mims92 / ESP8266-WifiScanner.ino
Created November 4, 2017 09:24
ESP8266 - C - Scan Wifi Networks
#include "ESP8266WiFi.h"
void setup() {
Serial.begin(115200);
int numberOfNetworks = WiFi.scanNetworks();
for(int i = 0; i < numberOfNetworks; i++){
Serial.print("Network name: ");