Skip to content

Instantly share code, notes, and snippets.

@nosada
nosada / fish.PKGBUILD.patch
Last active March 2, 2019 13:49
Update fish on Arch Linux to 3.0.2 and backport a commit to resolve https://bbs.archlinux.org/viewtopic.php?id=244420
diff --git a/fish/trunk/PKGBUILD b/fish/trunk/PKGBUILD
index 4b16fd36fdd..d276131e66d 100644
--- a/fish/trunk/PKGBUILD
+++ b/fish/trunk/PKGBUILD
@@ -6,7 +6,7 @@
# Contributor: Jan Fader <jan.fader@web.de>
pkgname=fish
-pkgver=3.0.1
+pkgver=3.0.2
@nosada
nosada / mkosi-build.log
Last active November 10, 2018 16:10
Error log when running `mkosi build` on systemd 239.300-1 and mkosi 4-1 in Arch Linux
root@Anna /r/n/tinyspawn# mkosi build
DISTRIBUTION:
Distribution: arch
Release: n/a
Mirror: https://mirrors.kernel.org/archlinux
OUTPUT:
Output Format: raw_btrfs
Output: /ramdisk/nosada/tinyspawn/test
Output Checksum: n/a
@nosada
nosada / expose-privoxy-port-on-nspawn
Last active September 26, 2018 12:04
Expose port for privoxy running on nspawn container
#!/bin/sh
CONTAINER_NAME="torspawn"
CONFIG_DIR="/etc/systemd/nspawn"
CONFIG_PREFIX="nspawn"
CONFIG_LOCATION="$CONFIG_DIR/$CONTAINER_NAME.$CONFIG_PREFIX"
INTERNAL="8118"
EXPOSING="58118"
diff --git a/PKGBUILD b/PKGBUILD
index be1e67f..a58dcc7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Takashi Inoue <inoue(at)pitan.org>
pkgname=mackerel-agent-git
-pkgver=0.39.3
+pkgver=0.45.0
pkgrel=1
@nosada
nosada / keybase.md
Created May 22, 2017 15:19
keybase.md

Keybase proof

I hereby claim:

  • I am nosada on github.
  • I am nosada (https://keybase.io/nosada) on keybase.
  • I have a public key whose fingerprint is 3CF8 1A90 3F5A 94F4 4EBF A537 DA63 5EC3 934B E02D

To claim this, I am signing this object:

@nosada
nosada / update_arch_nspawn_container
Last active May 5, 2017 09:56
update packages for arch linux nspawn container
#!/bin/bash
nspawn-execute() {
pid=$(machinectl -a -l status $1 | grep Leader | awk '{print $2}');
echo "Execute on $1: nsenter -t $pid -m -i -n -p ${@:2}";
nsenter -t $pid -m -i -n -p "${@:2}";
}
nspawn-execute-all() {
for i in $(machinectl list | grep nspawn | awk '{print $1}');
@nosada
nosada / convert_chrome_bookmark_to_qutebrowser_bookmark.py
Created September 13, 2015 11:13
convert bookmark json used by Chrome on Android to pairs of url and name (this pair is used as bookmark on qutebrowser)
#!/bin/env python
import sys
import json
def print_url_and_name_pair(info_list):
for entry in info_list:
if "url" in list(entry.keys()):
print("%s %s" % (entry["url"], entry["name"]))
else:
# Maintainer: ponsfoot <cabezon dot hashimoto at gmail dot com>
##
## Build configuration
##
## You can choose the input method framework to use either ibus and/or uim.
## If you will not be using ibus, comment out below.
#_ibus_mozc="yes"
## If you will be using uim, uncomment below.
#_uim_mozc="yes"
@nosada
nosada / symbols.patch
Last active January 3, 2016 16:09
for /usr/share/X11/xkb/symbols/us
--- /usr/share/X11/xkb/symbols/us 2013-10-07 16:41:31.000000000 +0900
+++ /usr/share/X11/xkb/symbols/us.changed 2014-01-18 16:20:00.446395000 +0900
@@ -1523,3 +1523,27 @@
xkb_symbols "sun_type6" {
include "sun_vndr/us(sun_type6)"
};
+
+
+// Customized dvorak
+// (Changed : G, H, B, I, D, X keys for thinkpad keyboard)
@nosada
nosada / base.xml.patch
Last active January 3, 2016 16:09
for /usr/share/X11/xkb/rules/base.xml and /usr/share/X11/xkb/rules/evdev.xml
--- /usr/share/X11/xkb/rules/base.xml 2014-01-18 02:53:40.442502225 +0900
+++ /usr/share/X11/xkb/rules/base.xml.changed 2014-01-18 16:50:29.831446541 +0900
@@ -1440,6 +1440,14 @@
<description>English (Workman, international with dead keys)</description>
</configItem>
</variant>
+ <!-- user appended start -->
+ <variant>
+ <configItem>
+ <name>cdv</name>