Skip to content

Instantly share code, notes, and snippets.

View chriseldredge's full-sized avatar

Chris Eldredge chriseldredge

View GitHub Profile
@chriseldredge
chriseldredge / pypi-stale-metadata.txt
Created October 13, 2022 16:06
pypi-stale-metadata
2022-10-05 08:23:41.616 libjschoe
2022-10-05 08:27:18.232 tf-nightly
2022-10-05 08:53:27.775 pulumi-azure-native
2022-10-05 09:01:06.182 auterion-cli
2022-10-05 09:27:15.130 jittor
2022-10-05 10:10:19.754 pyveb
2022-10-05 10:12:35.350 tf-nightly-cpu
2022-10-05 12:44:31.704 jina-now
2022-10-05 13:07:25.374 bigdl-friesian
2022-10-05 13:07:28.278 bigdl-chronos
@chriseldredge
chriseldredge / asmver.cs
Created March 4, 2022 13:29
Toy c# app to dump assembly version and type info
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
public class AssemblyVersion
{
public static void Main(string[] args)
{
IEnumerable<string> paths = args;
@chriseldredge
chriseldredge / RLE.cbl
Created July 2, 2020 16:57
Run-length encoding in COBOL
*-----------------------
IDENTIFICATION DIVISION.
*-----------------------
PROGRAM-ID. RLE.
*--------------------
DATA DIVISION.
*-------------
WORKING-STORAGE SECTION.
01 INSTR PIC X(80).
01 OUTSTR PIC X(80).
@chriseldredge
chriseldredge / run.sh
Created December 12, 2017 16:55
Docker Solr with embedded ZooKeeper
docker run --name solr -p 8983:8983 -p 9983:9983 \
--mount type=bind,source=$PWD/zkrun.sh,target=/docker-entrypoint-initdb.d/zkrun.sh \
--mount type=volume,source=solr-home,target=/opt/solr/server/solr \
solr:latest
@chriseldredge
chriseldredge / run-salt-state.sh
Created October 26, 2016 15:23
The secret incantation for running a state in salt
salt <target> state.sls <state-name> [test=True]

Keybase proof

I hereby claim:

  • I am chriseldredge on github.
  • I am eldredge (https://keybase.io/eldredge) on keybase.
  • I have a public key ASA_MidmB_4mLDOu30SMs6xi2pWQLuQW1k9J78OXWv-G4go

To claim this, I am signing this object:

@chriseldredge
chriseldredge / k_daemon
Created July 10, 2014 19:11
Daemon script for KRuntime
#!/bin/bash
# invoke with arguments to pass to k (e.g. ./k_daemon web)
trap 'my_exit; exit' SIGINT SIGQUIT
fifo=$PWD/fifo.tmp
timeout=15
# make a fifo and attach to &3
mkfifo $fifo
@chriseldredge
chriseldredge / dnsmasq-regex.rb
Created November 9, 2013 19:30
Homebrew Formula for installing dnsmasq with regex patch from Jan Seiffert See: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2013q2/007124.html
require 'formula'
class DnsmasqRegex < Formula
homepage 'http://www.thekelleys.org.uk/dnsmasq/doc.html'
url 'http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.66.tar.gz'
sha256 '36232fa23d1a8efc6f84a29da5ff829c2aa40df857b9116a9320ea37b651a982'
option 'with-idn', 'Compile with IDN support'
depends_on "libidn" if build.include? 'with-idn'