Skip to content

Instantly share code, notes, and snippets.

@zfhrp6
zfhrp6 / README.md
Last active February 19, 2024 18:05
mixxx MIDI mapping (reloop mixtour)
@zfhrp6
zfhrp6 / youtube_url_canonicalizer.user.js
Created January 24, 2023 13:58
replace youtube short video page with normal video page
// ==UserScript==
// @name YouTube short video normalizer
// @author zfhrp
// @description Replace YouTube short video page url with canonical form (`https://www.youtube.com/watch?v=XXXXXXXX`)
// @homepageURL https://openuserjs.org/users/zfhrp
// @version 1.0.0
// @match *://www.youtube.com/shorts/*
// @icon https://www.youtube.com/s/desktop/82a4cf4f/img/favicon_32x32.png
// @run-at document-start
// ==/UserScript==
@zfhrp6
zfhrp6 / tweetdeck_dark.css
Last active March 20, 2022 13:48
tweetdeck stylus style
html.dark div.thread
{
display: none;
}
html.dark .tweet-context
{
margin-left: unset;
}
@zfhrp6
zfhrp6 / amazon_url_canonicalizer.user.js
Last active March 21, 2022 13:00
Amazon URL canonicalizer (remove various parameters)
// ==UserScript==
// @name Amazon URL canonicalizer
// @author zfhrp
// @description Replace Amazon product page url with canonical form (`https://amazon.co.jp/dp/XXXXXXXX/`)
// @homepageURL https://openuserjs.org/users/zfhrp
// @version 1.0.0
// @match *://*.amazon.co.jp/dp/*
// @match *://*.amazon.co.jp/*/dp/*
// @match *://*.amazon.co.jp/gp/product/*
// @match *://*.amazon.co.jp/*/ASIN/*
@zfhrp6
zfhrp6 / toggle_listening_line_in.py
Created September 6, 2021 12:02
toggle listeinng line-in device.
class Main:
def toggle(self, *args, **kwargs):
from pywinauto import Desktop, Application
Application().start('Rundll32.exe Shell32.dll,Control_RunDLL Mmsys.cpl,,1')
app = Application(backend='uia').connect(path='rundll32.exe', title='サウンド')
sound = app.window()
children = sound.child_window(
title='次のオーディオ録音デバイスがインストールされています:', control_type='List'
@zfhrp6
zfhrp6 / 2.c
Last active August 29, 2015 14:23
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define MAX_ARGS 50
#define MAX_LEN 500
int main(void)
{