Skip to content

Instantly share code, notes, and snippets.

;;; voicevox --- Voicevox utility for Emacs.
;; Copyright (C) 2024 TakesxiSximada
;; Author: TakesxiSximada
;; Maintainer: TakesxiSximada
;; Version: 1.0
;; Package-Version: 20230116.0000
;; Package-Requires: ((emacs "29.1"))
;; Date: 2023-01-16
(leaf simple-httpd
:ensure t
:require t
:config
(setq httpd-host "0.0.0.0"))
(leaf elfeed-web
:vc (:url "https://github.com/MasWag/elfeed"
:lisp-dir "web/")
:after elfeed simple-httpd
;; :ensure t
@MasWag
MasWag / my-elfeed-show.el
Created May 6, 2026 04:39
Personal extension of elfeed-show.el
;;; my-elfeed-show.el --- display feed entries -*- lexical-binding: t; -*-
;; This is free and unencumbered software released into the public domain.
;;; Code:
(defun elfeed-show-add-link-to-playlist ()
"Add link to current EMMS playlist."
(interactive)
@MasWag
MasWag / bad-length.saty
Created May 1, 2026 02:46
An example not working with satysfi-parser and satysfi-language-server
@require: stdja
let _ = 5cm *' -0.25 in
document (|
title = {};
author = {};
show-title = false;
show-toc = false;
|) '<>
@MasWag
MasWag / aws_monthly_billing
Created April 28, 2026 10:26
Fetches and displays the monthly total AWS billing using the AWS Cost Explorer API.
#!/bin/sh
######################################
# NAME
# aws_monthly_billing - Fetches and displays the monthly total AWS billing using the AWS Cost Explorer API.
#
# SYNOPSIS
# aws_monthly_billing [AWS_CLI_OPTIONS]
#
# DESCRIPTION
# This script retrieves the monthly total AWS billing by querying the AWS Cost Explorer API. The script defaults to the current month but allows users to specify a custom time period using environment variables START and END.
@MasWag
MasWag / PKGBUILD
Created March 31, 2026 03:00
PKGBUILD for VOICEVOX (text‑to‑speech) – builds both the AppImage and binary packages from GitHub releases (v0.25.1) using 7z extraction.
pkgbase=voicevox-bin
pkgname=($pkgbase ${pkgbase/bin/appimage})
pkgver=0.25.1
pkgrel=2
pkgdesc='A text-to-speech software'
arch=('x86_64')
license=('LGPL-3.0-only')
url=https://github.com/VOICEVOX/voicevox
makedepends=(7zip)
@MasWag
MasWag / PKGBUILD
Created August 21, 2025 10:40
PKGBUILD to build LTSMin 3.1.0-beta2 on Arch Linux
# Maintainer: Masaki Waga <masakiwaga@gmail.com>
pkgname=ltsmin-beta
pkgver=3.1.0.beta2
pkgrel=1
pkgdesc="High-performance language-independent model checker (beta version)"
arch=('x86_64')
url="https://ltsmin.utwente.nl/"
license=('BSD')
provides=('ltsmin')
conflicts=('ltsmin')
#!/usr/local/bin/symon -pnf
###############################################################
# Name
# periodic_fetch.symon
#
# Description
# SyMon specification to make sure that for any application ID,
# the time gap between two consecutive fetch must be bounded by
# a certain time_bound. By running SyMon, one can see the
# maximum time_bound so far. If you only want to get the final result,
#!/usr/local/bin/symon -dnf
###############################################################
# Name
# need_resp.symon
#
# Description
# After an event A with a specific ID, we should receive a response B with the same ID within 5 time units.
#
# For instance, for the following input, symon detects an error for x0 == hoge3 and x0 == hoge0.
# A hoge1 3
@MasWag
MasWag / PKGBUILD
Created June 26, 2025 11:16
PKGBUILD for NuSMV
# Maintainer: Alex Szczuczko <alex@szc.ca>
# Contributor: Marcelo Alaniz <malaniz@code4life.com.ar>
# Contributor: Peter Wu <peter@lekensteyn.nl>
# Contributor: Masaki Waga <masakiwaga@gmail.com>
pkgname=nusmv
_pkgname=NuSMV
pkgver=2.7.0
pkgrel=2
pkgdesc="A new symbolic model checker"