This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ESP8266WiFi.h" | |
void setup() { | |
Serial.begin(115200); | |
int numberOfNetworks = WiFi.scanNetworks(); | |
for(int i = 0; i < numberOfNetworks; i++){ | |
Serial.print("Network name: "); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################################################################### | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################## | |
# 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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################## | |
# 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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################## | |
# 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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################## | |
# 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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################## | |
# https://www.howtogeek.com/howto/30184/10-ways-to-generate-a-random-password-from-the-command-line/ | |
################################################################################## | |
< /dev/urandom tr -dc "_A-Z-a-z-0-9&\/{}()@#^.?+=" | head -c16; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################################################################################################### | |
# From https://stackoverflow.com/questions/134906/how-do-i-list-all-cron-jobs-for-all-users#comment81662841_44714620 | |
# Tested on Debian 8 | |
#################################################################################################################### | |
#!/bin/bash | |
cat /etc/passwd | sed 's/^\([^:]*\):.*$/echo "\ncrontab for \1:"; crontab -u \1 -l 2>\&1/' | grep -v "no crontab for" | sh |
OlderNewer