Skip to content

Instantly share code, notes, and snippets.

[Unit]
Description=UCTRONICS Raspberry Pi Status
After=network.target
[Service]
Type=simple
ExecStartPre=/bin/bash -c 'if [ ! -d "/opt/UCTRONICS" ]; then git clone https://github.com/UCTRONICS/U6143_ssd1306.git /opt/UCTRONICS; cd /opt/UCTRONICS/C; make clean && make; cp /opt/UCTRONICS/C/display /usr/bin/UCTRONICS_display; fi'
ExecStart=/usr/bin/UCTRONICS_display
Restart=on-failure
@thegreatco
thegreatco / setup.sh
Last active November 27, 2024 00:03
setup a new machine
#!/bin/bash
set -euo pipefail
# Global Variables
GO_INSTALL_PATH="/usr/local/go"
GO_DOWNLOAD_URL="https://go.dev/dl/"
ARCH=$(dpkg --print-architecture)
BASHRC_FILE="$HOME/.bashrc"
GITHUB_USER="thegreatco" # Replace with your GitHub username
@thegreatco
thegreatco / PLINQ Performance.md
Created April 17, 2019 16:33
PLINQ Performance in C#
Method Job Runtime Categories Count Mean Error StdDev Ratio RatioSD
WhereIterator Clr Clr Basic Filtering 1000 4.259 us 0.0993 us 0.1486 us 1.59 0.06
ForIterator Clr Clr Basic Filtering 1000 4.016 us 0.0793 us 0.1031 us 1.49 0.05
ForIteratorPreAllocatedList Clr Clr Basic Filtering 1000 3.895 us 0.0453 us 0.0424 us 1.43 0.02
ForIteratorIntoArray Clr Clr Basic Filtering 1000 3.211 us 0.0572 us 0.0535 us 1.19 0.02
ParallelW

Keybase proof

I hereby claim:

  • I am thegreatco on github.
  • I am thegreatco (https://keybase.io/thegreatco) on keybase.
  • I have a public key ASCYfIGtpy3jZPyJYZFVa3C5nxMEHNp7ammz9k787zSK8Qo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am TheGreatCO on github.
  • I am thegreatco (https://keybase.io/thegreatco) on keybase.
  • I have a public key whose fingerprint is 2572 854B 321B 9E36 D6E5 F10B 386C 0E76 C04E 8581

To claim this, I am signing this object: