Skip to content

Instantly share code, notes, and snippets.

View jen6's full-sized avatar
🔝
Growing Faster

SonGeon jen6

🔝
Growing Faster
View GitHub Profile
@jen6
jen6 / house_finder.ipynb
Last active February 29, 2024 04:15
직방을 크롤링해 전세자금 대출이 가능한 집 알아보기
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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 = {

From van@helios.ee.lbl.gov Mon Apr 30 01:44:05 1990 To: end2end-interest@ISI.EDU Subject: modified TCP congestion avoidance algorithm Date: Mon, 30 Apr 90 01:40:59 PDT From: Van Jacobson van@helios.ee.lbl.gov Status: RO

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

@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
"""
Copyright (c) 2021 [Son Geon <work.jen6@gmail.com>]
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
<!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>
@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
import subprocess
#import urllib
from urllib.parse import urlencode
from urllib.request import Request, urlopen
from urllib.error import URLError, HTTPError
import time
import json
kHerokuUrl = "http://lit-castle-67838.herokuapp.com"
delayTime = 5
@jen6
jen6 / staruml.png
Last active April 2, 2019 09:41
garage_open_system
staruml.png
#!/bin/bash
if [ "$#" -lt 2 ]; then
echo "$# is Illegal number of parameters."
echo "Usage: $0 [input.csv] [kakao rest api key]"
exit 1
fi
while read LINE; do
RESULT=`curl -vs -X GET "https://dapi.kakao.com/v2/local/search/address.json"\