Skip to content

Instantly share code, notes, and snippets.

From c7caebe7d19d43bd8dad98afd28ee703e04ab806 Mon Sep 17 00:00:00 2001
From: Thomas Sibley <tom@zulutango.org>
Date: Fri, 8 Mar 2024 16:42:45 -0800
Subject: [PATCH] wip! status: show when tracking branch was last fetched
<https://metasocial.com/@trs/112062359954735355>
fetch now logs no-ops as "up-to-date" reflog entries to support this
---
builtin/fetch.c | 17 +++++++-----
From 0ac09c0541385289ce6398699ca8e0e2596c8afa Mon Sep 17 00:00:00 2001
From: Thomas Sibley <tom@zulutango.org>
Date: Fri, 8 Mar 2024 16:42:45 -0800
Subject: [PATCH] wip! status: show last reflog timestamp of tracking branch
<https://metasocial.com/@trs/112062359954735355>
---
remote.c | 58 +++++++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 45 insertions(+), 13 deletions(-)
- workflow: ./mpox/.github/workflows/fetch-and-ingest-branch.yaml
jobs:
fetch-and-ingest:
needs: [set_config_overrides]
permissions:
id-token: write
uses: nextstrain/.github/.github/workflows/pathogen-repo-build.yaml@master
secrets: inherit
with:
runtime: aws-batch
{
"ref": "trs/pathogen-repo-build/wait-for-aws-batch-job",
"inputs": {
"repo": "nextstrain/zika-tutorial",
"runtime": "aws-batch",
"run": "perl -pi -e 's/(?=augur tree)/sleep 240;/' Snakefile; nextstrain build --detach --env X=X ."
}
}
/usr/lib/ruby/gems/2.7.0/gems/rdoc-6.2.1.1/exe/rdoc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, for GNU/Linux 2.6.9, stripped
/usr/local/bin/csv2tsv: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=27e53e1f84df7ba7c2091839d557184036a919cc, with debug_info, not stripped
/usr/local/bin/gofasta: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, Go BuildID=yWxujNqjWDT1QiN3FnJ4/6ffI4jRMnWBSC3oi7Hsy/lnvl60FmDO6xJu-A3bjQ/cjeAl372Ux4t_LQsCQ3g, not stripped
/usr/local/bin/iqtree: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked,
@tsibley
tsibley / x.patch
Last active January 30, 2024 19:02
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
git -C ./mpox show
commit e6a06a2207d46998bca53635f6e4ab26981b00c2
Author: Thomas Sibley <tsibley@fredhutch.org>
Date: Tue Jan 30 10:51:26 2024 -0800
Automatically check for new GitHub actions versions
Configure Dependabot to do this for us,¹ as discussed in Slack.²
#!/usr/bin/env python3
import boto3
import logging
from argparse import ArgumentParser
from logging import info, error
from operator import attrgetter, itemgetter
from sys import exit
argparser = ArgumentParser()
argparser.add_argument("bucket")
#!/usr/bin/env bash
#
#
# Copyright 2013-2020 - Ingy döt Net <ingy@ingy.net>
#
### INLINED License (0.4.6, 110b9eb13f259986fffcf11e8fb187b8cce50921)
# The MIT License (MIT)
#
# Copyright (c) 2013-2020 Ingy döt Net
#!/usr/bin/env perl
use strict;
use warnings;
use Module::Runtime qw< require_module >;
use Text::CSV;
my $filename = $ARGV[0];
my $parser_class = $filename =~ /\.xlsx$/
? "Spreadsheet::ParseXLSX"
"""
Threading utilities.
"""
from threading import Thread, Event
class StoppableThread(Thread):
"""
A :cls:`Thread` with a :meth:`.stop` function and :attr:`.stopped`
attribute.