Skip to content

Instantly share code, notes, and snippets.

View yude's full-sized avatar

Takehiro Ogura yude

  • Internet Initiative Japan Inc.
  • Chiba, Japan
  • 13:31 (UTC +09:00)
View GitHub Profile
@yude
yude / gist:d934976dd50e77c3e774b1edf3131e1c
Last active August 22, 2020 03:29
tasks.json - Visual Studio Code で C/C++ のコンパイルをいい感じにする
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "C/C++: gcc.exe build active file",
"command": "gcc.exe へのパス",
"args": [
"-g",
"${file}",
rem パスは適宜変更してください。
chcp 65001
@ECHO OFF
:FILEDROP
:REPEAT
ffmpeg -i %1 -filter_complex reverse;areverse "C:\Users\yude\Desktop\%~n1_tmp.mp4"
ffmpeg -i %~n1_tmp.mp4 -vf hflip,vflip "C:\Users\yude\Desktop\%~n1_tmp2.mp4"
ffmpeg -i %~n1_tmp2.mp4 -af asetrate=44100*130/100,atempo=100/130 -vf colorlevels=rimax=0:gimax=0:bimax=0:rimin=1:gimin=1:bimin=1 "C:\Users\yude\Desktop\%~n1_output.mp4"
@yude
yude / gist:7b699cb4cdf6352c22e5fbc4c7f5b467
Created October 12, 2020 13:41
ぎゅっとMaG のパーツをドラッグしようとして誤って文字列を選択してしまうのがウザすぎるからそれを防止する Stylus 用スタイルファイル
@-moz-document domain("host.lang.hiroshima-cu.ac.jp") {
.word{user-select:none}
}
@yude
yude / configuration.txt
Last active November 3, 2020 08:21
Nginx + Dynmap + MySQL 内部サーバーを使わない よくばりセット 2020
# All paths in this configuration file are relative to Dynmap's data-folder: minecraft_server/plugins/dynmap/
# All map templates are defined in the templates directory
# To use the HDMap very-low-res (2 ppb) map templates as world defaults, set value to vlowres
# The definitions of these templates are in normal-vlowres.txt, nether-vlowres.txt, and the_end-vlowres.txt
# To use the HDMap low-res (4 ppb) map templates as world defaults, set value to lowres
# The definitions of these templates are in normal-lowres.txt, nether-lowres.txt, and the_end-lowres.txt
# To use the HDMap hi-res (16 ppb) map templates (these can take a VERY long time for initial fullrender), set value to hires
# The definitions of these templates are in normal-hires.txt, nether-hires.txt, and the_end-hires.txt
# To use the HDMap low-res (4 ppb) map templates, with support for boosting resolution selectively to hi-res (16 ppb), set value to low_boost_hi
@yude
yude / gist:140fa0104b2625311feece9432003fd6
Last active April 1, 2026 11:21
アニメ 録画予約時除外キーワード (正規表現)
(なんでここに先生が!?|お隣の|夫婦交歓|乙女ゲームの破滅フラグしかない悪役令嬢に転生してしまった…X|虹ヶ咲学園スクールアイドル同好会|キミと僕の最後の戦場、あるいは世界が始まる聖戦 Season Ⅱ|SYNDUALITY Noir|ばっどがーる|ニートくノ一となぜか同棲はじめました|スクールアイドル同好会|Re:ゼロから始める異世界生活 3rd season|俺は全てを【パリイ】する|スライム倒して300年、知らないうちにレベルMAXになってました ~そのに~|最強になった俺がすべてを蹂躙するまで|自動販売機に生まれ変わった俺は迷宮を彷徨う|小林さんちのメイドラゴン|ぐらんぶる|GARTERBELT|怪人開発部の黒井津さん|紫雲寺家の子供たち|美男高校地球防衛部ハイカラ|日本へようこそエルフさん。|彼女、お借りします|神椿市建設中|10本アニメ|しゅわわん!|イマナマ|ぬきたし|おそ松さん|Pockets|GQuuuuuuX|手話アニメーション|アイドルマスター ミリオンライブ!|ようこそ実力至上主義の教室へ|桃源暗鬼|盾の勇者の成り上がり|ドッグシグナル|ブルバスター|BanG Dream|わたしが恋人になれるわけないじゃん、ムリムリ!|ユーフォニアム|EXILE|newszero|えぶりでいホスト|Turkey|ばっどがーる|あらいぐま カルカル団|アリス・ギア・アイギス|阿波連さんははかれない season2|逃走中 グレートミッション|機動新世紀ガンダムX|ダンダダン|魔法科高校の劣等生 来訪者編|ある魔女が死ぬまで|宇宙人ムームー|完璧すぎて可愛げがないと婚約破棄された聖女は隣国に売られる|理系が恋に落ちたので証明してみた。|追放者食堂へようこそ|水属性の魔法使い|アークナイツ|異世界かるてっと|ウマ娘 シンデレラグレイ|カッコウ|アニオン! ワールド|帝乃三姉妹は案外、チョロい。|ギルドの受付嬢ですが、残業は嫌なのでボスをソロ討伐しようと思います|やたらやらしい深見くん|伊藤潤二|ガチアクタ|履いてください、鷹峰さん|五等分の花嫁∬|明治剣客浪漫譚|AYAKA|B-PROJECT|ギヴン|ダンダダン|青春ブタ野郎はバニーガール先輩の夢を見ない|フェルマーの料理|笑ゥせぇるすまん|弘兼憲史セレクト 黄昏流星群 おとなシアター|おかしな転生|デュエル・マスターズWIN|しょうたいむ|アニメ D4D
@yude
yude / bot.py
Created January 17, 2021 11:39
Discord のテキストチャンネルから systemd をこねくり回す
import discord
from discord.utils import get
import subprocess
import getpass
import tempfile
import os
client = discord.Client()
passwd = (getpass.getpass() + '\n').encode()
token = os.environ.get('DISCORD_TOKEN')
@client.event
@yude
yude / keybase.md
Last active September 15, 2024 09:57

Keybase proof

I hereby claim:

  • I am yude on github.
  • I am yude (https://keybase.io/yude) on keybase.
  • I have a public key ASDYIcC_sZx0_hF_cHKrHFCfPMAlop0pmbxf7eJRheHZwAo

To claim this, I am signing this object:

BEGIN MESSAGE. cvxS3y4TKkkFIQX cnYadCFXxN3OKcr lCAt8BrGM2aontC e0XJYMIhrWx2Uup P5aDCLU95LzA15Q 1aSFffQ6JVdTCKq 6Xr2MZHgg6V6YzE deLmmUO4Orf822V aKFt9eZe5PEkinX BOtAFnhpNMdabmp kOs869Z9r1uqmHC Od8apLK5hDXjhOw 31fl8URKlwMLJfH rUylqugpRubBHTx XFlN. END MESSAGE.
12517[2022-04-10 03:30:38] VERBOSE[60317] res_pjsip/pjsip_options.c: Contact 300/sip:300@192.168.0.54:59980;ob is now Reachable. RTT: 8.165 msec
12518[2022-04-10 03:57:27] VERBOSE[60317] pbx_variables.c: Setting global variable 'SIPDOMAIN' to '192.168.0.80'
12519[2022-04-10 03:57:27] VERBOSE[60317] netsock2.c: Using SIP RTP Audio TOS bits 184
12520[2022-04-10 03:57:27] VERBOSE[60317] netsock2.c: Using SIP RTP Audio TOS bits 184 in TCLASS field.
12521[2022-04-10 03:57:27] VERBOSE[60317] netsock2.c: Using SIP RTP Audio CoS mark 5
12522[2022-04-10 03:57:27] VERBOSE[118122][C-00000014] pbx.c: Executing [500@from-internal:1] Set("PJSIP/400-0000001a", "__RINGTIMER=15") in new stack
12523[2022-04-10 03:57:27] VERBOSE[118122][C-00000014] pbx.c: Executing [500@from-internal:2] ExecIf("PJSIP/400-0000001a", "0?Set(__CWIGNORE=)") in new stack
12524[2022-04-10 03:57:27] VERBOSE[118122][C-00000014] pbx.c: Executing [500@from-internal:3] Macro("PJSIP/400-0000001a", "exten-vm,novm,500,0,0,0") in new stack
12525[2022-04-10 03