Skip to content

Instantly share code, notes, and snippets.

View alemonmk's full-sized avatar

Lemon Lam alemonmk

View GitHub Profile
@alemonmk
alemonmk / filter.txt
Last active December 24, 2022 09:24
My twitter page clean up cosmetic filters
! Remove side columns
twitter.com#?#nav > a[href="/explore"]
twitter.com#?#div[aria-label="Timeline: Trending now"]:upward(3)
twitter.com#?#aside[aria-label="Who to follow"]:upward(1)
twitter.com#?#aside[aria-label="Relevant people"]:upward(1)
! Remove heading for following insertions
twitter.com#?#:not(:matches-path(/topic|list|follow|explore/)) div:has(> div > div > div > h2[role="heading"] > div > span)
twitter.com#?#:matches-path(/status/) div:has(h2:has-text(Related Tweets)) ~ div
@alemonmk
alemonmk / make_comparision.py
Last active February 21, 2021 15:48
Use VapourSynth to extract video frames for comparision
import vapoursynth as vs
import random
from os import mkdir
from os.path import exists, basename, dirname, splitext
import numpy as np
import cv2 as cv
import mvsfunc as mvs
core = vs.get_core()
encodeddir = r''
@alemonmk
alemonmk / encode.vpy
Last active September 5, 2016 06:38
My VapourSynth filter combination
import vapoursynth as vs
import vsTAAmbk as taa
import havsfunc as hav
core = vs.get_core()
#vsrc = core.lsmas.LWLibavSource(srcpath)
vsrc = core.raws.Source(source=srcpath, width=1920, height=1080, fpsnum=24000, fpsden=1001, src_fmt='YUV420P8')
ubd = core.fmtc.bitdepth(clip=vsrc, bits=16)
aa = taa.TAAmbk(input=ubd, aatype=-3, sharp=-1, mtype=1, cycle=2, lsb=True)
@alemonmk
alemonmk / encode.bat
Last active January 14, 2016 16:35
My x265 encoding batch script
mode con:cols=100 lines=30
rem static start
rem Required programs
set ffmpeg=
set vspipe=
set mkvmerge=
set mediainfo=
set x265=
set mkvd=