Skip to content

Instantly share code, notes, and snippets.

View mackerel-agent-git.PKGBUILD.patch
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
View 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
update packages for arch linux nspawn container
View update_arch_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 Sep 13, 2015
convert bookmark json used by Chrome on Android to pairs of url and name (this pair is used as bookmark on qutebrowser)
View convert_chrome_bookmark_to_qutebrowser_bookmark.py
#!/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:
View mozc-ut.PKGBUILD
# 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 Jan 3, 2016
for /usr/share/X11/xkb/symbols/us
View symbols.patch
--- /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 Jan 3, 2016
for /usr/share/X11/xkb/rules/base.xml and /usr/share/X11/xkb/rules/evdev.xml
View base.xml.patch
--- /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>
@nosada
nosada / base.lst.patch
Last active Jan 3, 2016
for /usr/share/X11/xkb/rules/base.lst and /usr/share/X11/xkb/rules/evdev.lst
View base.lst.patch
--- /usr/share/X11/xkb/rules/base.lst 2014-01-18 02:26:21.569898995 +0900
+++ /usr/share/X11/xkb/rules/base.lst.changed 2014-01-18 14:00:36.631972594 +0900
@@ -300,6 +300,7 @@
hbs us: Serbo-Croatian (US)
workman us: English (Workman)
workman-intl us: English (Workman, international with dead keys)
+ cdv us: English (customized Dvorak)
ps af: Pashto
uz af: Uzbek (Afghanistan)
olpc-ps af: Pashto (Afghanistan, OLPC)
@nosada
nosada / PigLatin.py
Last active Jan 1, 2016
Pig Latin Translator (Only Plain -> PigLatin)
View PigLatin.py
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Translate plain-text English(or ACII string) into Pig Latin
"""
class PigLatin:
View CodingBat-Logic-2-make_bricks.py
def make_bricks(small, big, goal):
if goal - 5*big > small: # small + 5*big < goal (impossible)
return False
else: # small + 5*big >= goal (partial possible)
if goal%5 > small:
return False
else:
return True