Skip to content

Instantly share code, notes, and snippets.

@nosada
nosada / ansible-aur-pkg-installer.md
Last active May 9, 2020
download, build, and install aur packages with ansible
View ansible-aur-pkg-installer.md
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:
@nosada
nosada / config
Last active Aug 29, 2015
zcat /proc/config.gz
View config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.17.4-1 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
@nosada
nosada / mecab.setup.patch
Created Oct 27, 2014
patch for mecab-python-0.996/setup.py
View mecab.setup.patch
--- setup.py.orig 2014-10-27 23:13:54.149118580 +0900
+++ setup.py 2014-10-27 23:32:14.945120395 +0900
@@ -7,7 +7,7 @@
return os.popen(str).readlines()[0][:-1]
def cmd2(str):
- return string.split (cmd1(str))
+ return cmd1(str).split()
setup(name = "mecab-python",
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 / fcitx-mozc-ut.PKGBUILD
Last active Aug 29, 2015
Modified PKGBUILD and patch for original (https://aur.archlinux.org/packages/fcitx-mozc-ut/) for using latest mozc-ut
View fcitx-mozc-ut.PKGBUILD
# Maintainer: Naoya Inada <naoina@kuune.org>
# fcitx-mozc-ut is based on fcitx-mozc and mozc-ut.
##
## Build configuration
##
## ニコニコ大百科IME辞書 (NICONICOPEDIA IME dictionary, see below)
#_NICODIC="true"
#
## If you want to use an English-Japanese dictionary,
@nosada
nosada / yotify.sh
Last active Aug 29, 2015
comfortable operation with Yo
View yotify.sh
#!/usr/bin/sh
token="<YOUR_API_TOKEN>"
name="<DESIRED_USERNAME>"
notifymsg="Yo from <SOURCE_Yo_NAME> to <DESTINATION_Yo_NAME>"
icon="/path/to/icon"
# do desired task
$@