Skip to content

Instantly share code, notes, and snippets.

View ozoramore's full-sized avatar

ozoramore ozoramore

View GitHub Profile
@ozoramore
ozoramore / mp3_merger.sh
Last active March 25, 2026 03:02
ffmpegを利用して指定ディレクトリ下のオーディオファイルを一本のmp3にガッチャンコします
#!/bin/bash
# mp3_merger.sh -- Combine the data in the directory to create a single MP3 file.
# Usage : mp3_merger.sh <directory>
# Copyright (c) 2026 ozoramore
# Released under the MIT License.
CURDIR=$(pwd)
cd "$1" || exit 1
ABSDIR=$(pwd)
cd "$CURDIR" || exit 1
@ozoramore
ozoramore / serial_console.ps1
Last active February 5, 2026 08:26
Serial Console for Powershell
# Serial Console for PowerShell
# version: 1.0.0
# author: ozoramore
# date: 2026-02-04
# usage example:
# .\serial_console.ps1 COM3 -encoding ([System.Text.Encoding]::ASCII) -baudrate 9600
[CmdletBinding(PositionalBinding = $false)]
param(
@ozoramore
ozoramore / main.yml
Last active August 8, 2025 02:35
Zolaでgithub-workflowsを利用しページ公開するためのworkflow
name: Build And Deploy
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
build_dir: public # zola build dir.
target_repos: username/pages # GitHub Pages repo.
@ozoramore
ozoramore / markdown
Last active April 3, 2025 08:14
bookmarks
# AmazonのURLを短縮するやつ
```javascript
javascript:(p=>location=p?p:location)(location.pathname.match(/\/dp\/\w+/))
```
# Wikipediaの記事IDを取得して固定URLにするやつ
```javascript
@ozoramore
ozoramore / lua
Last active February 11, 2025 08:32
ランダム顔文字生成
local eyes = {
{ "'", "'" },
{ "+", "+" },
{ "-", "-" },
{ "-", "・" },
{ ".", "." },
{ "=", "=" },
{ ">", "<" },
{ "@", "@" },
{ "^", "^" },