Skip to content

Instantly share code, notes, and snippets.

@Lycolia
Lycolia / incorrect-string.length-character-array.txt
Last active September 17, 2025 08:44
正常な文字数判定ができない文字列(合字・リガチャ)
👨‍👩‍👧‍👨‍👩‍👧‍👨‍👩‍👧‍👨‍👩‍👧‍
あ゙゙゙゙゙゙゙゙゙゙゙゙゙゙゙゙゙゙゙゙゙゙゙゙゙゙
い゚゚゚゚゚゚゚゚゚゚
@Lycolia
Lycolia / recording.ps1
Created September 2, 2025 14:52
Recording the speaker and own microphone
###########################################################
#
# 自分のマイク入力とスピーカー出力を合成して録音するスクリプト
# オンライン会議の録音などに
#
############################################################
Write-Host "録音処理を開始する場合、何かキーを押して下さい..." -NoNewLine
[Console]::ReadKey($true) > $null
$input="Microphone (Sound BlasterX G1)"
@Lycolia
Lycolia / gemini_manifold.py
Created May 15, 2025 23:59
Open WebUI Gemini Manifold Pipe
"""
title: Gemini Manifold Pipe
author: justinh-rahb
author_url: https://github.com/justinh-rahb
funding_url: https://github.com/open-webui
version: 0.1.4
license: MIT
"""
import os
@Lycolia
Lycolia / index.js
Last active February 22, 2024 16:00
Error handling benchmark at JavaScript
const errorObject = (param) => {
if (param === true) {
return {
isError: false,
payload: 'TRUE',
};
} else {
return {
isError: true,
payload: 'ERR',
@Lycolia
Lycolia / notes-remover.php
Last active June 6, 2023 02:56
Misskey notes remover
<?php
# =====================================================
# Confirmed work with Misskey 13.12.2
# Requires openssl extension and PHP 7.4.0 or later
# Edit php.ini
# ;extension=openssl -> extension=openssl
# =====================================================
set_time_limit(0);
# ==================== Config Start ===================
@Lycolia
Lycolia / index.html
Last active May 22, 2023 18:53
Create Slack reminder command utillity
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Slack Reminder Creator</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<script>
const inputState = {
chName: '',
@Lycolia
Lycolia / stable-diffusion-webui-preset.ipynb
Last active May 3, 2023 19:15
Stable Diffusion web UI(AUTOMATIC1111) setup preset
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Lycolia
Lycolia / yarpp-template-thumbnail.php
Last active March 30, 2023 11:48
YARPP thumbnail template for SANGO theme
<?php
function get_post_data($post_id) {
$url = esc_url(get_permalink($post_id));
$title = esc_attr(get_the_title($post_id));
$img = '';
if (has_post_thumbnail($post_id)) {
$img = get_the_post_thumbnail_url($post_id, 'thumb-520');
} else {
@Lycolia
Lycolia / get-progress-func.sh
Last active January 17, 2022 00:50
Get progress of specified in GitHub Issues
#!/bin/bash
getProgress() {
local issueNo=$1
local issue=$(curl -sS \
-H "Authorization: token $GH_TOKEN" \
-H "Accept: 'application/vnd.github.v3+json'" \
https://api.github.com/repos/$TARGET_REPO/issues/$issueNo \
| perl -lpe 's/\n//')
@Lycolia
Lycolia / get-tsv-weight-and-body_fat-from-asken_web.js
Last active December 10, 2021 00:48 — forked from yosiopp/get_weights_from_asken.js
asken.jpのPC画面で日付、体重、体脂肪率をTSV形式で取得
/**
* ## 使い方
*
* 1. あすけん PC サイトにログイン
* 2. データを取得したい範囲で beginYear, endYear を設定
* 3. ブラウザのコンソールにこのスクリプトを流す
* 4. TSV がコンソールに出力される
*/
/** データ取得開始年 */