Skip to content

Instantly share code, notes, and snippets.

View aiya000's full-sized avatar
🐶
Inu

aiya000 aiya000

🐶
Inu
View GitHub Profile
#!/bin/bash
# もし現在のgitブランチ(ここでfooとします。)がpushされていれば、{remote_name}/fooを返します。
# そうでなければこのブランチのルートとなるブランチ(分岐元)を取得し、それを返します。
#
# このプログラムはまず、リモート名を取得します。
# remoteが複数登録されている場合の適切な処理は未定義です。
# 現在は1番目のリモートを使用するようになっています。
# Returns tags and branches names of the root revision of current.
@aiya000
aiya000 / vrcss-fov.sh
Created January 29, 2022 18:03
vrcss-fov.sh
#!/usr/bin/env zsh
# https://gist.github.com/chigirits/55d6eed4396ed5da64878af2b43111ed
dist=./vrcss-fov-dist
if [[ ! -d $dist ]] ; then
mkdir $dist
fi

あー、加賀ちゃん、またあたしのプリンたべてるー!! こらあー!

え、、、お仕事で疲れてて、間違えちゃったの? そっか……疲れてるならしょうがないよね

よーし、加賀ちゃんが元気出るように、おねーちゃんが魔法かけてあげる!

加賀ちゃん、マイペースにがんばって、ゆっくりはたらいて…… あたしのプリン、返してね!

#!/bin/bash
i_have xsel && alias pbcopy='xsel --clipboard --input'
@aiya000
aiya000 / LICENSE
Last active November 3, 2021 17:23
ひぐらしのなく頃に反 設定資料集
The MIT License (MIT)
Copyright (c) 2021 aiya000
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
/**
* Exposes type functions.
*/
/**
* [Reference](https://stackoverflow.com/questions/42999983/typescript-removing-readonly-modifier)
*/
export type DeepMutable<T> = {
-readonly [P in keyof T]: DeepMutable<T[P]>;
};
@aiya000
aiya000 / config
Created September 29, 2021 14:04
[merge]
tool = unityyamlmerge
[mergetool "unityyamlmerge"]
trustExitCode = false
cmd = "C:\\\\Program\\ Files\\\\Unity\\\\Hub\\\\Editor\\\\2019.4.30f1\\\\Editor\\\\Data\\\\Tools\\\\UnityYAMLMerge.exe" merge -p "$BASE" "$REMOTE" "$LOCAL" "$MERGED"

NicoNicoNi~~ 🤟🤟 && にっこにっこにー🤟🙄🤟 Moggiと''love''で接近中!

↓「せつラボ」シリーズを執筆中✨(数学および圏論の初歩入門書) https://aiya000.booth.pm/items/1316747

↓「矢澤にこ先輩といっしょに代数!」を執筆!(代数的構造についての初歩入門書) https://aiya000.booth.pm/items/1575006

↓ 履歴書(Working curriculum vitae)

@aiya000
aiya000 / git
Last active August 24, 2021 06:55
#!/bin/bash
DEBUG=0
: git_bridge_wsl2_and_windows
: :
: Currently on NTFS, WSL2\'s git is too heavy.
: This is a workaround for that.
: :
: Recommend: ln -s git_bridge_wsl2_and_windows ~/bin/git
#!/bin/bash
# Currently on NTFS, WSL2's git is too heavy.
sub_cmd=$1
function should_use_windows_git () {
[[ $(pwd) =~ '^/mnt/' ]] \
|| [[ $(pwd) =~ '/home/aiya000/Windows' ]] \
|| [[ $(pwd) =~ '/home/aiya000/Desktop' ]]