It is no longer necessary to use this script to have hardware acceleration in ffmpeg on Debian. The default Debian ffmpeg and dependencies now support this out of the box.
See: #gistcomment-5095112
| const puppeteer = require('puppeteer'); | |
| const proxyChain = require('proxy-chain'); | |
| (async() => { | |
| const oldProxyUrl = 'http://bob:password123@proxy.example.com:8000'; | |
| const newProxyUrl = await proxyChain.anonymizeProxy(oldProxyUrl); | |
| // Prints something like "http://127.0.0.1:45678" | |
| console.log(newProxyUrl); |
| use std::{ | |
| fs::File, | |
| io::{Read, Write}, | |
| time::Instant, | |
| }; | |
| use tokio::task::{self, JoinHandle}; | |
| async fn compute() { | |
| let handles: Vec<JoinHandle<_>> = (0..1000) | |
| .map(|_| { |
| # configuration file /etc/nginx/nginx.conf: | |
| user apache apache; | |
| worker_processes auto; | |
| error_log /var/log/nginx/error.log; | |
| include /usr/share/nginx/modules/*.conf; | |
| events { | |
| worker_connections 4096; | |
| } | |
| [package] | |
| name = "rddd" | |
| version = "0.1.0" | |
| edition = "2021" | |
| [dependencies] | |
| hyper = { version = "1.3.1", default-features = false, features = ["http2", "client"] } | |
| hyper-util = { version = "0.1.3", features = ["client", "http2", "tokio"] } | |
| tokio = { version = "1.37.0", default-features = false, features = ["rt", "fs"] } | |
| tokio-rustls = { version = "0.26.0", default-features = false, features = ["ring", "tls12"] } |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <fcntl.h> | |
| #include <err.h> | |
| #include <unistd.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> |
It is no longer necessary to use this script to have hardware acceleration in ffmpeg on Debian. The default Debian ffmpeg and dependencies now support this out of the box.
See: #gistcomment-5095112