Skip to content

Instantly share code, notes, and snippets.

View ashpool37's full-sized avatar
🌠
You're gonna carry that weight.

Artem Zhurikhin ashpool37

🌠
You're gonna carry that weight.
View GitHub Profile
@assimilat
assimilat / pam_modules.list
Created October 22, 2021 19:10
list_of_pam_modules
https://github.com/nuvious/pam-duress
A Pluggable Authentication Module (PAM) which allows the establishment of alternate passwords that can be used to perform actions to clear sensitive data, notify IT/Security staff, close off sensitive network connections, etc if a user is coerced into giving a threat actor a password.
https://github.com/uber/pam-ussh
uber's ssh certificate pam module
https://github.com/Yubico/yubico-pam
Yubico Pluggable Authentication Module (PAM)
https://github.com/hamzasood/pam_touchid
from typing import Any, Dict, List, Mapping, Union
# Values for JSON that aren't nested
JSON_v = Union[str, int, float, bool, None]
# If MyPy ever permits recursive definitions, just uncomment this:
# JSON = Union[List['JSON'], Mapping[str, 'JSON'], JSON_v]
# Until then, here's a multi-layer way to represent any (reasonable) JSON we
# might send or receive. It terminates at JSON_4, so the maximum depth of
@kurinoku
kurinoku / eval.rkt
Last active December 10, 2023 21:28
[Racket] Dynamically evaluate your language using `make-module-evaluator`
#lang racket/base
(require racket/sandbox
racket/runtime-path
"parser.rkt"
"tokenizer.rkt"
"expander.rkt"
syntax/strip-context)
;; To pass to the module datum
@tckmn
tckmn / gist:8078a34e3287ec32dadf
Created November 8, 2014 16:31
(Almost) all Nethack messages, more gooder version (much better)
pager.c:344 pline("Cannot open data file!")
pager.c:467 pline("? Seek error on 'data' file!")
pager.c:482 pline("I don't have any information on those things.")
pager.c:578 pline("Please move the cursor to %s.", what_is_an_unknown_object)
pager.c:581 pline("Pick an object.")
pager.c:815 pline("%s", out_str)
pager.c:825 pline("I've never heard of such things.")
pager.c:865 pline("That is %s%s%s.", an(defsyms[trap_to_defsym(tt)].explanation), !trap->madeby_u ? "" : (tt == WEB) ? " woven" : <x> <x> <x> (tt == HOLE || tt == PIT) ? " dug" : " set", !trap->madeby_u ? "" : " by you")
pager.c:876 pline("I can't see a trap there.")
pager.c:891 pline("Cannot open data file!")
('uncursed magic marker', 3987)
('2 blessed scrolls of charging', 3889)
('magic marker', 3571)
('blessed magic marker', 2540)
('blessed greased +2 silver dragon scale mail', 1167)
('blessed +2 silver dragon scale mail', 1105)
('3 blessed scrolls of charging', 1096)
('blessed +2 gray dragon scale mail', 1033)
('blessed spellbook of identify', 886)
('2 blessed scrolls of genocide', 850)