Just use uv to run yt-dlp (the new version of youtube-dl):
>> uv run --with yt-dlp -k --with node \
yt-dlp --js-runtimes node --remote-components ejs:github \
https://www.youtube.com/watch\?v\=y3vV-yvMfF0
Just use uv to run yt-dlp (the new version of youtube-dl):
>> uv run --with yt-dlp -k --with node \
yt-dlp --js-runtimes node --remote-components ejs:github \
https://www.youtube.com/watch\?v\=y3vV-yvMfF0
$ sudo apt-get install sslh
DAEMON_OPTS="-u sslh -p 0.0.0.0:443 -s 127.0.0.1:22 -l 127.0.0.1:2443 -P /var/run/sslh.pid"RUN=yes
$ /etc/init.d/sslh start
This command will display the network usage of all the running processes
nettop -P -k state,interface -d -s 3
Flags explained:
-s refreshes every 3 seconds
-P collapses the rows of each parent process
-k state,interface removes less informative columns that stand between you and the bytes in/out columns
-d activates the delta option (same as pressing the d button)
Use the h button or run man nettop for some more options.
source: https://apple.stackexchange.com/questions/16690/how-can-i-see-what-bandwidth-each-app-or-process-is-using
#!/bin/bash #title :socksProxySSH.sh #description :initiates SSH dynamic port forwarding and sets up # the network proxy settings for you #author :Gabriele Facciolo (http://linuxtoosx.blogspot.com/) #date :20130615 #version :1.0 #OSX version :Tested on OSX 10.6.8 #usage :socksProxySSH.sh [remoteHost [localPort (default:1080)]] DEFAULTSSHHOST="" DEFAULTLOCALSOCKSPORT=1080 # DEAL WITH COMMAND LINE PARAMETERS if [ "${1}" != "" ] then SSHHOST=$1 else SSHHOST=$DEFAULTSSHHOST fi if [ "${2}" != "" ] then LOCALSOCKSPORT=$2 else LOCALSOCKSPORT=$DEFAULTLOCALSOCKSPORT fi # SORRY NO SSHHOST if [ "${SSHHOST}" == "" ] then echo "${0}: initiates SSH dynamic port forwarding and " echo "sets up the network proxy settings for you." echo "" echo " Usage: ${0} [remoteHost [localPort(default:1080)]]" echo "" echo "Indicate a remoteHost, or set the DEFAULTSSHHOST variable" exit 1 fi # ENABLE SOCKS ON ACTIVE INTERFACES networksetup -listallnetworkservices | grep -v asterisk | while read line ; do t=`networksetup -getinfo "$line" | grep "IP address" | grep -v none` if [ "$t" ]; then tt=`networksetup -getsocksfirewallproxy "$line" | grep -v Authenticated | grep "Enabled: No"` if [ "$tt" ]; then echo Enabling SOCKS on $line networksetup -setsocksfirewallproxy "$line" localhost $LOCALSOCKSPORT fi fi done # OPEN CONNECTION AND INITIATE SOCKS SERVER echo "" echo "INITIATING SSH CONNECTION AND SOCKS SERVER..." echo "=========================================================" echo "TO DISCONNECT FIRST HIT Ctrl-D, WAIT A SECOND THEN Ctrl-C" echo "=========================================================" echo "" ssh -C -D *:$LOCALSOCKSPORT $SSHHOST # DISABLE SOCKS ON ACTIVE INTERFACES networksetup -listallnetworkservices | grep -v asterisk | while read line ; do t=`networksetup -getinfo "$line" | grep "IP address" | grep -v none` if [ "$t" ]; then tt=`networksetup -getsocksfirewallproxy "$line" | grep -v Authenticated | grep "Enabled: Yes"` if [ "$tt" ]; then echo Disabling SOCKS on $line networksetup -setsocksfirewallproxystate "$line" off fi fi done