Skip to content

Instantly share code, notes, and snippets.

View AleixMT's full-sized avatar
💞
opensourceen todo

Aleix Mariné-Tena AleixMT

💞
opensourceen todo
View GitHub Profile

Python youtube video downloader

This code consists of a python script which allows us to easily download YouTube videos/audio by passing its URL via the command line.
python_32x32

Content

Project files

  • youtube.py: the script's code
  • aux_functions: contains multiple functions used to customize the output color and animations.

Default output

By default, the script outputs the file to: D:\YouTube, you can simply change it by modifying the path variable.

Ports used

Some of the exact port numbers seem to be different between installations. I'm not sure if any have to be as listed, but those were a working number I used at some point

Port Description Place Defined Open Port Unique
11000 Overworld server port Master/server.ini x x
11001 Cave server port Caves/server.ini x x
8768 Steam auth port for overworld Master/server.ini
8769 Steam auth port for cave Caves/server.ini
27018 Steam master server port for overworld Master/server.ini x
@thelegendofbrian
thelegendofbrian / Install LinuxGSM DST Server with Caves.md
Last active November 20, 2024 11:46
Install LinuxGSM DST Server with Caves

Ports used

Some of the exact port numbers seem to be different between installations. I'm not sure if any have to be as listed, but those were a working number I used at some point

Port Description Place Defined Open Port Unique
11000 Overworld server port Master/server.ini x x
11001 Cave server port Caves/server.ini x x
8768 Steam auth port for overworld Master/server.ini
8769 Steam auth port for cave Caves/server.ini
27018 Steam master server port for overworld Master/server.ini x
@mattolenik
mattolenik / bash-function-regex.sh
Created June 23, 2018 21:15
Bash regex pattern for matching bash functions
[[ 'function some_func ( ) {' =~ ^[[:blank:]]*(function[[:blank:]]+)?([\x30-\x39\x41-\x5A\x61-\x7A\xA0-\x19FF\+\-\.\^\/\?,%#_@:~]+)[[:blank:]]*\([[:blank:]]*\)[[:blank:]]*({)?$ ]]
#BASH_REMATCH results:
#0 - whole match
#1 - either 'function' or empty string
#2 - function name
#3 - either '{' or empty string
#Character ranges include pretty much all unicode and normal characters that bash will accept.
@maikell
maikell / kickstart-centos7-usb.md
Created October 13, 2016 05:14
Kickstart driven CentOS 7 install from USB

Kickstart driven CentOS 7 install from USB

None of what is written below is particularly original, however, I was unable to find a method documented on the internet at the time of writing that successfully created a kickstart driven CentOS 7 USB installer.

My interest was in doing this manually as I require this USB (image) to be created from a script. Therefore, I did not look into using ISO to USB applications - in addition, these typically do not allow custom kickstart files to be used.

References

Much of the process described below was found on the CentOS Wiki page on Installing from USB key, and from the Softpanorama page on the same subject. I thoroughly recommend reading all of the latter as it highlights the shortcomings/dangers associated with the steps below.

USB key preparation

@pveeckhout
pveeckhout / AbstractGenericDAOImpl
Last active August 28, 2023 09:48
Generic implementation of JPA DAOs and Services with Spring 4.0.0 requiring no additional code written for basic CRUD.
package com.pietervaneeckhout.dao.impl;
import com.pietervaneeckhout.dao.GenericDao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;
@talespadua
talespadua / hanoi.c
Last active March 22, 2025 00:32
Algorítimo para resolver a torre de Hanoi escrito em C, usando recursão. Hanoi tower algorithm, written in C, using recursion.
#include <stdio.h>
void hanoi(int n,char origem,char destino,char auxiliar){
/*Se sobrar apenas o disco 1, mova fazer o movimento e retornar*/
if(n==1){
printf("\nMova o disco 1 da base %c para a base %c",origem ,destino);
return;
}
/*Mover o n-1 disco de A para B, usando C de auxiliar*/
hanoi(n-1,origem,auxiliar,destino);