Skip to content

Instantly share code, notes, and snippets.

View Greydus's full-sized avatar

Greydus Greydus

View GitHub Profile
param ([string]$video)
$public_music_folder = 'Users\Public\Music'
$format = 'aac'
$video_file = bin\yt-dlp.exe -O after_move:filepath $video
$parent_directory = Split-Path $video_file -Parent
$extractor = Split-Path $parent_directory -Parent | Split-Path -Leaf
$channel_id = Split-Path $parent_directory -Leaf
$video_id = Split-Path $video_file -LeafBase
// ==UserScript==
// @name 4chan-media
// @namespace White wolf
// @match https://boards.4chan.org/*/thread/*
// @match https://boards.4channel.org/*/thread/*
// @version 1.11
// @description 3/1/2023, 17:25:04
// ==/UserScript==
const thread = document.body.getElementsByClassName('thread').item(0);
@Greydus
Greydus / Wolf.py
Last active August 19, 2021 02:45
import argparse
import urllib.parse
import urllib.request
parser = argparse.ArgumentParser()
parser.add_argument('url', metavar='<url>')
parser.add_argument('-d', '--data', metavar='<data>')
cmd_opts = parser.parse_args()
@Greydus
Greydus / Yoshino.js
Last active January 20, 2022 04:21
Replaces all YouTube embed URLs
// ==UserScript==
// @name Yoshino
// @namespace moe.greydus
// @version 2.28.0
// @description Replaces all YouTube embed URLs
// @match *://*/*
// @exclude-match https://www.youtube.com/*
// ==/UserScript==
var iframe_list = document.querySelectorAll('iframe[src*="www.youtube.com"]');

Keybase proof

I hereby claim:

  • I am greydus on github.
  • I am greydus (https://keybase.io/greydus) on keybase.
  • I have a public key ASC_Tkm62CPaPweRzqkeMc-tFS4-MyhAKLdEk9ryBHIufQo

To claim this, I am signing this object:

@echo off
set $osu_default_songs_path=%localappdata%\osu!\Songs
cd /d %1
for /f "tokens=*" %%g in ('dir /b') do (
if [%2] equ [] (
move /y "%%g" %$osu_default_songs_path%
) else (