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 / warp-test.log
Created August 30, 2015 08:38
Warp test on NetBSD
warp-3.1.3: test (suite: doctest)
Examples: 12 Tried: 12 Errors: 0 Failures: 0
warp-3.1.3: test (suite: spec)
BufferPool
withBufferPool
does not clobber buffers
Conduit
conduit
IsolatedBSSource
@iquiw
iquiw / ums.c.diff
Created August 2, 2015 05:33
Support upper 2 buttons of Kensington SlimBlade
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c
index 4d7745b..eb6f095 100644
--- a/sys/dev/usb/ums.c
+++ b/sys/dev/usb/ums.c
@@ -334,6 +334,12 @@ ums_attach(device_t parent, device_t self, void *aux)
}
}
}
+ for (size_t j = 1; i <= MAX_BUTTONS && j <= 2; i++, j++) {
+ if (!hid_locate(desc, size, HID_USAGE2(HUP_MICROSOFT, j),