Skip to content

Instantly share code, notes, and snippets.

Avatar
🏢
Working

coseos coseos

🏢
Working
View GitHub Profile
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
{ 'timestamp': '26/12/2021 11:36:54', 'state': '_' }
{ 'timestamp': '26/12/2021 11:40:13', 'state': '
{ 'timestamp': '26/12/2021 11:44:26', 'state': '_' }
{ 'timestamp': '26/12/2021 11:48:42', 'state': '_' }
{ 'timestamp': '26/12/2021 11:52:59', 'state': '_' }
{ 'timestamp': '26/12/2021 11:57:14', 'state': '_' }
{ 'timestamp': '26/12/2021 12:01:29', 'state': '_' }
{ 'timestamp': '26/12/2021 12:05:44', 'state': '_' }
{ 'timestamp': '26/12/2021 12:10:00', '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
View raspi-os_disable-microsoft-telemetry.sh
#!/bin/bash
# Make every deb line a comment, this should disable the microsoft repository referenced in vscode.list
sed -i -e 's/^deb/# deb/' /etc/apt/sources.list.d/vscode.list
# Remove the microsoft gpg key and replace with an empty file
rm /etc/apt/trusted.gpg.d/microsoft.gpg && touch /etc/apt/trusted.gpg.d/microsoft.gpg
# Mark files as immutable to avoid changes from updates
chattr +i /etc/apt/trusted.gpg.d/microsoft.gpg
@coseos
coseos / essential-properties-4-pom.xml
Created Feb 24, 2021
Essential properties for pom.xml with UTF-8 encoding and Java version 11
View essential-properties-4-pom.xml
<!--
The essential properties for pom.xml include
- UTF-8 encoding for source files
- compiler version for source and target / Java 11
-->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
@coseos
coseos / X3_4_1968_USAscii.java
Created Feb 23, 2021
This Java class describes the non-printable control characters, by name, from the ANSI X3.4-1968 standard 7-bit charset, also known as US Ascii or ECMA-6.
View X3_4_1968_USAscii.java
package com.coseos.standards.ansi.x3;
/** This class describes the non-printable control characters, by name, from the ANSI X3.4-1968 standard 7-bit charset, also known as US Ascii or ECMA-6.
'I have also approved recommendations of the Secretary of Commerce regarding standards for recording the Standard Code for Information Interchange on magnetic tapes and paper tapes when they are used in computer operations. All computers and related equipment configurations brought into the Federal Government inventory on and after July 1, 1969, must have the capability to use the Standard Code for Information Interchange and the formats prescribed by the magnetic tape and paper tape standards when these media are used.'
Lyndon B. Johnson, March 11th 1968
*/
public class X3_4_1968_USAscii {
@coseos
coseos / install-oracle-jdbc-driver.sh
Created Jan 25, 2021
Simple script to install Oracle proprietary JDBC driver into local maven repository
View install-oracle-jdbc-driver.sh
#!/bin/bash
VERSION=19.8.0.0
JARFILE=ojdbc8-${VERSION}.jar
ARTIFACTID=coseos-oracle-jdbc8
GROUPID=com.oracle
MVN=$(which mvn)
function install {