Skip to content

Instantly share code, notes, and snippets.

View jandahl's full-sized avatar

Jan Gronemann jandahl

View GitHub Profile
@jandahl
jandahl / haluukkut-sentence-dump-0.3.35.json
Created September 26, 2026 06:18
Misiliineq sentence dumps: Haluukkut…ernumananngimmat (0.3.40 + 0.3.35) for api.oq.gl#254
{
"source": "oq-api/examples/misiliineq",
"kind": "sentence",
"capturedAt": "2026-09-26T06:10:47.023Z",
"input": {
"word": "Haluukkut. Naja angerlarallalerpoq. Siumut ingerlavoq, 12/11 Nuummukassooq, maanna Nuummi uninngasoqarpallaarnera peqqutigalugu, inuttaalu ernumananngimmat.",
"glossLanguage": "both",
"pronounPreference": {
"en": "he",
"da": "he"
@jandahl
jandahl / pr945-validation-failure.txt
Created September 17, 2026 12:32
oq.gl PR #945 validation failure (TS2345 SentenceLattice)
PR: https://github.com/jandahl/oq.gl/pull/945
Head: 38c5fbea6825ad786c16532d193988f03c556174
Workflow run: https://github.com/jandahl/oq.gl/actions/runs/35220790739
Failed job: validation (https://github.com/jandahl/oq.gl/actions/runs/35220790739/job/105200197983)
Settled: 2026-09-17 ~14:29 CEST (UTC+2)
EINTEGRITY: no (lockfile integrity OK on this run)
=== Failure summary ===
npm run typecheck (tsc --noEmit && tsc -p tsconfig.sw.json) failed.
@jandahl
jandahl / section.sh
Last active November 5, 2021 11:45
bash pipe to section
function section() {
sed -n "/${*}/,/^$/p"
}
#!/usr/bin/env bash
function aboutMe() {
printf "\n\t%s, ver %s" "${scriptName}" "${scriptVersion}"
printf "\n\tTries to acces the supplied IP or FQDN via several methods."
printf "\n\tDoesn't care about IPv6."
printf "\n\n\tExample:"
printf "\n\t\t%s %s example.com%s" "${scriptFile}" "${Emphasize}" "${ColorOff}"
printf "\n\t\t%s %s example.com example.org%s" "${scriptFile}" "${Emphasize}" "${ColorOff}"
printf "\n\n\tAlso has a built-in retry timer, using -r! (Note: only way to get out is killing the terminal)"
javascript: (function(n, t) {
t['true'] = n;
var i = function(n, t, i) {
var r = n.style;
r.webkitTransition = r.transition = i + 's';
r.webkitTransitionTimingFunction = r.TransitionTimingFunction = 'ease-in-out';
r.webkitTransform = r.Transform = 'translate3d(0, ' + -t + 'px, 0)'
};
var r = function() {
var n = [].slice.call(arguments);
@jandahl
jandahl / findpi.py
Last active November 10, 2016 08:57
Search for rpis based on name, ssh to first hit; assumes 'eth' is the var that controls which interface to check arp of
#!/usr/bin/env python3
# imports
import netifaces
import os
import subprocess
def main():
eth = 'en9'

Keybase proof

I hereby claim:

  • I am jandahl on github.
  • I am jgronemann (https://keybase.io/jgronemann) on keybase.
  • I have a public key ASBeZuaC6PWQ_TioUFpaU8XUryEC4NXnDoxt4bqJVgplWAo

To claim this, I am signing this object:

@jandahl
jandahl / updowntracker.sh
Last active August 26, 2016 15:47
Uptime-and-downtime-logger
#!/usr/bin/env bash
scriptFile=$(basename "${0}")
scriptName="Uptime-and-downtime-logger"
scriptVersion="2016-08-26 JAGR"
defaultPingTimer=4
targetIP=${1}
if [ -z "${2}" ]; then
pingTimer=${defaultPingTimer}
@jandahl
jandahl / dns.sh
Last active August 25, 2016 07:31
Use zone transfer to search for subdomains
#!/usr/bin/env bash
function aboutMe() {
echo -e "\n\t${scriptName}, v ${scriptVersion}"
echo -e "\n\tLooks through the ${lookupDomain} domain for what you want"
echo -e "\n\tTreats spaces as '.*'"
echo -e "\n\tExamples:"
echo -e "\n\t${scriptFile}${Emphasize} rt vrdb${ColorOff} will match rt01.vrdb"
echo -e "\t${scriptFile}${Emphasize} wireshark${ColorOff}\n"
# echo -e "(behind the scenes, it's a fancy ${Emphasize} dig -t AXFR tekdom.local | grep${ColorOff})\n"
#!/usr/bin/env bash
function aboutMe {
echo -e "\n\t$scriptName, v $scriptVersion"
echo -e "\n\tExamples:"
echo -e "\n\t$scriptFile \033[1;31mcurl\033[1;0m"
echo -e "\t$scriptFile \033[1;31msnmpdelta\033[1;0m\n"
echo -e "\n\tGenerates a rich text man page for you and opens it in Preview"
}
scriptFile=$(basename "$0")