Socket example developed in C, it creates a client and a server, and sends files in between.
- client.c
- client
This code consists of a python script which allows us to easily download YouTube videos/audio by passing its URL via the command line.
By default, the script outputs the file to: D:\YouTube
, you can simply change it by modifying the path variable.
Passos a seguir per a un correcte funcionament:
'usr/local/bin/lab-administració.sh
. milax@casa:~$ sudo EDITOR=vim crontab -e
0 10 * * 1-5 /bin/bash /usr/local/bin/lab-administracio.sh
al fitxer.
Aquest fitxer s'encarregarà de fer l'execució entre setmana./etc/systemd/system/lab-administracio.service
:#!/bin/bash | |
# Author: Carlos Martínez García-Villarrubia (carlos.martinezg@estudiants.urv.cat) | |
date=$(date +"%Y-%m-%d %H:%M:%S") | |
if [ $# -gt 0 ]; then | |
for paquet in "$@" | |
do | |
# Comprovo si el paquet ja està instal·lat | |
if apt list --installed | grep -w "$paquet" >/dev/null 2>&1; then |
import random | |
import sys | |
import tty | |
import termios | |
acronyms = [ | |
"3PC: Three Phase Commit Protocol", | |
"ACID: Atomicity, Consistence, Isolation, Durability", | |
"ACL: Access control list", | |
"API: Aplication programing interface", |