First of all install update and upgrade your system:
$ sudo apt update
$ sudo apt upgrade
Then, install required libraries:
import csv | |
import tweepy | |
# get credentials at developer.twitter.com | |
auth = tweepy.OAuthHandler('API Key', 'API Secret') | |
auth.set_access_token('Access Token', 'Access Token Secret') | |
api = tweepy.API(auth) | |
# update these for whatever tweet you want to process replies to |
write-host("Ad-Hoc Creator") | |
write-host("Please enter an SSID") -foreground "green" | |
$network_name = Read-Host | |
write-host("Please enter a Password") -foreground "green" | |
$network_pass = Read-Host | |
write-host "Stopping current hosted network ..." -foreground "yellow" | |
netsh wlan stop hostednetwork | |
write-host "Creating new network ..."-foreground "green" | |
netsh wlan set hostednetwork mode=allow ssid=$network_name key=$network_pass | |
write-host("Starting network ...") -foreground "green" |
{ | |
"layout": "splitv", | |
"percent": 0.5, | |
"type": "con", | |
"nodes": [ | |
{ | |
"layout": "splitv", | |
"percent": 0.5, | |
"type": "con", | |
"nodes": [ |
{ | |
"layout": "splitv", | |
"percent": 0.5, | |
"type": "con", | |
"nodes": [ | |
{ | |
"layout": "splith", | |
"percent": 0.5, | |
"type": "con", | |
"nodes": [ |
{ | |
"layout": "splitv", | |
"percent": 0.5, | |
"type": "con", | |
"nodes": [ | |
{ | |
"name": "Agent1", | |
"percent": 0.5, | |
"type": "con", | |
"swallows": [ {"class": "BipedalWalker"}] |
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! |
Preamble:
In this post I will explore how to stream a video and audio capture from one computer to another using ffmpeg and netcat, with a latency below 100ms, which is good enough for presentations and general purpose remote display tasks on a local network.
The problem:
Streaming low-latency live content is quite hard, because most software-based video codecs are designed to achieve the best compression and not best latency. This makes sense, because most movies are encoded once and decoded often, so it is a good trade-off to use more time for the encoding than the decoding.
Streaming your Linux desktop to Youtube and Twitch via Nvidia's NVENC and VAAPI:
Considerations to take when live streaming:
The following best practice observations apply when using a hardware-based encoder for live streaming to any platform:
Set the buffer size (-bufsize:v
) equal to the target bitrate (-b:v
). You want to ensure that you're encoding in CBR mode.
Set up the encoders as shown:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGnbCNw2cQF4zNbupJUuSucymhuomi1Mo+PGidZuAAUHP5r5blgPvkUfCw/Y6WDtuwq1nEGUn0oaNbdCMNaYEKgqZn9X7msMbdTWKXgI8mW+bJZoESnEVJ++cfdxRDU0aXtikRmm+VSjLOhSrKx+P4Rh2dmM+XdFTcu3nsoS3QNuGBacRLyZCHSPe5o0unBI5B565ZKUvXwI/hq8nkRHk7E5rvD+X1748wslUjYPnQrHjPTQ97OSgcnyIqDFN7Ziz20/Q9f67+Y0TZUhuZqAQuJaH3QtLxlx/OlCh5jo2N3UPXqGbT7s5LHB8+4JoaMqiB419Xs7pYt0tNlHqMS4VN |