Skip to content

Instantly share code, notes, and snippets.

Avatar
🏢
Working

coseos coseos

🏢
Working
View GitHub Profile
View config.txt
#
# Raspberry Pi / Raspi OS, /boot/config.txt
#
# With 'gpio=26=op,dh', GPIO 26 is set to output a signal when the Raspberry Pi is turned on.
#
gpio=26=op,dh
View config.txt
#
# Raspberry Pi / Raspi OS, /boot/config.txt
#
# With 'dtoverlay=gpio-shutdown', GPIO 3 is used as a power on/off switch.
#
dtoverlay=gpio-shutdown
View get-public-ip
#!/bin/bash
PUBLIC_IP=`wget http://ipecho.net/plain -O - -q ; echo`
echo $PUBLIC_IP
View iot-rpi-4al
{ 'timestamp': '16/10/2021 14:57:41', 'state': '#' }
{ 'timestamp': '16/10/2021 14:57:43', 'state': '#' }
{ 'timestamp': '16/10/2021 14:58:11', 'state': '#' }
{ 'timestamp': '16/10/2021 14:58:13', 'state': '#' }
View iot-myw-png
{'date':'2021-08-06T20-59-58','message':'1040710'}
{'date':'2021-08-06T21-01-59','message':'1040830'}
View lorem-ipsum.txt
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam dictum felis eu pede mollis pretium. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.
Aenean commodo ligula eget dolor. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Integer tincidunt.
Cras dapibus. Aenean vulputate eleifend tellus. Vivamus elementum semper nisi. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Donec vitae sapien ut libero venenatis faucibus. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui.
Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero
View iot-501-pir
{ 'timestamp': '14/10/2021 17:17:31', 'state': 'o' }
{ 'timestamp': '14/10/2021 17:17:47', 'state': 'o' }
{ 'timestamp': '14/10/2021 17:17:52', 'state': 'o' }
{ 'timestamp': '14/10/2021 17:18:02', 'state': 'o' }
{ 'timestamp': '14/10/2021 17:18:44', 'state': 'o' }
{ 'timestamp': '14/10/2021 17:18:48', 'state': 'o' }
{ 'timestamp': '14/10/2021 17:18:54', 'state': 'o' }
{ 'timestamp': '14/10/2021 17:22:13', 'state': 'o' }
View iot-tfk-001
This file has been truncated, but you can view the full file.
__
14/10/2021 08:48:57#___
{ 'timestamp': '14/10/2021 08:59:22', 'state': '
{ 'timestamp': '14/10/2021 09:03:34', 'state': '_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }
{ 'timestamp': '14/10/2021 10:03:02', 'state': '_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }
{ 'timestamp': '14/10/2021 11:02:31', 'state': '_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }
{ 'timestamp': '14/10/2021 12:02:01', 'state': '_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }
{ 'timestamp': '14/10/2021 13:01:31', 'state': '_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }_' }
View iot-sbc-pir
2021:18:41##_#_#_#_#_#_##_#####_##_##_#_#_#_###_#_##_#_#_#_#_#_#_###_#_##_#_#_##_#_##_#_##_#_#_#_#_##_#_###_#_#_#_#_#_#_#_#_#_#####_##_##_##_###_#_#_#_##_#_#_##_#_##_
7:18:20:30
7:18:20:50
7:18:20:51#
7:18:20:51#
7:18:20:51#_
7:18:20:56#
7:18:20:57#_
7:18:20:59#_
7:18:21:4#_
View recursive_sha256sum_of_files.sh
#!/bin/bash
# Find all files and execute sha256sum on each, report to file checksum.sha256
#
find . -type f -exec sha256sum "{}" + | tee checksum.sha256