python3 setup.py build
Output: build/lib.macosx-10.11-x86_64-3.5/hello.cpython-35m-darwin.so
| // ==UserScript== | |
| // @name 百度文心一言去水印 | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.8 | |
| // @description 去文心一言水印、去星火水印。去天工水印。去chatGLM水印。去通义千问水印、去超时弹窗、去AI画图水印。CSDN-C知道去水印,去提问限制。 | |
| // @author 夜雨 | |
| // @match *://yiyan.baidu.com/* | |
| // @match *://so.csdn.net/so/search* | |
| // @match *://xinghuo.xfyun.cn/* | |
| // @match *://neice.tiangong.cn/* |
| #include "list.h" | |
| #include "stdlib.h" | |
| #include "stdio.h" | |
| #include "stddef.h" | |
| typedef struct component { | |
| int id; | |
| // This is used to link components together in their list | |
| struct list_head list_node; |
| sudo apt-get install git g++ gcc automake autoconf libtool make gcc libc-dev libssl-dev pkg-config libtasn1-6-dev libjson-glib-dev expect gawk socat libseccomp-dev -y | |
| cd ~ | |
| git clone https://github.com/stefanberger/swtpm.git | |
| git clone https://github.com/stefanberger/libtpms.git | |
| cd libtpms | |
| ./autogen.sh --prefix=/usr --with-tpm2 --with-openssl | |
| make | |
| sudo make install | |
| cd ../swtpm | |
| ./autogen.sh --prefix=/usr |
| #include <stdio.h> | |
| #include <unistd.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| #include <memory.h> | |
| #include <linux/types.h> | |
| #include <linux/netlink.h> | |
| #include <linux/rtnetlink.h> | |
| struct nl_req_s { |
For those that are unfamiliar with the project, PyPy is an implementation of the Python language that features a JIT Compiler. I have noticed a huge performance benefit in some personal projects by switching to PyPy. I have always been curious how it would perform on a large and complex project like OpenStack, but my early experiments ran into massive roadblocks around broken dependencies.
It has been six months since I last looked, so I figured it was time to try it again. Support has come a long way and, now that lxml is working, we are close enough to get a Proof-of-Concept running. Read on for instructions on running nova with PyPy.
Start out with a base ubuntu 12.04 (precise) install and run devstack. I won't go through the details of getting devstack running here, because there are already instructions on the devstack site.
6ee73781-6d8c-40f7-b953-ecf30f4a3309] Failed to build and run instance: libvirt.libvirtError: internal error: Process exited prior to exec: libvirt: error : Unable to move /dev/termination-log mount to /run/libvirt/qemu/631-instance-0000c3a2.termination-log: Permission denied
2021-03-17 04:19:59.124 1255432 ERROR nova.compute.manager [instance: 6ee73781-6d8c-40f7-b953-ecf30f4a3309] Traceback (most recent call last):
2021-03-17 04:19:59.124 1255432 ERROR nova.compute.manager [instance: 6ee73781-6d8c-40f7-b953-ecf30f4a3309] File "/var/lib/openstack/lib/python3.8/site-packages/nova/compute/manager.py", line 2394, in _build_and_run_instance
2021-03-17 04:19:59.124 1255432 ERROR nova.compute.manager [instance: 6ee73781-6d8c-40f7-b953-ecf30f4a3309] self.driver.spawn(context, instance, image_meta,
2021-03-17 04:19:59.124 1255432 ERROR nova.compute.manager [instance: 6ee73781-6d8c-40f7-b953-ecf30f4a3309] File "/var/lib/openstack/lib/python3.8/site-packages/nova/virt/libvirt/driver.py", line 3753, in s
| /* | |
| iflist.c : retrieve network interface information thru netlink sockets | |
| (c) Jean Lorchat @ Internet Initiative Japan - Innovation Institute | |
| v1.0 : initial version - Feb 19th 2010 | |
| This file was obtained at the following address : | |
| http://www.iijlab.net/~jean/iflist.c |
| /* | |
| iflist.c : retrieve network interface information thru netlink sockets | |
| (c) Jean Lorchat @ Internet Initiative Japan - Innovation Institute | |
| v1.0 : initial version - Feb 19th 2010 | |
| This file was obtained at the following address : | |
| http://www.iijlab.net/~jean/iflist.c |