Skip to content

Instantly share code, notes, and snippets.

View yude's full-sized avatar

Takehiro Ogura yude

  • Internet Initiative Japan Inc.
  • Chiba, Japan
  • 17:59 (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 / rss.json
Created October 12, 2020 05:35
n8n 用設定ファイル: 新しい RSS 項目を Discord に流す
{
"name": "news",
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
230,
@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:1c168fd468c8e63f5d450871c3324ca8
Last active August 30, 2022 23:54
エゴサーチ用 Twitter 検索クエリー
(yude OR ゆで OR ゆでっち) -"ゆで鮭" -"なゆで" -"ゆで麺" -"ゆでうどん" -"ゆで太郎" -"ゆで汁" -"ゆゆゆで" -"ゆで卵" -"ゆで時間" -"茹でた孫" -"茹卵" filter:follows -"半熟" -"そばゆで" -from:yude_jp -to:yude_jp -from:yudejp -to:yudejp -from:SHIKANBLUSH -to:SHIKANBLUSH -from:yude_RT -to:yude_RT -from:yuderobot -to:yuderobot -from:yude_univ -to:yude_univ
@yude
yude / gist:140fa0104b2625311feece9432003fd6
Last active October 25, 2025 03:23
アニメ 録画予約時除外キーワード (正規表現)
(なんでここに先生が!?|乙女ゲームの破滅フラグしかない悪役令嬢に転生してしまった…X|虹ヶ咲学園スクールアイドル同好会|キミと僕の最後の戦場、あるいは世界が始まる聖戦 Season Ⅱ|SYNDUALITY Noir|ニートくノ一となぜか同棲はじめました|スクールアイドル同好会|Re:ゼロから始める異世界生活 3rd season|俺は全てを【パリイ】する|スライム倒して300年、知らないうちにレベルMAXになってました ~そのに~|最強になった俺がすべてを蹂躙するまで|自動販売機に生まれ変わった俺は迷宮を彷徨う|小林さんちのメイドラゴン|ぐらんぶる|GARTERBELT|怪人開発部の黒井津さん|紫雲寺家の子供たち|美男高校地球防衛部ハイカラ|日本へようこそエルフさん。|彼女、お借りします|神椿市建設中|10本アニメ|しゅわわん!|イマナマ|ぬきたし|おそ松さん|Pockets|GQuuuuuuX|手話アニメーション|アイドルマスター ミリオンライブ!|桃源暗鬼|盾の勇者の成り上がり|ドッグシグナル|ブルバスター|BanG Dream|わたしが恋人になれるわけないじゃん、ムリムリ!|newszero|えぶりでいホスト|Turkey|あらいぐま カルカル団|アリス・ギア・アイギス|阿波連さんははかれない season2|逃走中 グレートミッション|機動新世紀ガンダムX|ダンダダン|魔法科高校の劣等生 来訪者編|ある魔女が死ぬまで|宇宙人ムームー|完璧すぎて可愛げがないと婚約破棄された聖女は隣国に売られる|理系が恋に落ちたので証明してみた。|追放者食堂へようこそ|水属性の魔法使い|アークナイツ|異世界かるてっと|ウマ娘 シンデレラグレイ|カッコウ|アニオン! ワールド|ギルドの受付嬢ですが、残業は嫌なのでボスをソロ討伐しようと思います|やたらやらしい深見くん|伊藤潤二|ガチアクタ|履いてください、鷹峰さん|五等分の花嫁∬|明治剣客浪漫譚|AYAKA|B-PROJECT|ギヴン|ダンダダン|青春ブタ野郎はバニーガール先輩の夢を見ない|フェルマーの料理|笑ゥせぇるすまん|弘兼憲史セレクト 黄昏流星群 おとなシアター|おかしな転生|デュエル・マスターズWIN|しょうたいむ|アニメ D4DJ|ネクロノミ子のコズミックホラーショウ|百姓貴族|ガンダムアワー|伊藤潤二|鬼灯の冷徹|歌で聴く絵本|電脳コイル|ハートカクテル カ
@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: