Skip to content

Instantly share code, notes, and snippets.

View ewxrjk's full-sized avatar

Richard Kettlewell ewxrjk

View GitHub Profile
INFO:inntest.running:Running test test_errors_group_overview
DEBUG:nntpbits.ClientConnection:Connecting to localhost port 1119
DEBUG:nntpbits.ClientConnection:00000008 RECV b'200 test.anjou.terraraq.org.uk InterNetNews server INN 2.7.0 (20210917 prerelease) ready (transit mode)'
DEBUG:nntpbits.ClientConnection:00000008 SEND b'CAPABILITIES'
DEBUG:nntpbits.ClientConnection:00000008 RECV b'101 Capability list:'
DEBUG:nntpbits.ClientConnection:00000008 RECV b'VERSION 2'
DEBUG:nntpbits.ClientConnection:00000008 RECV b'IMPLEMENTATION INN 2.7.0 (20210917 prerelease)'
DEBUG:nntpbits.ClientConnection:00000008 RECV b'AUTHINFO'
DEBUG:nntpbits.ClientConnection:00000008 RECV b'IHAVE'
DEBUG:nntpbits.ClientConnection:00000008 RECV b'LIST ACTIVE ACTIVE.TIMES MOTD NEWSGROUPS'
@ewxrjk
ewxrjk / cpan
Created September 17, 2019 12:25
cpan 'minimal' config
$ cpan App:cpanminus
Loading internal logger. Log::Log4perl recommended for better logging
CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.
Would you like to configure as much as possible automatically? [yes] no
Use of uninitialized value $what in concatenation (.) or string at /usr/share/perl/5.28/App/Cpan.pm line 677, <STDIN> line 1.
root@sfere:~# dpkg --configure -a
Setting up initramfs-tools (0.133) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-4.19.0-5-amd64 (4.19.37-5+deb10u2) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.19.0-5-amd64
cp: cannot stat '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf': No such
file or directory
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.19.0-5-amd64 with 1.
@ewxrjk
ewxrjk / gist:183a3016cf762fc96cc0756925841ab8
Last active January 21, 2019 12:12
find ignores files it doesn't like
araminta:2014-09-11$ find . -name 20140911_182911_Hochstra▒e.jpg
araminta:2014-09-11$ echo $?
0
araminta:2014-09-11$ find . -name 2014\*
araminta:2014-09-11$ echo $?
0
araminta:2014-09-11$ ls -l 20140911_182911_Hochstra▒e.jpg
-rw-r--r-- 1 richard richard 529050 Jan 20 20:49 20140911_182911_Hochstra?e.jpg
araminta:2014-09-11$ find --version
find (GNU findutils) 4.7.0-git
@ewxrjk
ewxrjk / connect.slow.txt
Last active January 15, 2020 08:09
connect errors are slow on windows
# 1s delay connecting to something that isn't listening:
richard@tsais MINGW64 ~/src/gosrc (master)
$ time plink -v -P 3000 wampoon
Connecting to 172.17.207.76 port 3000
We claim version: SSH-2.0-PuTTY_Release_0.70
Failed to connect to 172.17.207.76: Network error: Connection refused
Network error: Connection refused
FATAL ERROR: Network error: Connection refused
@ewxrjk
ewxrjk / gist:8462dd1dffaf8900a7501b2dee05ea51
Created February 4, 2018 08:57
setxattr no space left on device
rsync: rsync_xal_set: lsetxattr(""/backup7/lyonesse/winusers/2018-02-04/richard/Favorites/DirectSound.url"","user.favicon") failed: No space left on device (28)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1668) [generator=3.1.2]
$ cat t
#! /bin/sh
set -e
s() {
"$@"
}
x=y s env
$ bash ./t|grep ^x
x=y
$ dash ./t|grep ^x
root@lyonesse:~# ls -l /av
total 0
lrwxrwxrwx 1 root mrtg 38 Nov 13 20:33 av -> /net/araminta.anjou.terraraq.org.uk/av
root@lyonesse:~# rm -f /av
rm: cannot remove '/av': Is a directory
Originally from http://linguistics.ucla.edu/ulsa/glossary.html but it got deleted.
Glossary of Linguistic Terminology
from Studies out in Left Field: Defamatory Essays Presented to James D. McCawley on the occasion of his 33rd or 34th birthday
U. Pani Shad et alii
University of Massachusetts et alibi
Rhotacirrm
#! /usr/bin/python3
class P(list):
def __call__(self, *args, **kwargs):
return [lv(*args, **kwargs) for lv in self]
def __getattr__(self, name):
return P([getattr(lv, name) for lv in self])
class F(object):