Skip to content

Instantly share code, notes, and snippets.

View gingeleski's full-sized avatar
📈

Randy Gingeleski gingeleski

📈
View GitHub Profile
@Hellisotherpeople
Hellisotherpeople / blog.md
Last active April 14, 2024 21:52
You probably don't know how to do Prompt Engineering, let me educate you.

You probably don't know how to do Prompt Engineering

(This post could also be titled "Features missing from most LLM front-ends that should exist")

Apologies for the snarky title, but there has been a huge amount of discussion around so called "Prompt Engineering" these past few months on all kinds of platforms. Much of it is coming from individuals who are peddling around an awful lot of "Prompting" and very little "Engineering".

Most of these discussions are little more than users finding that writing more creative and complicated prompts can help them solve a task that a more simple prompt was unable to help with. I claim this is not Prompt Engineering. This is not to say that crafting good prompts is not a difficult task, but it does not involve doing any kind of sophisticated modifications to general "template" of a prompt.

Others, who I think do deserve to call themselves "Prompt Engineers" (and an awful lot more than that), have been writing about and utilizing the rich new eco-system

@dustyfresh
dustyfresh / inkyphat-crypto-ticker.py
Created November 18, 2020 00:54
Crypto price ticker with the inkyphat eink display
#!/usr/bin/env python3
import cryptocompare
from time import sleep
from inky import InkyPHAT
from random import shuffle
from datetime import datetime
from PIL import Image, ImageDraw, ImageColor, ImageFont
def log(msg):
#print(msg)

A Proposal for Batched REST

An alternative to both REST & GraphQL, combining the benefits of each, based on https://tools.ietf.org/id/draft-snell-http-batch-00.html.

Batch multiple related requests into one HTTP request, which can be sent once & processed once on the server-side, but otherwise keep all the benefits of REST & HTTP. This is one single raw HTTP request:

POST /batch
Host: example.com
Content-Type: multipart/batch
@jgamblin
jgamblin / gist:a9f2ef27c78dfe3e5e65645fe9d1b970
Created September 17, 2019 15:05
Check a List Of Emails For Open Google Calendars.
#!/usr/bin/env bash
# Check a List Of Emails For Open Google Calendars.
if [[ $# -eq 0 ]]; then
echo 'Please provide a list email addresses to check.'
exit 1
fi
email_list="$1"
@0xallie
0xallie / lossless-stream-rip-cheatsheet.md
Last active April 3, 2024 06:11
Lossless stream rip cheatsheet

Lossless stream rip cheatsheet

Note: This guide may be slightly outdated. It may be still useful for older releases, but nowadays the vast majority of releases are correctly tagged as WEB-DL (unless it's RARBG/rartv). Protip: prefer looking at file names instead of release names, as they tend to be more accurate.

This is a short cheatsheet to help you determine whether a release from Amazon, Hulu, or Netflix contains the lossless/untouched (as in no further loss of quality compared to what the streaming services provide) video/audio or not. Most newer P2P releases are correctly tagged, but for older releases, it cannot be reliably determined based on the tags alone.

In most cases, non-lossless rips from these services are screen captures (which, when done by professional releasers, should be high quality and contain little to no glitches – see the history section for details), but in some cases they may be simply reencoded from the untouched stream, for example to crop black bars or reencode from a

#!/usr/bin/env node
/*
howdyneighbor.js - playing with the libnmap NodeJS module. This identifies
neighboring machines on the same network and tells you if they are
leaving any interesting ports open. It's really good for finding routers :)
@dustyfresh, license for this gist is WTFPL [ http://www.wtfpl.net/ ]
OSX INSTALL INSTRUCTIONS:
$ npm i requests