Skip to content

Instantly share code, notes, and snippets.

View jen6's full-sized avatar
πŸ”
Growing Faster

SonGeon jen6

πŸ”
Growing Faster
View GitHub Profile

From [email protected] Mon Apr 30 01:44:05 1990 To: [email protected] Subject: modified TCP congestion avoidance algorithm Date: Mon, 30 Apr 90 01:40:59 PDT From: Van Jacobson [email protected] Status: RO

This is a description of the modified TCP congestion avoidance algorithm that I promised at the teleconference.

@jen6
jen6 / house_finder.ipynb
Last active May 14, 2024 13:39
직방을 크둀링해 μ „μ„ΈμžκΈˆ λŒ€μΆœμ΄ κ°€λŠ₯ν•œ μ§‘ μ•Œμ•„λ³΄κΈ°
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jen6
jen6 / authy_export.js
Last active April 9, 2022 04:18
hammer_spoon_mfa_automation
/* https://gist.github.com/gboudreau/94bb0c11a6209c82418d01a59d958c93 */
/* base32 */
/*
Copyright (c) 2011, Chris Umbel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@jen6
jen6 / skadnetwork_postback_signature_verify_example.py
Created January 4, 2021 16:11
skadnetwork postback signature verify example
# https://github.com/pyca/cryptography
from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.primitives.asymmetric import ec
from base64 import b64decode
apple_pbkey = b64decode(
"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWdp8GPcGqmhgzEFj9Z2nSpQVddayaPe4FMzqM9wib1+aHaaIzoHoLN9zW4K8y4SPykE3YVK3sVqW6Af0lfx3gg=="
)
data = {
@jen6
jen6 / jq.sh
Created February 26, 2021 05:27
AWESOME jq
# flatten json
jq '. as $in
| reduce leaf_paths as $path ({};
. + { ($path | map(tostring) | join(".")): $in | getpath($path) })' target.json
# un-flatten json
jq 'reduce to_entries[] as $kv ({}; setpath($kv.key|split("."); $kv.value))' ./target.json
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta name="description" content="Meta Description">
<title>HTML Title</title>
<meta property=og:title content="ablog 1234">
<meta property=og:description content=abc>
<meta property=og:site_name content=Airbridge>
<meta property=og:type content=article> <meta property=og:url content=http://abr.ge/o5jxfm>
<meta property=og:image content=https://lh3.googleusercontent.com/PTki_qzcEDBMsHtEcH3qVrbECMerKGtj4qE85SLtxCAbKUtchsc5isKE0yD1YUffYEg= s180>
"""
Copyright (c) 2021 [Son Geon <[email protected]>]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE