Skip to content

Instantly share code, notes, and snippets.

View EBNull's full-sized avatar

EBNull EBNull

  • New York, NY
  • 05:44 (UTC -04:00)
View GitHub Profile
@EBNull
EBNull / formatmessagesystem.py
Last active April 11, 2024 04:34
FormatMessage() in python, for system messages.
__all__ = (
FormatMessageSystem,
LCID_ENGLISH,
LCID_NEUTRAL,
)
import ctypes
import ctypes.wintypes
LANG_NEUTRAL = 0x00
import subprocess
import signal
def pipeline(cmds, first_stdin=None, last_stdout=None):
"""Pipe together programs using subprocess"""
pcount = len(cmds)
plist = []
for i, cmd in enumerate(cmds):
stdin = None
stdout = None
@EBNull
EBNull / capsule_order_history.sh
Created January 28, 2024 23:57
Get a CSV of all medication orders from Capsule pharmacy
#!/bin/bash
token() {
echo -n 'Authorization: Bearer YOUR_TOKEN_HERE'
}
acurl() {
curl \
-H 'tz: America/New_York' \
-H "$(token)" \
# This is a systemd user service
#
[Unit]
Description=Start krfb
After=graphical-session.target
[Service]
Type=exec
ExecStart=krfb --display $DISPLAY --nodialog
Restart=always
[remote "origin"]
url = [email protected]:DataDog/dd-source.git
#fetch = +refs/heads/*:refs/remotes/origin/*
fetch = +refs/heads/ebnull/*:refs/remotes/origin/ebnull/*
fetch = +refs/heads/spr/ebnull/*:refs/remotes/origin/spr/ebnull/*
fetch = +refs/heads/main:refs/remotes/origin/main
#fetch = +refs/heads/wip:refs/remotes/origin/wip
tagOpt = --no-tags
[branch "main"]
remote = origin