Skip to content

Instantly share code, notes, and snippets.

@franciscocpg
franciscocpg / README.md
Created May 4, 2020 11:45
Yay install old version

Install old versions using the flag -U poiting to the archive URL. Eg:
yay -U https://archive.archlinux.org/packages/v/vte-common/vte-common-0.58.3-1-x86_64.pkg.tar

@erkie
erkie / Load Balancing FTP.txt
Created January 25, 2020 22:07
Load balancing FTP
Load Balancing FTP.
If you run an FTP server at scale, you will eventually want to load balance it. This is no mean task as FTP is a notoriously finicky protocol. Those familiar with FTP will know that it uses more than one TCP connection; the first connection is the command channel and the second is the data channel. To successfully load balance FTP, you must address both of these connections.
To further complicate matters, the data channel can be established using two methods. FTP Active or FTP Passive. For the rest of this document, I will simply use the terms active and passive to refer to these modes. First, let’s review how the command and data channels are used in FTP.
Active FTP.
When using FTP in active mode, the FTP client first connects to the server on port 21. This opens the command channel. The client authenticates itself, sets options, retrieves feature support from the server etc. The data channel is not opened until the client makes request that will result in the transfer of data from the
@madkoding
madkoding / install-docker-deepin.sh
Last active August 13, 2025 15:36
Install Docker-CE script for Deepin Linux
#!/bin/bash
echo "Starting Docker installation on Deepin Linux..."
# Define a mapping from Deepin version to Debian version
map_deepin_to_debian() {
if [ "$1" -lt 20 ]; then
echo "stretch"
elif [ "$1" -ge 20 ]; then
echo "buster"
@kurtis318
kurtis318 / Spice_client_agents_for_Windows.txt
Created July 20, 2017 16:23
Spice client agents for Windows
I have a Windows 10 KVM running uder Fedora 25 (soon to be 26). The copy/paste between virt-viewer and Fedora 25 is not working. it finally got me iritated enough to figure out the reason. Turns out, there is a SPICE client agent for Windows.
Here is the URL to download the installer:
https://www.spice-space.org/download/binaries/spice-guest-tools/
Here is the direct download to the latest version:
https://www.spice-space.org/download/binaries/spice-guest-tools/spice-guest-tools-0.132/spice-guest-tools-0.132.exe
@janus57
janus57 / install_php_sury.sh
Last active March 14, 2026 06:04
Install "deb.sury.org" repository for PHP
#!/bin/bash
# For up-to-date version see : https://packages.sury.org/php/README.txt
wget https://packages.sury.org/php/apt.gpg -O /usr/share/keyrings/deb.sury.org-php.gpg
echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php-sury.list
apt update