Skip to content

Instantly share code, notes, and snippets.

Working from home

Akira Komamura akirak

Working from home
View GitHub Profile
akirak /
Created Feb 20, 2020 — forked from bhouse/
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


Keybase proof

I hereby claim:

  • I am akirak on github.
  • I am akirak ( on keybase.
  • I have a public key ASAeQQIJO7CgCJhFXADEu-TCUXpLJzYT6kS76_gk3oc4Qwo

To claim this, I am signing this object:

View .xinitrc
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
exec cinnamon-session
# exec emacs --daemon
akirak / run-package-lint.el
Created Apr 20, 2018
Run package-lint with packages in MELPA
View run-package-lint.el
(require 'package)
(push '("melpa" . "") package-archives)
(require 'package-lint)
akirak / my-lemonbar.el
Last active May 7, 2018
Example configuration of lemonbar.el
View my-lemonbar.el
(require 'lemonbar)
(setq lemonbar-options `("-b" ; Dock the bar at the bottom of the screen
"-g" "1920x20+0+0"
"-f" "Hack-9"))
(setq lemonbar-output-template '(akirak/lemonbar-exwm-buffer-list
akirak / Dockerfile
Created Apr 2, 2018
Nim on Fedora with RPM Fusion on Docker
View Dockerfile
FROM fedora
MAINTAINER Akira Komamura,
# Add RPM Fusion
RUN dnf -y install$(rpm -E %fedora).noarch.rpm \$(rpm -E %fedora).noarch.rpm
# Install packages
RUN dnf -y install nim
# git is required by nimble to download a package
RUN dnf -y install git
akirak / mkdtemp.nim
Created Apr 1, 2018
Creating a temporary directory in Nim (using mkdtemp)
View mkdtemp.nim
import posix
from system import `$`
proc mkdtemp*(tmpl: cstring): cstring {.importc, header: "<stdlib.h>".}
proc createTempDirectory*(tmpl: string): string =
var s = newString(tmpl.len)
s = tmpl
if mkdtemp(s.cstring()) == nil:
raise newException(IOError, "mkdtemp returns null")
# This script will setup Evm (Emacs Version Manager) and Cask on
# Travis to use for Emacs Lisp testing.
# In .travis.yml, add this:
# - curl -fsSkL > && source ./
# Emacs 24.3 is installed in the above script because Cask requires
akirak / scratch
Created Feb 3, 2018
Testing Emacs for Windows
View scratch
(getenv "HOME")
(expand-file-name "~IEUser")
akirak /
Last active May 30, 2021
How to use DDSKK, Japanese input method for Emacs

How to Use DDSKK Japanese Input Method for Emacs

This tutorial describes the basic usage of DDSKK Japanese input method for Emacs.

Installation and configuration

Install ddskk package.

Turn on skk-mode minor mode to write Japanese. It is recommended that you should bind a key to this command: