Skip to content

Instantly share code, notes, and snippets.

View nyanshiba's full-sized avatar
🎃
in the kotatsu

nyanshiba

🎃
in the kotatsu
View GitHub Profile
#181228
<#
ParentCountMin = 1
ParentInterval = 3
IfParentCountOver = "rendiff"
Gen: 0123456789A...
Parent: PPPPPPR <-Rename
Child: CCCCCX <-Delete
#180719
#タイトルバーに表示
(Get-Host).UI.RawUI.WindowTitle="startup"
#====================ユーザ設定====================
#--------------------Twitter--------------------
#ruby.exe
$ruby_path='C:\Ruby24-x64\bin\ruby.exe'
#tweet.rb
$tweet_rb_path='C:\DTV\EDCB\tweet.rb'
#--------------------tsの自動削除の設定--------------------
#録画フォルダの上限 超過した場合、toggle=0:容量警告(Twitter、Discord) 1:削除
$ts_folder_max=7TB
#====================ts・mp4の自動削除====================
#フォルダの合計サイズを設定値以下に丸め込む関数
function FolderRound {
#初期値
$delcnt=-1
#必ず1回は実行、フォルダ内の新しいファイルをSkipする数$iを増やしていって$maintsizeを$ts_folder_max以下に丸め込むループ
@nyanshiba
nyanshiba / OptifineNotifier.ps1
Last active May 22, 2019 07:15
optifine.netの更新をDiscordにWebhookで通知するPowershellスクリプト
#190424
#for pwsh linux
#requires -version 6.1
#$PSName = "$(Split-Path $PSCommandPath -Parent)/$(Split-Path $PSCommandPath -Leafbase)"
$PSName = $PSCommandPath.Replace('.ps1','')
#投稿関数
function Post-Discord($i)
{
@nyanshiba
nyanshiba / pngjpg.bat
Last active June 9, 2019 14:01
PNGをJPGに変換するやつ
@echo off
rem 190408
rem 引数を表示
set cnt=0
setlocal enabledelayedexpansion
for %%a in ( %1 %2 %3 %4 %5 %6 %7 %8 %9 ) do (
if not %%a == "" (
set /a cnt+=1
echo !cnt!.%%a
@nyanshiba
nyanshiba / AudioMediaSource.ps1
Last active May 10, 2019 04:33
OBSのメディアソースを使用してBGMと曲名を表示する為の、RGBAなaviとconcatフォーマットのtxtを生成するやつ https://nyanshiba.hatenablog.com/entry/2019/04/07/001832#OBS%E3%81%A0%E3%81%91%E3%81%A7BGM%E3%82%92%E5%86%8D%E7%94%9F%E6%9B%B2%E5%90%8D%E3%82%92%E8%A1%A8%E7%A4%BA
#190508
#ユーザ設定
$Settings =
@{
#Input,Output指定: Output\input.txt Inputのみ指定: Input\input.txt
#BGM素材入力ディレクトリ
Input = "C:\Users\sbn\Music\audiolibrary"
#Input = "C:\Users\sbn\Music\minecraft\sounds\music"
#Input = "C:\Rec\audiolibrary"
@import url("https://fonts.googleapis.com/css?family=Noto+Sans+JP");
/* Background colors*/
body {
overflow: hidden;
background-color: rgba(0,0,0,0);
}
/* Transparent background.*/
yt-live-chat-renderer {
background-color: transparent !important;
@import url("https://fonts.googleapis.com/css?family=Noto+Sans+JP");
.voice-state {
background-image: linear-gradient(to left, rgba(204,204,204,0.01), rgba(204,204,204,0.3));
padding: 16px 0 32px 16px;
}
.voice-container .voice-states .voice-state {
height: 64px;
}
.voice-container .voice-states .voice-state .avatar {
height: 64px;
@nyanshiba
nyanshiba / TwimgJPGOrig.js
Last active July 16, 2019 03:12
Twitterの新UIに対応した高解像度画像取得ブックマークレット
javascript: (
function () {
var url = document.getElementsByClassName('css-9pa8cd')[2].src;
window.open(url.replace(/format.+/, "format=jpg&name=orig"));
}
)();