Summarizing the instructions of the pass
tool (as seen on its website).
Execute: $ sudo apt install pass
#!/bin/bash | |
# Run the script from home dir | |
cd ~ | |
nvim_config="$HOME/.config/nvim" | |
nvim_data="$HOME/.local/share/nvim" | |
cp -r "$nvim_config" nvim_bak # backup nvim dir | |
cp -r "$nvim_config/lua/custom" . |
Summarizing the instructions of the pass
tool (as seen on its website).
Execute: $ sudo apt install pass
ffmpeg -rtsp_transport tcp \ | |
-i rtsp://smartiptv:PASSWORD@192.168.2.3:6911/Streaming/Channels/101 \ | |
-i rtsp://smartiptv:PASSWORD@192.168.2.3:6911/Streaming/Channels/201 \ | |
-i rtsp://smartiptv:PASSWORD@192.168.2.3:6911/Streaming/Channels/301 \ | |
-i rtsp://smartiptv:PASSWORD@192.168.2.3:6911/Streaming/Channels/401 \ | |
-filter_complex " | |
nullsrc=size=1920x1080 [base]; | |
[0:v] setpts=PTS-STARTPTS, scale=960x540 [upperleft]; | |
[1:v] setpts=PTS-STARTPTS, scale=960x540 [upperright]; | |
[2:v] setpts=PTS-STARTPTS, scale=960x540 [lowerleft]; |
Moved to https://virtualize.link/secure/
#!/bin/bash | |
# This script creates a .zip backup of gitea running inside docker and copies the backup file to the current working directory | |
echo "Creating gitea backup inside docker containter ..." | |
docker exec -u git -it -w /tmp $(docker ps -qf "name=gitea_server_1") bash -c '/app/gitea/gitea dump -c /data/gitea/conf/app.ini --file /tmp/gitea-dump.zip' | |
echo "Copying backup file from the container to the host machine ..." | |
docker cp $(docker ps -qf "name=gitea_server_1"):/tmp/gitea-dump.zip /tmp |
#!/bin/bash | |
# `gitea dump` doesn't currently back up LFS data as well, only git repos | |
# It primarily backs up the SQL DB, and also the config / logs | |
# We'll backup like this: | |
# * "gitea dump" to backup the DB and config etc | |
# * tar / bzip all the repos since they will be skipped | |
# * Not rotated because git data is immutable (normally) so has all data | |
# * rsync LFS data directly from /volume/docker/gitea/git/lfs | |
# * No need for rotation since all files are immutable |
#!/bin/bash | |
# SPDX-License-Identifier: GPL-2.0-or-later | |
# | |
# Tested on freshly installed Manjaro 22.0.5 Gnome. | |
pamac build trizen | |
cat >/tmp/convert.sh <<EOF | |
pacman -Qq | grep pamac | xargs pacman -Rs --noconfirm manjaro-application-utility | |
pacman -Rdd manjaro-release bashrc-manjaro manjaro-keyring python-manjaro-sdk | |
pacman -U https://www.archlinux.org/packages/core/x86_64/{lsb-release,pacman{,-mirrorlist}}/download/ | |
mv /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist |
This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).
Running this script should look the same in tmux as without.
curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
Download the latest ugw3
package from https://github.com/Lochnair/vyatta-wireguard/releases and install it on your USG using dpkg -i wireguard-ugw3-<version>.deb
.
cd /config/auth
umask 077
mkdir wireguard
cd wireguard
wg genkey > wg_private.key
wg pubkey < wg_private.key > wg_public.key
Este es un instructivo para un tutorial en Youtube https://youtu.be/pliGG1M87W8