Setup for feeding data from my Raspberry Pi to:
- Flightradar24 (ADS-B)
- FlightAware (ADS-B)
- airplanes.live (ADS-B)
- ADSBhub (supporting SafeSky) (ADS-B)
- LiveATC (audio)
Hardware:
Setup for feeding data from my Raspberry Pi to:
Hardware:
Each day at our company, developers are required to document their activities, painstakingly jotting down their daily work and future plans. A monotonous chore that I just really dislike.
So now, there's a scribe for that :
| import openai | |
| import requests | |
| import textwrap | |
| import uuid | |
| # pip3 install openai requests | |
| # setup the API credentials | |
| es_username = "<your username>" | |
| es_password = "<your password>" | |
| es_url = "https://localhost:9200" |
ChatGPT appeared like an explosion on all my social media timelines in early December 2022. While I keep up with machine learning as an industry, I wasn't focused so much on this particular corner, and all the screenshots seemed like they came out of nowhere. What was this model? How did the chat prompting work? What was the context of OpenAI doing this work and collecting my prompts for training data?
I decided to do a quick investigation. Here's all the information I've found so far. I'm aggregating and synthesizing it as I go, so it's currently changing pretty frequently.
| At this point, it is probably easier to just use something like this: https://github.com/reznok/Spring4Shell-POC | |
| - clone https://spring.io/guides/gs/handling-form-submission/ | |
| - you can skip right to gs-handling-form-submission/complete, no need to follow the tutorial | |
| - modify it so that you can build a war file (https://www.baeldung.com/spring-boot-war-tomcat-deploy) | |
| - install tomcat9 + java 11 (i did it on ubuntu 20.04) | |
| - deploy the war file | |
| - update the PoC (https://share.vx-underground.org/) to write the tomcatwar.jsp file to webapps/handling-form-submission instead of webapps/ROOT |
| # return code is either 0 (success) or 1 (fail), so you can use it straight-up in logical statements | |
| coinflip() { return $(($RANDOM%2)); } | |
| coinflip && echo "heads" || echo "tails" |
| # Ambient Weather API APRS/CWOP upload script from this thread https://www.wxforum.net/index.php?topic=36181.0 | |
| # Originally written by uajqq and Ron B. | |
| # Modified by me (trevor229) for amateur radio use (added a few new variables) | |
| # Be aware there are apparently some issues with the coordinates not being rounded properly in some cases. Read the thread above for more info. It works fine for me though. | |
| # When using this script, make sure it is not running more than once per 5 minutes, as CWOP requests. | |
| import os | |
| from socket import * | |
| from datetime import datetime, time |
| """ | |
| https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life | |
| conway's game of life | |
| """ | |
| from random import randint | |
| def gameOfLife(grid): | |
| state = {} | |
| rows = len(grid) |