Skip to content

Instantly share code, notes, and snippets.

View hyphon81's full-sized avatar
🔈

hyphon81 hyphon81

🔈
  • Tokyo Japan
View GitHub Profile
@hyphon81
hyphon81 / reproduce?
Created July 24, 2017 18:10
Is my libopenblas broken?
$ nix-shell -p python3Full -p python3Packages.numpy -p python3Packages.matplotlib -p qt4 -p python3Packages.pyqt4
$ python
Python 3.5.3 (default, Jan 17 2017, 07:57:56)
[GCC 5.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib as mpl
>>> mpl.use("Qt4Agg")
>>> import matplotlib.pyplot as plt
>>> plt.plot()
[]
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit ubuntu
or other application using the libvirt API.
-->
<domain type='kvm'>
<name>ubuntu</name>
<uuid>f2d07eca-3045-4ffa-b9bd-2b45ef5b438e</uuid>
@hyphon81
hyphon81 / configuration.nix
Last active April 14, 2017 06:40
Failed to install NixOS 17.03 in ZFS. It stopped stage 1 because NixOS can not find zpool.
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
@hyphon81
hyphon81 / command_run_failed_log.log
Last active January 29, 2017 14:43
I would like to use "sudo" in the systemd service. However I couldn't.
2017-01-29 22:46:29.208 1863 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c execute /nix/store/gqs7kinmfnx5pznj20swm1l3g0gbxysv-python2.7-oslo.concurrency-3.14.0/lib/python2.7/site-packages/oslo_concurrency/processutils.py:344
2017-01-29 22:46:29.214 1863 DEBUG oslo_concurrency.processutils [-] u'sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c' failed. Retrying. execute /nix/store/gqs7kinmfnx5pznj20swm1l3g0gbxysv-python2.7-oslo.concurrency-3.14.0/lib/python2.7/site-packages/oslo_concurrency/processutils.py:426
----
2017-01-29 22:46:30.713 1863 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c execute /nix/store/gqs7kinmfnx5pznj20swm1l3g0gbxysv-python2.7-oslo.concurrency-3.14.0/lib/python2.7/site-packages/oslo_concurrency/processutils.py:344
2017-01-29 22:46:30.718 1863 DEBUG oslo_concurrency.processutils [-] u'sudo nova-rootwrap /etc/nova/root