- Определить адрес сетевой карточки командой (для примера адрес будет 00:19.0):
lspci- В соответствии с документацией выполнить инструкцию:
xl pci-assignable-add 00:19.0| from __future__ import print_function | |
| import numpy as np | |
| def asciihist(it, bins=10, minmax=None, str_tag='', | |
| scale_output=30, generate_only=False, print_function=print): | |
| """Create an ASCII histogram from an interable of numbers. | |
| Author: Boris Gorelik [email protected]. based on http://econpy.googlecode.com/svn/trunk/pytrix/pytrix.py | |
| License: MIT | |
| """ | |
| ret = [] |
| dpkg-buildpackage -us -uc -ui -b | |
| dpkg-buildpackage: info: source package xen | |
| dpkg-buildpackage: info: source version 4.14.0+88-g1d1d1f5391-2 | |
| dpkg-buildpackage: info: source distribution unstable | |
| dpkg-buildpackage: info: source changed by Hans van Kranenburg <[email protected]> | |
| dpkg-source --before-build . | |
| dpkg-buildpackage: info: host architecture amd64 | |
| debian/rules clean | |
| dh clean --with=python3 --buildsystem=pybuild | |
| debian/rules override_dh_auto_clean |
| To check |
lspcixl pci-assignable-add 00:19.0| #!/usr/bin/env python3 | |
| import click | |
| from datetime import datetime, timedelta | |
| from getpass import getpass | |
| import paramiko | |
| from pathlib import Path, PurePath, PureWindowsPath | |
| from tempfile import NamedTemporaryFile | |
| from uuid import uuid4 |
| # Committing changes to a repo via the Github API is not entirely trivial. | |
| # The five-step process is outlined here: | |
| # http://developer.github.com/v3/git/ | |
| # | |
| # Matt Swanson wrote a blog post translating the above steps into actual API calls: | |
| # http://swanson.github.com/blog/2011/07/23/digging-around-the-github-api-take-2.html | |
| # | |
| # I was not able to find sample code for actually doing this in Ruby, | |
| # either via the HTTP API or any of the gems that wrap the API. | |
| # So in the hopes it will help others, here is a simple function to |
| import base64 | |
| import getpass | |
| import ntpath | |
| import os | |
| import tempfile | |
| import time | |
| import winrm | |
| def is_directory_exist(session, dir_path): |
| #------------------------------------------------------------------------------ | |
| # File: $HOME/.tmux.conf | |
| # Author: Petr Zemek <[email protected]> | |
| # GitHub: https://github.com/s3rvac/dotfiles/blob/master/tmux/ | |
| #------------------------------------------------------------------------------ | |
| # Rebind the prefix from C-b to C-Space. | |
| unbind C-b | |
| set -g prefix C-Space | |
| bind C-Space send-prefix |