Skip to content

Instantly share code, notes, and snippets.

View JustAnAverageGuy's full-sized avatar
🦝
doing average stuff

JustAnAverageGuy

🦝
doing average stuff
  • India
View GitHub Profile
@JustAnAverageGuy
JustAnAverageGuy / fill-OE-preference-form.py
Last active June 28, 2025 19:24
fills OE preference form
#!/usr/bin/env python3
import sys
import pyautogui as pg
# List of form courses generated as
# JSON.stringify([...$0.children].map(x => x.innerHTML).filter(k => k))
FORM_COURSES = [ # {{{
'BM-201',
'EC-423',
'CHI-403',
@nfejzic
nfejzic / ANSI.md
Created November 8, 2024 07:41 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@AriPerkkio
AriPerkkio / tic-tac-toe.ts
Created April 9, 2023 09:17
Typescript type system Tic-tac-toe game
/* Typings */
type TicTacToe<
MovesOrNextBoard extends Board | Turn[], // On initial round this will be a Turn[], on next rounds it will be a Board with some moves done
MovesOrMissing extends Turn[] = [], // On initial round this will be empty, on next rounds it will be the moves
PreviousMark extends ValidMark | undefined = undefined, // On initial round this will be missing, on next rounds it will be the mark of the last move
CurrentBoard extends Board = ResolveBoardFromArgs<MovesOrNextBoard>, // Parsed argument
Moves extends Turn[] = ResolveNextMovesFromArgs<MovesOrNextBoard, MovesOrMissing> // Parsed argument
> =
Moves extends [infer NextMove, ...infer NextMoves] ?
NextMove extends Turn ?
@mgeeky
mgeeky / cve-2018-10993.py
Created December 4, 2018 00:55
CVE-2018-10993 libSSH authentication bypass exploit
#!/usr/bin/python3
#
# CVE-2018-10993 libSSH authentication bypass exploit
#
# The libSSH library has flawed authentication/connection state-machine.
# Upon receiving from connecting client the MSG_USERAUTH_SUCCESS Message
# (as described in RFC4252, sec. 5.1.) which is an authentication response message
# that should be returned by the server itself (not accepted from client)
# the libSSH switches to successful post-authentication state. In such state,
@fnky
fnky / ANSI.md
Last active June 28, 2025 19:11
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27