Skip to content

Instantly share code, notes, and snippets.

View Oxyd76's full-sized avatar
📰
Writing article

Vadim "Oxyd" Priluzkiy Oxyd76

📰
Writing article
View GitHub Profile
@Oxyd76
Oxyd76 / gist:49fbe748bd8ea3089eede503bac226d3
Created December 5, 2021 07:08 — forked from mattm7n/gist:1405067
Monitor DHCP traffic with tcpdump
# Monitoring on interface eth0
tcpdump -i eth0 -n port 67 and port 68
peers = [
'tcp://ygg.cofob.ru:80',
'tcp://ygg-ru.cofob.ru:18000',
'tcp://46.151.26.194:60575'
]
@Oxyd76
Oxyd76 / Sort.rexx
Created December 4, 2016 01:52
Sort numbers in every string of test.txt
/* REXX (OS/2) */
Parse arg filename
call stream filename, 'C', 'Open'
Do while Lines(filename)
line = linein(filename)
Parse value line with left ' ' right
If left > right Then line = right || ' ' || left
pos=stream(filename, 'C', 'Seek -'Length(line)+2)
call lineout filename, line
End