Skip to content

Instantly share code, notes, and snippets.

View susam's full-sized avatar

Susam susam

View GitHub Profile
(defvar previous-line-number nil)
(defun detect-line-number-change ()
(let ((current-line-number (line-number-at-pos)))
(when (and previous-line-number (/= current-line-number previous-line-number))
(message "%d => %d" previous-line-number current-line-number))
(setq previous-line-number current-line-number)))
(add-hook 'post-command-hook 'detect-line-number-change)

Summary of Stack Overflow Developer Survey 2022 Results

Survey results: https://survey.stackoverflow.co/2022/


Top 5 languages: JavaScript, HTML/CSS, SQL, Python, TypeScript

Top 5 loved languages: Rust, Elixir, Clojure, TypeScript, Julia

@susam
susam / beeper.log
Last active February 1, 2022 10:22
;;;; Beeper: See <https://news.ycombinator.com/item?id=30146451> for details.
;;;; Script: while true; do (echo ok | nc -q 1 -vlp 8000 2>&1; echo; date -u) | tee -a beeper.log; for i in 1 2 3 4; do printf '\a'; sleep 1; done & done
;;;; Filter: grep -a '^[A-Z][a-z][a-z] [A-Z][a-z][a-z] [0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] UTC [2-9][0-9][0-9][0-9]$' beeper.log
;;;; Started: 2022-01-31 10:14:00 UTC
;;;; Stopped: 2021-02-01 10:14:00 UTC
;;;; Connects: 4761
;;;; Beeps: 19044
Mon Jan 31 10:14:12 UTC 2022
Mon Jan 31 10:16:47 UTC 2022

Summary of Stack Overflow Developer Survey 2021 Results

Survey results: https://insights.stackoverflow.com/survey/2021


Top 5 general languages: JavaScript, HTML/CSS, Python, SQL, Java

Top 5 loved languages: Rust, Clojure, TypeScript, Elixir, Julia

$ openssl s_client -quiet -connect irc.libera.chat:6697 2> /dev/null
:tin.libera.chat NOTICE * :*** Checking Ident
:tin.libera.chat NOTICE * :*** Looking up your hostname...
:tin.libera.chat NOTICE * :*** Couldn't look up your hostname
:tin.libera.chat NOTICE * :*** No Ident response
NICK humpty
USER humpty humpty irc.libera.chat :Humpty Dumpty
:tin.libera.chat 001 humpty :Welcome to the Libera.Chat Internet Relay Chat Network humpty
:tin.libera.chat 002 humpty :Your host is tin.libera.chat[163.123.192.192/6697], running version solanum-1.0-dev

Casio FX-82ES, FX-83GTX, and FX-85GTX Comparison

Pictures

Casio FX-82ES Casio FX-83GTX

attaaaggtttataccttcccaggtaacaaaccaaccaactttcgatctcttgtagatctgttctctaaacg
aactttaaaatctgtgtggctgtcactcggctgcatgcttagtgcactcacgcagtataattaataactaat
tactgtcgttgacaggacacgagtaactcgtctatcttctgcaggctgcttacggtttcgtccgtgttgcag
ccgatcatcagcacatctaggtttcgtccgggtgtgaccgaaaggtaagatggagagccttgtccctggttt
caacgagaaaacacacgtccaactcagtttgcctgttttacaggttcgcgacgtgctcgtacgtggctttgg
agactccgtggaggaggtcttatcagaggcacgtcaacatcttaaagatggcacttgtggcttagtagaagt
tgaaaaaggcgttttgcctcaacttgaacagccctatgtgttcatcaaacgttcggatgctcgaactgcacc
tcatggtcatgttatggttgagctggtagcagaactcgaaggcattcagtacggtcgtagtggtgagacact
tggtgtccttgtccctcatgtgggcgaaataccagtggcttaccgcaaggttcttcttcgtaagaacggtaa
taaaggagctggtggccatagttacggcgccgatctaaagtcatttgacttaggcgacgagcttggcactga
@susam
susam / sinkholed.md
Last active September 26, 2023 21:28

Sinkholed

This story has been moved to my blog here: .

Recon and Attack Vectors from My Logs

This document contains excerpts from my web server logs collected over a period of 7 years that shows various kinds of recon and attack vectors.

There were a total of 37.2 million lines of logs out of which 1.1 million unique HTTP requests (Method + URI) were found.

$ sed 's/^.* - - \[.*\] "\(.*\) HTTP\/.*" .*/\1/' access.log &gt; requests.txt