Skip to content

Instantly share code, notes, and snippets.

View ewxrjk's full-sized avatar

Richard Kettlewell ewxrjk

View GitHub Profile
@ewxrjk
ewxrjk / gist:93808cdab43bcc5610519bd1f1a8c577
Last active January 15, 2021 12:39
FireTV pretending to be 192.168.49.1?
** Please do not post any more messages which amount to "I have the same issue" with no additional information.
** I get a notification for each one and it is just noise; knowing that one more person has the same issue does
** not help anyone. If these content-free comments continue to appear I will delete this gist to cut down on
** the noise. You have been warned.
Aug 21 20:02:57 sfere kernel: [107297.977252] IPv4: martian source 172.17.207.66 from 192.168.49.1, on dev br1
Aug 21 20:02:57 sfere kernel: [107297.981023] ll header: 00000000: 00 04 a7 05 ac 0c 84 d6 d0 91 67 b4 08 00 ..........g...
Aug 21 20:02:57 sfere kernel: [107298.729160] IPv4: martian source 172.17.207.66 from 192.168.49.1, on dev br1
Aug 21 20:02:57 sfere kernel: [107298.736326] ll header: 00000000: 00 04 a7 05 ac 0c 84 d6 d0 91 67 b4 08 00 ..........g...
Aug 21 20:02:58 sfere kernel: [107299.793616] IPv4: martian source 172.17.207.66 from 192.168.49.1, on dev br1

Keybase proof

I hereby claim:

  • I am ewxrjk on github.
  • I am ewx (https://keybase.io/ewx) on keybase.
  • I have a public key whose fingerprint is 9006 B0ED 710D B81B 76D3 68D9 D338 8BA1 8A74 1BEF

To claim this, I am signing this object:

08:48 < ewx> wow, 11 curl advisories
09:07 < rejs> ewx: is that part of the 12 infosec days of christmas?
09:12 < ewx> that needs to exist.
09:14 < rejs> five zero-days!
09:19 < ewx> that occurred to me too.
#!/bin/bash -e
set -x
read -r -d '' BODY <<EOM
foo
EOM
echo "$BODY" | mail rjk
@ewxrjk
ewxrjk / missed-optimization.txt
Created April 30, 2017 10:21
Missed optimization
richard@deodand:~$ cat t.c
unsigned long f();
unsigned long h() {
unsigned long x = f();
return x == (unsigned long)-1 ? 0 : x + 1;
}
richard@deodand:~$ gcc -O3 -S t.c && cat t.s
.file "t.c"
.text
#! /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):
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
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
$ cat t
#! /bin/sh
set -e
s() {
"$@"
}
x=y s env
$ bash ./t|grep ^x
x=y
$ dash ./t|grep ^x
@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]