Run the pipeline from the python "merger" element at https://github.com/exmakhina/gstreamer-examples:
git clone https://github.com/exmakhina/gstreamer-examples
export GST_PLUGIN_PATH=$GST_PLUGIN_PATH:$PWD/gstreamer-examples/plugins
cave resolve system | |
Deciding: 51 steps | |
Error: | |
* In program /home/cJ/root/usr/bin/cave --environment paludis:test resolve system: | |
* When resolving and adding dependencies recursively: | |
* When adding dependencies for 'net-misc/wget:0::(install_to_chroot)' with 'net-misc/wget-1.13.4-r1:0::installed': | |
* When finding dependencies for 'net-misc/wget-1.13.4-r1:0::installed': |
// amd64 | |
typedef unsigned long size_t; | |
void *tor_realloc(void *, size_t); | |
typedef struct smartlist_t { | |
void **list; | |
int num_used; | |
int capacity; | |
} smartlist_t; |
#!/usr/bin/env python | |
# -*- coding: utf-8 vi:noet | |
# Dump a clear-text version of an SSH key from gpg-agent | |
__author__ = "Jérôme Carretero <cJ-tub@zougloub.eu>" | |
__licence__ = "MIT" | |
import sys, io, subprocess, re, ctypes | |
libgcrypt = ctypes.CDLL("libgcrypt.so") |
Run the pipeline from the python "merger" element at https://github.com/exmakhina/gstreamer-examples:
git clone https://github.com/exmakhina/gstreamer-examples
export GST_PLUGIN_PATH=$GST_PLUGIN_PATH:$PWD/gstreamer-examples/plugins
#!/usr/bin/env python | |
# -*- coding: utf-8 vi:noet | |
# Corsair H100i GTX driver | |
import struct, time, binascii, sys, io | |
import usb | |
import scipy.interpolate | |
VIDPIDS = [ | |
(0x1b1c, 0x0c03), # H100i GTX |
#!/usr/bin/env python | |
# -*- coding: utf-8 vi:noet | |
# Thermoco reader | |
import subprocess | |
class Thermoco(object): | |
def __init__(self, mac): | |
self._mac = mac | |
Traceback (most recent call last): | |
File "/usr/lib64/python3.5/site-packages/pyanaconda/threads.py", line 251, in run | |
threading.Thread.run(self, *args, **kwargs) | |
File "/usr/lib64/python3.5/threading.py", line 862, in run | |
self._target(*self._args, **self._kwargs) | |
File "/usr/lib/python3.5/site-packages/blivet/osinstall.py", line 1175, in storage_initialize | |
storage.reset() | |
File "/usr/lib/python3.5/site-packages/blivet/threads.py", line 45, in run_with_lock | |
return m(*args, **kwargs) | |
File "/usr/lib/python3.5/site-packages/blivet/blivet.py", line 273, in reset |
# Create a big file (sparse) | |
truncate --size=100G huge.bin | |
# check the stuff to make sure it's not a virus | |
cat *.py *.sh | |
# Run this in one terminal | |
./twisted_0_stream_server.py | |
# Run this in another |
#!/usr/bin/env python | |
# -*- coding: utf-8 vi:noet | |
# Example of data source using subprocess, python 2 & 3 compatible | |
""" | |
This illustrates in a short example, a solution to a few caveats: | |
- read() that can hang if the subprocess closes | |
- select() that knows nothing about the subprocess closing | |
""" |