Skip to content

Instantly share code, notes, and snippets.

View gkowalski's full-sized avatar
🐄
Working on stuff

George Kowalski gkowalski

🐄
Working on stuff
View GitHub Profile
# Example testing code for FigPy https://gitlab.benjaminshockley.com/ben/FigPi/-/wikis/Example-Code
# Needs neopixel lib from https://learn.adafruit.com/circuitpython-essentials/circuitpython-neopixel
import board
import neopixel
import time
NUM_PIXELS = 9
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
with code :
import board
import neopixel
NUM_PIXELS = 9
RED = (255, 0, 0)
GREEN = (0, 255, 0)
@gkowalski
gkowalski / main.py
Created November 24, 2022 16:42
WiFi Network Test for RP2040 Pico W
import network
import time
import machine
import config
# Test program for Raspberry PI PIC)-W
# Starts Network, Connects to WiFi Network and turns on Light when Connected
# Need to create a config.py with:
#
# sid="your_wiki_ac"
### Keybase proof
I hereby claim:
* I am gkowalski on github.
* I am georgekowalski (https://keybase.io/georgekowalski) on keybase.
* I have a public key ASCbL6913PMO3bsLdxGiAz-lns9yCfVNOEXjKVdpwd2AHQo
To claim this, I am signing this object:
WARN: [2022-06-02T14:06:11,975][http-nio-8080-exec-2] org.hibernate.engine.internal.StatefulPersistenceContext.narrowProxy()709 HHH000179: Narrowing proxy to class edu.umich.med.emerse.domain.Person - this operation breaks ==
ERROR: [2022-06-02T14:15:10,082][http-nio-8080-exec-4] edu.umich.med.emerse.rest.ExceptionControllerAdvice.handleUncaughtException()60 Returning user unknown error
org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 2 errors
Field error in object 'userSearchDTO' on field 'rowEnd': rejected value [NaN]; codes [typeMismatch.userSearchDTO.rowEnd,typeMismatch.rowEnd,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [userSearchDTO.rowEnd,rowEnd]; arguments []; default message [rowEnd]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'rowEnd'; nested exception is java.lang.NumberFormatException: For input string
@gkowalski
gkowalski / update_macaddress.sh
Created October 28, 2021 13:52
update_macaddress.sh
sudo ifconfig eth0 down
sudo macchanger -m xx:xx:xx:xx:xx:xx eth0
sleep 5
sudo ifconfig eth0 up

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@gkowalski
gkowalski / dump_git_branch_sizes.sh
Created February 7, 2018 15:08
Dump size of each branch in a GIT repo
for a in $(git branch -a | grep remotes | awk '{print $1}' | sed 's/remotes\/origin\///'); do echo -n ${a} -\ ; git clean -d -x -f > /dev/null 2>&1 ;git checkout ${a} > /dev/null 2>&1; du -hs -I .git .;done
--- Show failed queries in oracle I2b2
SELECT
qm.QUERY_MASTER_ID ,
qm.NAME,
qm.USER_ID,
qi.message,
qm.CREATE_DATE
FROM
QT_QUERY_MASTER qm
JOIN
import dicom
import click
import yaml
import pprint
import os
import numpy
@click.command()
@click.option('--input_dir', required=True, help='Input directory of images to recursively process')