Skip to content

Instantly share code, notes, and snippets.

View kyle-seongwoo-jun's full-sized avatar

Kyle Seongwoo Jun kyle-seongwoo-jun

View GitHub Profile
const website_url = `https://www.instagram.com/${INSTAGRAM_ID}/live/`
const streaming_url = window._sharedData.entry_data["LiveBroadcastPage"][0].broadcast_dict.dash_playback_url
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Aurender OAUTH</title>
<style type="text/css">
a {
color: black;
// ported from https://github.com/dojo/dojox/blob/master/encoding/crypto/Blowfish.js
// kyle-seongwoo-jun
import 'package:meta/meta.dart';
const int _pow8 = 0x100; // 2^8
const int _pow16 = 0x10000; // 2^16
const int _pow24 = 0x1000000; // 2^24
class Blowfish {
static int _xor(int x, int y) {
async function initYoutubeCaptions() {
const video = document.querySelector('video')
const captions = await getYoutubeCaptions()
addCaptions(video, captions)
}
function selectYoutubeCaption(language) {
const video = document.querySelector('video')
@kyle-seongwoo-jun
kyle-seongwoo-jun / aab2apk.ps1
Created May 12, 2020 07:41
Convert aab(Android App Bundle) file to apk file
param($PACKAGE_NAME)
$KEY_STORE = ""
$KEY_STORE_PASSWORD = ""
$KEY_ALIAS = ""
$KEY_PASSWORD = ""
# get latest bundle tool info
$GITHUB_REQUEST = Invoke-RestMethod "https://api.github.com/repos/google/bundletool/releases/latest"
$GITHUB_ASSET = $GITHUB_REQUEST.assets[0]
@kyle-seongwoo-jun
kyle-seongwoo-jun / Limiter.cs
Created May 7, 2020 09:01
C# Limit running code by time
class Limiter
{
static readonly object _mtx = new object();
readonly TimeSpan _limit;
Action _action;
bool _isWaiting;
bool _requested;
public Limiter(double limit) : this(TimeSpan.FromMilliseconds(limit))
uti id title platforms packages
com.xamarin.workbook
602af677-9374-44ef-b2fc-5122738b86e8
tunein
Console
id version
Newtonsoft.Json
12.0.3
@kyle-seongwoo-jun
kyle-seongwoo-jun / deconstruct.cs
Created December 19, 2019 00:59
Deconstructing KeyValuePair
static class KeyValuePairExtensions
{
public static void Deconstruct<TKey, TValue>(
this KeyValuePair<TKey, TValue> kvp,
out TKey key,
out TValue value)
{
key = kvp.Key;
value = kvp.Value;
}
@kyle-seongwoo-jun
kyle-seongwoo-jun / ssh-keygen.sh
Created December 6, 2019 02:22
ssh-keygen to login without password
# generate ssh key
$ ssh-keygen -t rsa
# create .ssh/authorized_keys on server
# and paste client ssh key
# and set permission
$ ssh $username@$hostname mkdir -p .ssh
$ cat .ssh/id_rsa.pub | ssh $username@$hostname 'cat >> .ssh/authorized_keys'
$ ssh $username@$hostname "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"
@kyle-seongwoo-jun
kyle-seongwoo-jun / Microsoft.PowerShell_profile.ps1
Last active December 6, 2019 01:56
My PowerShell $PROFILE file
# Ctrl+D to exit
Set-PSReadlineKeyHandler -Chord Ctrl+d -Function DeleteCharOrExit
# alias which command
function which($name)
{
Get-Command $name | Select-Object -ExpandProperty Definition
}