Skip to content

Instantly share code, notes, and snippets.

@chidea
chidea / settings.json
Created March 15, 2021 15:10
Seoul256 color scheme for Windows Terminal
{
"schemes" :
[
{
"name" : "Seoul256",
"background" : "#3a3a3a",
"foreground" : "#d0d0d0",
"cursorColor" : "#d0d0d0",
"brightBlack" : "#626262",
"brightRed" : "#d68787",
// ==UserScript==
// @name Youtube masthead hider
// @namespace http://tampermonkey.net/
// @version 0.9
// @description press h key to hide Youtube masthead menu
// @author ChIdea
// @match https://www.youtube.com/*
// @grant none
// @updateURL https://gist.githubusercontent.com/chidea/c5324f8d7141185e634353c63bb6c384/raw/yt_mh_hider.js
// @downloadURL https://gist.githubusercontent.com/chidea/c5324f8d7141185e634353c63bb6c384/raw/yt_mh_hider.js
@chidea
chidea / yt.py
Last active June 22, 2019 21:08
Youtube live proxy for 24/7 radio channels (audio only)
# python3 yt.py <URL> [proxy player address]
# URL can be something like "https://www.youtube.com/watch?v=8XJ6r4U171I"
# or "8XJ6r4U171I"
# or even "https://www.youtube.com/freecodecamp/live"
# Proxy player can be started with `ffplay -rtsp_flags listen rtsp://0.0.0.0:12000/live.sdp`
# omit proxy player address to play it locally by starting localhost proxy player.
from youtube_dl import YoutubeDL as YDL
from time import time as now, sleep
from urllib.request import urlopen
@chidea
chidea / ps-seoul256.json
Last active May 23, 2018 14:48
Powershell Seoul256 colorscheme concfg
{
"black": "#4E4E4E",
"dark_blue": "#85ADD4",
"dark_green": "#5F865F",
"dark_cyan": "#87AFAF",
"dark_red": "#D68787",
"dark_magenta": "#D7AFAF",
"dark_yellow": "#D8AF5F",
"gray": "#D0D0D0",
"dark_gray": "#626262",
@chidea
chidea / etorrent.user.js
Last active April 12, 2020 13:59
etorrent.kr access key replacement (use greasemonkey fyi)
// ==UserScript==
// @name etorrent page navigation keybind
// @description press n to go to the next page and b for backward
// @homepageURL https://gist.github.com/chidea/3ea515a554946d3001ca9f429d1c8612
// @updateURL https://gist.githubusercontent.com/chidea/3ea515a554946d3001ca9f429d1c8612/raw/etorrent.user.js
// @downloadURL https://gist.githubusercontent.com/chidea/3ea515a554946d3001ca9f429d1c8612/raw/etorrent.user.js
// @author ChIdea
// @version 0.2
// @date 11/23/2017
// @namespace chidea
@chidea
chidea / ping.py
Last active September 5, 2022 15:34 — forked from pklaus/ping.py
A pure python3 ping implementation using raw socket.
#!/usr/bin/env python3
"""
Other Repositories of python-ping
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* https://github.com/l4m3rx/python-ping supports Python2 and Python3
* https://bitbucket.org/delroth/python-ping

Keybase proof

I hereby claim:

  • I am chidea on github.
  • I am chidea (https://keybase.io/chidea) on keybase.
  • I have a public key whose fingerprint is 9D40 3E9A A8A1 5FA1 0AA2 F3E6 8277 472E 3865 AB9D

To claim this, I am signing this object: