Python port listen

import socket import subprocess host = "172.18.0.1" port = 8888 s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM | socket.SO_REUSEADDR) s.bind((host, port)) while 1: data, addr = s.recvfrom(1024) if data == ‘wakeonlan’: subprocess.call(["/usr/bin/wakeonlan", "-i", "192.168.178.20", "08:60:6e:6c:be:d8"])import socket import subprocess host = "172.18.0.1" port = 8888 s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM | socket.SO_REUSEADDR) s.bind((host, port)) while 1: data, addr = s.recvfrom(1024)
Continue reading Python port listen

Linux: Youtube downloader

You can use Youtube-dlG, a multi-platform GUI for youtube-dl. The GUI lets you download multiple videos at once, can automatically convert downloaded videos to audio, lets you select the video quality and more. sudo apt-get install youtube-dl sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install youtube-dlgsudo apt-get install youtube-dl sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get
Continue reading Linux: Youtube downloader

Linux Mint: install Node.js

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash – sudo apt-get install -y nodejscurl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash – sudo apt-get install -y nodejs

View stored passwords

Seahorse is a GNOME application for managing encryption keys and passwords in the GnomeKeyring. There’s also a collection of plugins that integrate seahorse with nautilus, gedit and other places for encryption, decryption and other operations. With seahorse you can: Encrypt/decrypt/sign files and text Manage your keys and keyring Synchronize your keys and your keyring with
Continue reading View stored passwords