Skip to content

Instantly share code, notes, and snippets.

View aspiers's full-sized avatar

Adam Spiers aspiers

View GitHub Profile
;; Please create a Gist with the contents of this buffer.
(:emacs-version "GNU Emacs 27.1 (build 1, x86_64-suse-linux-gnu, GTK+ Version 3.24.25, cairo version 1.16.0)" :prettier-el-version "1.1.0" :buffer-file-name "/home/adam/path/to/my/file.sol" :remote-id nil :major-mode solidity-mode :exec-path
aspiers /
Last active August 16, 2019 13:41
shell functions for unblocking stuck nodes and proposals in Crowbar
The code which used to be here is now in the crowbar CLI. FIXME: provide details
# Sphinx version: 2.1.1
# Python version: 3.6.1 (CPython)
# Docutils version: 0.14
# Jinja2 version: 2.10.1
# Last messages:
# Loaded extensions:
Traceback (most recent call last):
File "/home/adam/SUSE/cloud/OpenStack/git/nova/.tox/docs/lib/python3.6/site-packages/sphinx/cmd/", line 283, in build_main
args.tags, args.verbosity,, args.keep_going)
aspiers / failure.log
Last active February 13, 2019 22:32
test failure in nova.tests.functional.test_servers.TraitsTrackingTests.test_resource_provider_traits
{0} nova.tests.functional.test_servers.TraitsTrackingTests.test_resource_provider_traits [4.705728s] ... FAILED
Captured traceback:
Traceback (most recent call last):
File "/home/adam/SUSE/cloud/OpenStack/git/nova/.tox/functional/lib/python2.7/site-packages/mock/", line 1724, in _inner
return f(*args, **kw)
File "nova/tests/functional/", line 2025, in test_resource_provider_traits
self.assertEqual(traits, sorted(self._get_provider_traits(rp_uuid)))
File "/home/adam/SUSE/cloud/OpenStack/git/nova/.tox/functional/lib/python2.7/site-packages/testtools/", line 411, in assertEqual
2018-10-19 22:04:41.6959|DEBUG|4|Network.PeerManager|RunPeerUpdate | AllNonActiveCandidates: 15, FilteredByZeroPort: 0, FilteredByDisconnect: 3, FilteredByFailedConnection: 10, Incompatible: 0, EligibleCandidates: 2, Tried: 2, Rounds: 1, Failed initial connect: 0, Established initial connect: 0, Current candidate peers: 39, Current active peers: 25
2018-10-19 22:04:41.8455|ERROR|20|Network.P2P.Multiplexor|NettyP2PHandler error in multiplexor, channel is active System.AggregateException: One or more errors occurred. (Exception of type 'DotNetty.Codecs.EncoderException' was thrown.) ---> DotNetty.Codecs.EncoderException: Exception of type 'DotNetty.Codecs.EncoderException' was thrown. ---> System.DllNotFoundException: Unable to load shared library 'snappy' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libsnappy: cannot open shared object file: No such file or directory
at Snappy.Native.snappy_max_compressed_length(UInt32 input_len
docs develop-inst-nodeps: /home/adam/SUSE/cloud/OpenStack/git/self-healing-sig
WARNING:Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration.
docs installed: certifi==2018.4.16,chardet==3.0.4,cssselect==1.0.3,docutils==0.14,idna==2.7,Jinja2==2.10,lxml==4.2.4,MarkupSafe==1.0,oslosphinx==4.18.0,pbr==1.10.0,Pygments==2.2.0,pyquery==1.4.0,requests==2.19.1,-e git://,six==1.11.0,Sphinx==1.2.3,urllib3==1.23,yasfb==0.7.1
docs runtests: PYTHONHASHSEED='1210489117'
docs runtests: commands[0] | python build_sphinx
running build_sphinx
[pbr] Writing ChangeLog
[pbr] Generating ChangeLog
[pbr] ChangeLog complete (0.1s)
[pbr] Generating AUTHORS
aspiers /
Created May 17, 2018 11:16
Why oh why does `pip --no-cache-dir install -vvv .` fail on this?
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from setuptools import setup
def setup_package():
# This only works if relaxed to 2.5.6! Despite all versions up to
# 2.5.11 being clearly present at
aspiers / ansible.out
Last active December 18, 2017 18:52
Ansible output
config file = /home/aspiers/.ansible.cfg
configured module search path = [u'/home/aspiers/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 2.7.13 (default, Jan 03 2017, 17:41:54) [GCC]
Using /home/aspiers/.ansible.cfg as config file
setting up inventory plugins
Set default localhost to localhost
Parsed /home/aspiers/ardana-dev-tools/ansible/hosts/localhost inventory source with ini plugin
aspiers / Gemfile
Created December 10, 2017 19:47
Gemfile for guard SuperCollider hack
source ""
gem "guard-shell"
gem "libnotify"
gem "colorize"
aspiers / unit-test-cli.scd
Created December 10, 2017 19:43
CLI test runner for SuperCollider UnitTest tests
// Allow running tests from CLI. Example invocations:
// sclang // runs all tests
// sclang MyClass
// sclang TestMyClass
// sclang TestMyClass:test_my_method
// Multiple arguments are supported.
var excludes = [