This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#h264 | |
ffmpeg.exe -init_hw_device qsv=hw -filter_hw_device hw -i .\out.mp4 -movflags +faststart -c:v h264_qsv -load_plugin h264_hw -global_quality 25 -max_muxing_queue_size 1024 -c:a copy aa_tope.mp4 | |
#h265 | |
ffmpeg.exe -init_hw_device qsv=hw -filter_hw_device hw -i .\out.mp4 -movflags +faststart -c:v hevc_qsv -load_plugin hevc_hw -global_quality 25 -max_muxing_queue_size 1024 -c:a copy aa_tope.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import reduce | |
import datetime | |
def time_it(func, numbers, *args): | |
start_t = datetime.datetime.now() | |
for i in range(numbers): | |
func(args[0]) | |
print (datetime.datetime.now()-start_t) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from abc import abstractmethod | |
from typing import TypeVar, Generic, get_args, Type, List | |
class Fruit: | |
@abstractmethod | |
def fruit_name(self) -> str: | |
raise NotImplementedError | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install Flash tool from https://github.com/hypriot/flash | |
flash https://downloads.raspberrypi.org/raspbian_lite_latest | |
- OR - | |
curl -O https://downloads.raspberrypi.org/raspbian_lite_latest | |
lsblk | |
sudo dd if=raspbian_latest.img of=/dev/sdb bs=4M | |
sync | |
For headless setup, SSH can be enabled by placing a file named ssh, without any extension, onto the boot partition of the SD card. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#from https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/linux-repository.md | |
#Check updates and upgrade the system | |
sudo aptitude update | |
sudo aptitude safe-upgrade | |
#Install Docker | |
#Info about Docker: http://www.javiergarzas.com/2015/07/que-es-docker-sencillo.html | |
#More Info: https://openwebinars.net/docker-que-es-sus-principales-caracteristicas/ | |
curl -sSL https://get.docker.com/ | sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# connect wifi from terminal | |
nmtui | |
kate /etc/pacman.conf | |
[Add or remove comment color] | |
# yay repository tool | |
git clone https://aur.archlinux.org/yay.git | |
cd yay | |
makepkg -si |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo chmod 600 .ssh/* | |
chown -R $USER:$USER .ssh | |
sudo apt-add-repository -y ppa:teejee2008/ppa | |
sudo apt-get install fonts-symbola | |
sudo apt install s-tui i7z | |
fc-cache -f -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INTEL i7 10710U CML | |
https://en.wikichip.org/wiki/intel/microarchitectures/comet_lake | |
Intel® Wi-Fi 6 AX201 160MHz | |
--------------------------- | |
https://www.intel.es/content/www/es/es/products/wireless/wi-fi-6-series/wi-fi-6-ax201.html | |
https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi | |
https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi/iwlwifi-qu-48.13675109.0.tgz | |
sudo cp iwlwifi-*.ucode /lib/firmware | |
sudo modprobe iwlwifi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update && sudo apt dist-upgrade -y | |
sudo add-apt-repository -y ppa:webupd8team/java && | |
sudo add-apt-repository -y ppa:webupd8team/y-ppa-manager && | |
sudo add-apt-repository -y ppa:webupd8team/terminix && | |
sudo add-apt-repository -y ppa:nilarimogard/webupd8 && | |
sudo add-apt-repository -y ppa:otto-kesselgulasch/gimp && | |
sudo add-apt-repository -y ppa:snwh/pulp && | |
sudo add-apt-repository -y ppa:moka/daily && | |
sudo add-apt-repository -y ppa:stefansundin/truecrypt && |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Upgrade lastest images of all | |
docker images | awk '{print $1}' | grep -v 'none' | grep -iv 'repo' | xargs -n1 docker pull | |
# CLEAN | |
docker system prune --volumes | |
# Create and start containers on background | |
docker-compose up -d | |
- OR - | |
docker-compose run -d --service-ports nginx-proxy |
NewerOlder