Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
import xlrd | |
from openpyxl.workbook import Workbook as openpyxlWorkbook | |
# content is a string containing the file. For example the result of an http.request(url). | |
# You can also use a filepath by calling "xlrd.open_workbook(filepath)". | |
xlsBook = xlrd.open_workbook(file_contents=content) | |
workbook = openpyxlWorkbook() | |
for i in xrange(0, xlsBook.nsheets): |
import json | |
import requests | |
class Aria2c: | |
''' | |
Example : | |
client = Aria2c('localhost', '6800') | |
# print server version |
# lsb_release -a | |
No LSB modules are available. | |
Distributor ID: Debian | |
Description: Debian GNU/Linux 8.9 (jessie) | |
Release: 8.9 | |
Codename: jessie | |
Installing telegram-send | |
# pip install telegram-send |
### Basic ### | |
# The directory to store the downloaded file. | |
dir=${HOME}/Downloads | |
# Downloads the URIs listed in FILE. | |
input-file=${HOME}/.aria2/aria2.session | |
# Save error/unfinished downloads to FILE on exit. | |
save-session=${HOME}/.aria2/aria2.session | |
# Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits. Default: 0 | |
save-session-interval=60 | |
# Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5 |
In this text I show how to use your android phone as microphone for your pc desktop using sox
over ssh
.
You need have a pulseaudio
server running in your pc desktop.
Make a simple virtual microphone device using the following:
pactl load-module module-pipe-source source_name=virtmic file=/tmp/virtmic format=s32 rate=48000 channels=1