Skip to content

Instantly share code, notes, and snippets.

View akirak's full-sized avatar
🕊️
Living in peace

Akira Komamura akirak

🕊️
Living in peace
View GitHub Profile
@akirak
akirak / run-package-lint.el
Created April 20, 2018 09:22
Run package-lint with packages in MELPA
(require 'package)
(push '("melpa" . "http://melpa.org/packages/") package-archives)
(package-initialize)
(package-refresh-contents)
(require 'package-lint)
(package-lint-batch-and-exit)
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
exec cinnamon-session
# exec emacs --daemon

Keybase proof

I hereby claim:

  • I am akirak on github.
  • I am akirak (https://keybase.io/akirak) on keybase.
  • I have a public key ASAeQQIJO7CgCJhFXADEu-TCUXpLJzYT6kS76_gk3oc4Qwo

To claim this, I am signing this object:

@akirak
akirak / centos_nspawn.md
Created February 20, 2020 06:02 — forked from bhouse/centos_nspawn.md
Centos 7.2.1511 via systemd-nspawn

Make a directory to install CentOS 7.2.1511 in

[root@localhost ~]# mkdir /centos_chroot

Make a directory for the rpm database

[root@localhost ~]# mkdir -p /centos_chroot/var/lib/rpm

Create the RPM database

@akirak
akirak / remove-containers.sh
Created August 18, 2025 08:34
A shell script to recursively remove podman containers that depend on an image. Useful for cleaning up images on NixOS
#!/usr/bin/env bash
# Script to recursively remove podman images and their dependent containers
# Usage: ./podman_recursive_rm.sh <image_id_or_name> [max_iterations]
set -e
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'