Skip to content

Instantly share code, notes, and snippets.

View iquiw's full-sized avatar
🦛
Do not underestimate hippopotamus

Iku Iwasa iquiw

🦛
Do not underestimate hippopotamus
View GitHub Profile
From 965a0e67efc564aae286d18b03c72722949bfdb5 Mon Sep 17 00:00:00 2001
From: Iku Iwasa <iku.iwasa@gmail.com>
Date: Wed, 18 Jan 2023 22:15:38 +0900
Subject: [PATCH 1/3] x11/xcb-imdkit: Update to 1.0.3
---
x11/xcb-imdkit/Makefile | 2 +-
x11/xcb-imdkit/distinfo | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
@iquiw
iquiw / patch-jansson-option.diff
Last active August 22, 2020 06:08
Patches for editors/emacs27
diff --git a/editors/emacs27/options.mk b/editors/emacs27/options.mk
index a0e8f6d05e4e..7b254d356d72 100644
--- a/editors/emacs27/options.mk
+++ b/editors/emacs27/options.mk
@@ -2,7 +2,7 @@
### Set options
PKG_OPTIONS_VAR= PKG_OPTIONS.emacs
-PKG_SUPPORTED_OPTIONS= dbus gconf gnutls imagemagick svg xaw3d xft2 xml
+PKG_SUPPORTED_OPTIONS= dbus gconf gnutls imagemagick jansson svg xaw3d xft2 xml
#!/bin/sh
set -e
TMPOUT=$(mktemp /tmp/diag.XXXXXX)
trap 'rm "$TMPOUT"' 0 1 2 3 15
"/usr/bin/$1" -a -o "$TMPOUT" /dev/stdin
cat "$TMPOUT"
@iquiw
iquiw / udsuid.c
Created December 31, 2019 01:17
UID of unix domain socket
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/un.h>
#include <err.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
const char SOCK_PATH[] = "/tmp/foo-socket";
diff --git a/textproc/aspell/Makefile b/textproc/aspell/Makefile
index 363af60b883..594b76f3889 100644
--- a/textproc/aspell/Makefile
+++ b/textproc/aspell/Makefile
@@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.72 2019/08/11 13:23:21 wiz Exp $
#
-DISTNAME= aspell-0.60.6.1
-PKGREVISION= 10
@iquiw
iquiw / ms932-woe.txt
Last active July 8, 2019 02:05
MS932 Woe
WAVE DASH (U+301C, "〜")
FULLWIDTH TILDE (U+FF5E, "~")
CENT SIGN (U+00A2, "¢")
FULLWIDTH CENT SIGN (U+FFE0, "¢")
POUND SIGN (U+00A3, "£")
FULLWIDTH POUND SIGN (U+FFE1, "£")
NOT SIGN (U+00AC, "¬")
#! /usr/bin/python3
import apt
import apt_pkg
import json
import requests
import subprocess
webhook_url = '<WEBHOOK_URL>'
channel = '<CHANNEL>'
@iquiw
iquiw / redmine-fixed-header-hack.css
Created October 1, 2017 14:33
Fixed header for Redmine minimalflat2 theme
@media screen and (min-width: 900px) {
#top-menu, #header {
position: fixed;
width: 100%;
z-index: 9999;
}
#header {
top: 22px;
}
@iquiw
iquiw / getdocker.sh
Last active September 10, 2016 13:28
Script to download docker.exe
#! /bin/sh
bundleURL=https://raw.githubusercontent.com/docker/toolbox/master/Dockerfile.windows
dockerBucket=get.docker.com
if [ -e docker ]; then
echo 'File or directory "docker" should not exist.'
exit 1
fi
@iquiw
iquiw / gist:5894128
Last active December 19, 2015 03:59
Modified TwoPane layout. Not changing second window on mouse focus change.
-- Derived from xmonad-contrib/XMonad/Layout/TwoPane.hs
data TwoPaneMod a = TwoPaneMod Rational Rational deriving (Show, Read)
instance LayoutClass TwoPaneMod Window where
doLayout (TwoPaneMod _ split) r s = (,Nothing) <$> arrange r s
where
arrange rect st = do
ws <- mapped <$> get
let x = case reverse (W.up st) of
(master:_) -> [(master, left), (W.focus st, right)]