start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
pdfembed | |
========= | |
Embed a pdf inside another. | |
Dependencies: | |
- pdfrw_ |
from PyPDF2 import PdfFileReader, PdfFileWriter | |
from PyPDF2.pdf import PageObject | |
reader = PdfFileReader(open("invoice.pdf",'rb')) | |
invoice_page = reader.getPage(0) | |
sup_reader = PdfFileReader(open("supplement.pdf",'rb')) | |
sup_page = sup_reader.getPage(1) # We pick the second page here | |
translated_page = PageObject.createBlankPage(None, sup_page.mediaBox.getWidth(), sup_page.mediaBox.getHeight()) |
Install vbox from source (tested on Ubuntu Server 16.04.1 LTS): | |
=============================================================== | |
# Build dependencies can be found at: | |
# https://www.virtualbox.org/wiki/Linux%20build%20instructions | |
# | |
# unfortunatly, they are always outdated (thx Oracle) | |
# here are the missing pkg on Ubuntu Server 16.04.1 LTS: | |
apt-get install subversion build-essential bcc iasl xsltproc uuid-dev \ |
# Docker compose to set up containers for all services you need: | |
# VPN | |
# Sonarr, Radarr, Lidarr, Qbittorrent | |
# Non-VPN | |
# Plex, get_iplayer | |
# Before running docker-compose, you should pre-create all of the following folders. | |
# Folders for Docker State: | |
# /volume1/dockerdata. - root where this docker-compose.yml should live | |
# /volume1/dockerdata/plex - Plex config and DB | |
# /volume1/dockerdata/sonarr - Sonarr config and DB |
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
Install a working (and compiled) version of virt-viewer. You may view the homebrew package's upstream source on GitHub.
brew tap jeffreywildman/homebrew-virt-manager
brew install virt-viewer
Once that's installed should be able make a call remote-viewer
with a pve-spice.vv file downloaded from proxmox web interface
##/etc/pve/qemu-server/100.conf | |
##Network and disks not included in this example | |
##Set halt_poll_ns | |
#set_halt_poll 0 | |
##CPU pinning | |
#cpu_taskset 1-7 | |
#assign_interrupts --sleep=10s 1-7 --all | |
agent: 1 |