This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ | |
/* Bookmarklet maker: http://userjs.up.seesaa.net/js/bookmarklet.html */ | |
/* Configuraitons */ | |
me = 'Akihiro Motoki'; | |
ci_hide = true; | |
fail_hide = false; | |
/* main code */ | |
list = document.querySelectorAll('table.commentPanelHeader'); | |
for(i in list) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gerrit Dashboard Creator https://github.com/sdague/gerrit-dash-creator.git | |
[dashboard] | |
title = NEC OpenStack CI Status | |
description = Review Inbox | |
foreach = project:openstack/neutron status:open | |
[section "Recent failures in NEC OpenStack CI, but Jenkins succeeds"] | |
query = label:Verified<=-1,nec-openstack-ci label:Verified>=1,jenkins NOT age:2week | |
[section "Recent failures (vote=0), but Jenkins succeeds"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: bash -*- | |
#----------------------------- | |
# Common congigurations | |
#----------------------------- | |
CFGDIR=$HOME/tool/config | |
source $CFGDIR/01-proxy | |
source $CFGDIR/02-repos | |
source $CFGDIR/10-local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: bash -*- | |
#----------------------------- | |
# Common congigurations | |
#----------------------------- | |
CFGDIR=$HOME/tool/config | |
source $CFGDIR/01-proxy | |
source $CFGDIR/02-repos | |
source $CFGDIR/10-local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; po-fuzzy-diff.el --- Compare the difference in PO fuzzy string | |
;; Copyright (C) 2013 Akihiro Motoki <amotoki@gmail.com> | |
;; Author: Akihiro Motoki <amotoki@gmail.com> | |
;; Keywords: convenience po-mode | |
;; This file is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation; either version 2, or (at your option) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Neutron | |
# To use nova-network, comment out the following | |
PRIVATE_NETWORK_NAME=net1 | |
PUBLIC_NETWORK_NAME=ext_net | |
Q_PLUGIN=ml2 | |
disable_service n-net | |
enable_service neutron q-svc q-agt | |
enable_service q-dhcp | |
enable_service q-l3 | |
enable_service q-meta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Latest version is available at | |
# https://github.com/amotoki/horizon-i18n-tools/blob/master/po-file-update.sh | |
function is_updated() { | |
local file=$1 | |
git diff $file | \ | |
grep -E '^[-+]' | \ | |
grep -v -E '^[-+]#:' | \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import logging | |
import re | |
import sys | |
import pprint | |
#------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Copyright (C) 2013 Akihiro Motoki <amotoki@gmail.com> | |
;; Author: Akihiro Motoki <amotoki@gmail.com> | |
;; Keywords: convenience rectangle | |
;; This file is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation; either version 2, or (at your option) | |
;; any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ESC は ESC コードをいれる | |
Emacs だと C-q ESC, vi だと C-v ESC | |
/etc/nova/nova.conf | |
logging_exception_prefix = %(color)s%(asctime)s.%(msecs)03d TRACE %(name)s ESC[01;35m%(instance)sESC[00m | |
logging_debug_format_suffix = ESC[00;33mfrom (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)dESC[00m | |
logging_default_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [ESC[00;36m-%(color)s] ESC[01;35m%(instance)s%(color)s%(message)sESC[00m | |
logging_context_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [ESC[01;36m%(request_id)s ESC[00;36m%(user_name)s %(project_name)s%(color)s] ESC[01;35m%(instance)s%(color)s%(message)sESC[00m |
OlderNewer