This way a Python daemon can be installed on Rasbian, Ubuntu or similar systems using systemd.
Installing:
sudo cp hello.service /lib/systemd/system/hello.service
sudo systemctl daemon-reload
sudo systemctl enable hello.service
// ==UserScript== | |
// @name Bypass New York Times paywall (20 article limit) | |
// @author Mathias Bynens <http://mathiasbynens.be/> | |
// @link http://mths.be/axa | |
// @match http://www.nytimes.com/* | |
// ==/UserScript== | |
(function(d) { | |
d.getElementById('overlay').style.display = 'none'; | |
d.getElementById('gatewayCreative').style.display = 'none'; |
gcd={a,b->b?gcd(b,a%b):a} | |
mcm={a,b->a*b/gcd(a,b)} |
#!/usr/bin/env ruby | |
require 'aws-sdk' | |
# initialize S3 client | |
s3_client = Aws::S3::Client.new(region: 'us-east-1') | |
# initialize KMS client | |
kms_client = Aws::KMS::Client.new(region: 'us-east-1') |
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:
This configuration worked for me, hope it helps
It is based on: https://becominghuman.ai/deep-learning-gaming-build-with-nvidia-titan-xp-and-macbook-pro-with-thunderbolt2-5ceee7167f8b
and on: https://stackoverflow.com/questions/44744737/tensorflow-mac-os-gpu-support
Currently if you try to use the TensorFlow rust bindings crate: tensorflow = "0.17.0", this crate's sub-crate: tensorflow-sys will try to build the underlying TensorFlow C library from the source as Google hasn't provided an official release for Apple M1, but unfortunately the building will fail.
This gist provides a full working instructions for you to build the TensorFlow C library on Apple M1 (darwin_arm64), and eventually use it with the TensorFlow rust bindings crate: tensorflow = "0.17.0".
This gist was tested on TensorFlow v2.8.0
, the other versions should work in the same way.