Skip to content

Instantly share code, notes, and snippets.

View aiya000's full-sized avatar
🐶
Inu

aiya000 aiya000

🐶
Inu
View GitHub Profile
@aiya000
aiya000 / gh-issue-view-select
Created March 4, 2025 17:48
Immediately open a GitHub issue by peco or fzf and etc
#!/bin/bash
# Shows GitHub issues in interactive filter and opens selected issue with gh issue view.
#
# ```shell-session
# $ gh-issue-view-select
# # Shows interactive filter with issues
# # Opens selected issue with gh issue view
# ```
@aiya000
aiya000 / virus_scan.sh
Last active February 24, 2025 16:39 — forked from nemasu/virus_scan.sh
Progress for clamdscan.
#!/bin/bash
# This respects the following original script:
# - Original: https://gist.github.com/nemasu/9d89d2998822980a07284bf442342482
#
# I'm also developing the newer version at here:
# - Support: https://github.com/aiya000/bash-toys
if [[ $# -eq 0 ]] ; then
@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:
@rbtnn
rbtnn / ddc_and_pum.vim
Last active August 2, 2024 03:15
ddc.vimとpum.vimを試す最小限の設定
call plug#('Shougo/pum.vim')
call plug#('Shougo/ddc.vim')
call plug#('Shougo/ddc-around')
call plug#('Shougo/ddc-matcher_head')
call plug#('Shougo/ddc-sorter_rank')
call plug#('Shougo/ddc-converter_remove_overlap')
call plug#('vim-denops/denops.vim')
call ddc#custom#patch_global('completionMenu', 'pum.vim')
call ddc#custom#patch_global('sources', ['around'])

VRChatのスクショのFOVを調整するやつ

VRChatの標準カメラ(FOV=60)で撮影すると、周辺部がにゅ~んと伸びてしまいがちなので、それを調整するためのバッチファイルを書いてみました。

※2021年11月のアップデート以降、カメラのFOVが調整可能になりました。FOVがデフォルトから変更している状態で撮影した場合は正常に補正できませんのでご注意ください。

画像左:Before / 右:After

セットアップ手順

@aiya000
aiya000 / types.ts
Created February 20, 2021 15:08
TypeScriptは`interface Foo { ... }`と`type Foo = { ... }`を区別するっぽい!?
/**
* Proves that A and B is the same types.
*/
export type Equal<A, B> = A extends B ? (B extends A ? true : never) : never
/**
* Makes all fields of A to `<its-type> | null`.
*/
export type Nullable<A extends Record<string, unknown>> = { [K in keyof A]: A[K] | null }
@aiya000
aiya000 / auth-user.ts
Last active February 19, 2021 12:40
Getting an access token of VRChat API. and then getting friend list using it. VRChat APIでアクセストークンを使って、フレンドを取得するやつ。
import axios from 'axios'
function isThatArray<T>(x: unknown, p: (a: unknown) => a is T): x is Array<T> {
return Array.isArray(x) && x.every(p)
}
function isString(x: unknown): x is string {
return typeof x === 'string'
}
@upbit
upbit / README.md
Last active November 7, 2025 16:40 — forked from ZipFile/README.md
Pixiv OAuth Flow (with Selenium)

Retrieving Auth Token (with Selenium)

  1. Setup, install Selenium/ChromeDriver
pip install selenium
# download chromedriver from https://chromedriver.storage.googleapis.com/index.html?path=91.0.4472.101/
# eg: wget https://chromedriver.storage.googleapis.com/91.0.4472.101/chromedriver_mac64.zip && unzip chromedriver_mac64.zip
@aiya000
aiya000 / .gitignore
Last active July 23, 2025 19:28
.gitignore for VRChat avatar projects
# Created by https://www.toptal.com/developers/gitignore/api/unity
# Edit at https://www.toptal.com/developers/gitignore?templates=unity
### Unity ###
# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
#/[Ll]ibrary/
/[Tt]emp/
@aiya000
aiya000 / config\Launcher.json
Last active July 13, 2020 15:48
Record&Replay VRC With Xbox Game bar. (The origin is https://booth.pm/ja/items/2026998)
{
"App1": {
"ApplicationName": "Record VRC With Xbox Game Bar",
"FilePath": "recordVRC.bat",
"WorkingDirectory": "./Scripts",
"Arguments": "",
"StartupDialogMainText": "Record VRC with Xbox Game Bar?",
"StartupDialogSubText": "押すごとに録画開始/録画終了を行う",
"MinimumLaunch": true
},