Skip to content

Instantly share code, notes, and snippets.

View yude's full-sized avatar

Takehiro Ogura yude

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 May 5, 2024 02:49
アニメ 録画予約時除外キーワード (正規表現)
(10本アニメ|しゅわわん!|イマナマ|おそ松さん|手話アニメーション|ドッグシグナル|ブルバスター|BanG Dream|newszero|アリス・ギア・アイギス|逃走中 グレートミッション|機動新世紀ガンダムX|アニオン! ワールド|伊藤潤二|明治剣客浪漫譚|AYAKA|B-PROJECT|ギヴン|笑ゥせぇるすまん|弘兼憲史セレクト 黄昏流星群 おとなシアター|おかしな転生|デュエル・マスターズWIN|アニメ D4DJ|百姓貴族|ガンダムアワー|伊藤潤二|鬼灯の冷徹|歌で聴く絵本|電脳コイル|ハートカクテル カラフル|地球外少年少女|マイプとティラノの恐竜ダイすき|おねがい☆ティーチャー|5分でわかるアニメ|食×アニメ|青のオーケストラ|マイプとティラノの恐竜ダイすき|お好みサタデー|ハートカクテル カラフル|それしか ないわけ ないでしょう|新機動戦記ガンダムW|夜廻り猫|ピーター・グリルと賢者の時間|VAZZROCK THE ANIMATION|ラウド・ハウス|銀河英雄伝説|虫かぶり姫|ブレイブ|トモダチゲーム(ドラマ版)|Morfonication|アニメ シャインポスト|咲う アルスノトリア すんっ|最果てのパラディン|BanG Dream! Morfonication|アニメ シャインポスト|エスタブライフ|森のくまさん、冬眠中。|アイドルマスター シンデレラガールズ|ヴァンガード|戦争とアイドル|深海のサバイバル|ポケモンとどこいく|禍特対 汐留出張所購買部|ボイコミラボ|3秒後、野獣。|ヒロインたるもの|トモダチゲーム|ツルネ ―風舞高校弓道部―|ただいま、おかえり|アストロノオト|BabyBus|恋は世界征服のあとで|世界史ドリームマッチ 最強キング決定戦|であいもん|群青のファンファーレ|ハイキュー|アイドルマスターシンデレラガールズ 10周年記念 ショッピングワンダーランド|レイトン ミステリー探偵社|遊戯王ゴーラッシュ|四畳半神話大系|骸骨騎士様、只今異世界へお出掛け中|パリピ孔明|勇者、辞めます|プラネット・ウィズ|OverDrive|アニメ ULTRAMAN|絶対防衛レヴィアタン|アニメ聖地旅|湖池屋SDGs劇場|呪術廻戦|インセクトランド|乙女ゲー世界はモブに厳しい世界です|GO\!GO\!アトム|ARNOLD & PUPPETS|昭和元禄落語心中|ラブオールプレー|佐々木と宮野|
@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

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: