Skip to content

Instantly share code, notes, and snippets.

Akihiro Motoki amotoki

  • Tokyo, Japan
Block or report user

Report or block amotoki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View django20-support-snippet
Django 2.0 support
Replace django.core.urlresolves with django.urls
(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was deprecated in Django 1.10:
Add py35dj20 job to test Django 2.0 integration.
amotoki / DevStack local.conf
Created Feb 3, 2018
DevStack local.conf (Queens release; master)
View DevStack local.conf
enable_service s-proxy s-object s-container s-account
# migrate to new neutron service configuration
disable_service q-svc
disable_service q-agt
disable_service q-dhcp
disable_service q-l3
disable_service q-meta
View .screenrc
escape ^t^t
startup_message off
defscrollback 10000
# <ESCAPE> w
bind w windowlist -b
hardstatus alwayslastline "%{= rw} %H %{= wk} %L=%-w%{= bw}%30L> %n%f %t*%{= wk}%+Lw%-17< %-=%{= gk} %y/%m/%d %c"
amotoki / local.conf
Last active Jan 25, 2017
local.conf (minimum) for master branch (master: newton or later)
View local.conf
unset OS_CLOUD
#disable_service tempest
#disable_service horizon
enable_service heat h-api h-api-cfn h-api-cw h-eng
amotoki / local.conf
Last active Mar 22, 2018
local.conf (Mitaka) - Almost all services are enabled with Neutron
View local.conf
amotoki / local.conf
Created Jun 24, 2014
local.conf for devstack (master branch)
View local.conf
#disable_service mysql
#enable_service postgresql
#disable_service cinder c-sch c-api c-vol
#disable_service tempest
#disable_service horizon
View nec-openstack-ci.dash
# Gerrit Dashboard Creator
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"]
amotoki / openstack-gerrit-hide-ci.js
Last active Aug 29, 2015
Bookmarklet to hide CI comments in OpenStack Gerrit
View openstack-gerrit-hide-ci.js
/* Bookmarklet maker: */
/* Configuraitons */
me = 'Akihiro Motoki';
ci_hide = true;
fail_hide = false;
/* main code */
list = document.querySelectorAll('table.commentPanelHeader');
for(i in list) {
import eventlet
import eventlet.corolocal
import time
def print_thread(prefix):
while True:
ident = eventlet.corolocal.get_ident()
print "%s (%s): %s" % (prefix, ident, time.time())
import threading
import time
import eventlet
import eventlet.corolocal
# NOTE(rpodolyaka): threading is patched here
You can’t perform that action at this time.