This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This is a helper hack for updating the certs on the new OpenGear "Operations Manager" | |
# systems like OM2216. | |
# | |
# The script should be in the same directory as the key, cert & intermediate CA. | |
# Copyright 2020 Gentoo Authors, [email protected] | |
cd "$(dirname "$0")" | |
HOSTNAME=$1 | |
DEST="root@${HOSTNAME}" | |
SOCK=$(mktemp -p . ssh.XXXXXXXXX.sock ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. strptime isn't using the timezone specifier from "%z" to correct convert non-UTC back to UTC | |
2. conversion when local tz is UTC or PST to the same value suggests there might be a second bug, depending on implementation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/ganeti/ganeti/blob/master/src/Ganeti/THH/Types.hs#L118 | |
-- | Generic 'curry' that constructs a curring function of a given arity. | |
curryN :: Int -> Q Exp | |
curryN 0 = [| ($ ()) |] | |
curryN 1 = [| (. OneTuple) |] | |
curryN n = do | |
f <- newName "f" | |
ps <- replicateM n (newName "x") | |
return $ LamE (VarP f : map VarP ps) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 9f8846066dd18b19dc08d7d605be899fd7e79782 Mon Sep 17 00:00:00 2001 | |
From: "Robin H. Johnson" <[email protected]> | |
Date: Mon, 5 Jul 2021 14:34:14 -0700 | |
Subject: [PATCH] gen_moddeps: better module detection | |
Signed-off-by: Robin H. Johnson <[email protected]> | |
--- | |
gen_moddeps.sh | 22 ++++++++++++++++++++-- | |
1 file changed, 20 insertions(+), 2 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 5.13.0 Kernel Configuration | |
# | |
CONFIG_CC_VERSION_TEXT="x86_64-pc-linux-gnu-gcc (Gentoo Hardened 11.1.0-r1 p2) 11.1.0" | |
CONFIG_CC_IS_GCC=y | |
CONFIG_GCC_VERSION=110100 | |
CONFIG_CLANG_VERSION=0 | |
CONFIG_AS_IS_GNU=y | |
CONFIG_AS_VERSION=23601 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by configure, which was | |
generated by GNU Autoconf 2.69. Invocation command line was | |
$ ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/dante-1.4.3 --htmldir=/usr/share/doc/dante-1.4.3/html --libdir=/usr/lib64 --with-socks-conf=/etc/socks/socks.conf --with-sockd-conf=/etc/socks/sockd.conf --enable-preload --enable-clientdl --enable-serverdl --enable-drt-fallback --with-libc=libc.so.6 --disable-debug --without-gssapi --with-pam --without-upnp --enable-static --without-libwrap | |
## --------- ## | |
## Platform. ## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mean of time md5sum: 3.470user 0.152system 0:03.632elapsed | |
mean of dd output lines: 3.6348s | |
mean of time dd: 0.000user 0.700system 0:03.632elapsed | |
# for i in $(seq 1 10) ; do ( /usr/bin/time dd if=/dev/zero bs=1M count=2048 | /usr/bin/time md5sum ) 2>&1 | tee time.$(printf %03d $i) ; done ;2048+0 records in | |
2048+0 records out | |
2147483648 bytes (2.1 GB, 2.0 GiB) copied, 3.69002 s, 582 MB/s | |
0.00user 0.71system 0:03.69elapsed 19%CPU (0avgtext+0avgdata 2944maxresident)k | |
0inputs+0outputs (0major+344minor)pagefaults 0swaps | |
a981130cf2b7e09f4686dc273cf7187e - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13-20:37:56 <@robbat2> ezzieyguywuf, FreedomBear: I can 100% recommend using R via docker containers; upstream keeps them | |
VERY up to date | |
13-20:38:54 <@robbat2> open-source textbook using R to do Forecasting: https://otexts.com/fpp3/ | |
13-20:40:56 <@robbat2> the real mental breakthrough for me was realizing that forecasting was fundamentally converting any | |
given series to a signal, doing signal analysis (e.g. fourier), and using that analysis to "predict" | |
what the next terms of a sequence would be | |
13-20:42:06 <@robbat2> the big win of the docker containers is full multi-threading R stuff that's hard to get otherwise | |
13-20:42:36 <@robbat2> i used it on a project that reliably burned all 16 cores on my Ryzen for 30 minutes wallclock per | |
dataset | |
13-20:43:42 <@robbat2> the textbook doesn't specifically cover using it via Docker, but it's a small hop only |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN CERTIFICATE----- | |
MIIFdTCCBF2gAwIBAgISBN7pFW590bQpYvke96v4zy7cMA0GCSqGSIb3DQEBCwUA | |
MDIxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQswCQYDVQQD | |
EwJSMzAeFw0yMTAyMjIwNDU5MjFaFw0yMTA1MjMwNDU5MjFaMCIxIDAeBgNVBAMT | |
F2luZnJhLXN0YXR1cy5nZW50b28ub3JnMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A | |
MIIBCgKCAQEArfGnHIJQDxb5AZa26rwAU4MbIiVHg3ARgQ3+7NyHzhkSjBQz4PRq | |
a8qjs3MEjJKuziuFBlsbQBwaFQoY6rjp2v0VEEuTeigv8kl28NSxNmWatMOgxNwi | |
34HsKR4nxhJatgA8h9x0vxW13FOGy6fRFrYHUqEP9dmFzUtqmLyP26Pv5xS9tIYo | |
l5OQ8GQXMWHDQMJ/XI92RQhmXGFl/gfmUIayxSrJxMeCIj7ZCw84l8y3+MO9tsRx | |
olzFHvQkqlXodUnbQd6osgBU0fAxlUBGWL9k0SMOHW8kv0y82rU+i+/ZYlIxhoxl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gadwall /home/robbat2 # qlist -ISUC |grep -i -e sys-apps/portage -e /requests -e /cryptography -e gemato -e pyopenssl -e urllib3 | |
app-portage/gemato:0 gpg python_targets_python3_6 tools | |
dev-python/cryptography:0 python_targets_python3_6 | |
dev-python/pyopenssl:0 python_targets_python3_6 | |
dev-python/requests:0 python_targets_python3_6 ssl | |
dev-python/urllib3:0 python_targets_python3_6 | |
sys-apps/portage:0 ipc native-extensions python_targets_python3_6 rsync-verify xattr | |