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.
;; MAKE SURE TO REMOVE ANY SENSITIVE INFORMATION FIRST
(: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
(CENSORED)
:env
(CENSORED)
:prettier-options
(:versions
# 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/build.py", line 283, in build_main
args.tags, args.verbosity, args.jobs, args.keep_going)
@aspiers
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/mock.py", line 1724, in _inner
return f(*args, **kw)
File "nova/tests/functional/test_servers.py", 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/testcase.py", 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://git.openstack.org/openstack/self-healing-sig.git@33f2c04a5223376164be4781da327745f5647a80#egg=self_healing_sig,six==1.11.0,Sphinx==1.2.3,urllib3==1.23,yasfb==0.7.1
docs runtests: PYTHONHASHSEED='1210489117'
docs runtests: commands[0] | python setup.py build_sphinx
running build_sphinx
[pbr] Writing ChangeLog
[pbr] Generating ChangeLog
[pbr] ChangeLog complete (0.1s)
[pbr] Generating AUTHORS
@aspiers
aspiers / setup.py
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 https://pypi.org/simple/pyscaffold/
@aspiers
aspiers / ansible.out
Last active December 18, 2017 18:52
Ansible output
ansible-playbook 2.4.1.0
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
aspiers / Gemfile
Created December 10, 2017 19:47
Gemfile for guard SuperCollider hack
source "https://rubygems.org"
gem "guard-shell"
gem "libnotify"
gem "colorize"
@aspiers
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 unit-test.sc // runs all tests
// sclang unit-test.sc MyClass
// sclang unit-test.sc TestMyClass
// sclang unit-test.sc TestMyClass:test_my_method
//
// Multiple arguments are supported.
var excludes = [
@aspiers
aspiers / Guardfile
Last active December 10, 2017 19:41
Guardfile for testing SuperCollider
require 'colorize'
#directories %w(. lib/classes lib/tests) \
# .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
def sclang(test)
tester = ["sclang", "unit-test-cli.scd"]
cmd = ["timeout", "3"] + tester
if test
cmd << test