Skip to content

Instantly share code, notes, and snippets.

View dapize's full-sized avatar
🌍
En este mundo... por ahora XD

Daniel P Z dapize

🌍
En este mundo... por ahora XD
View GitHub Profile
@dapize
dapize / vsftpd.conf
Created September 21, 2021 04:34
My own vsftpd config
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
@dapize
dapize / .bashrc
Last active September 19, 2021 21:41
Color in prom to a git folder
# add to the end of the file .bashrc
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="\e[92;1m\u@\h \[\e[94;1m\]\w \[\e[91m\]\$(parse_git_branch)\[\e[00m\]$ "
# after that type the next command:
# source ~/.bashrc
@dapize
dapize / wine-6-installer-debian-10.sh
Last active July 8, 2021 11:47
Install Wine 6 on Debian 10
#!/bin/bash
apt-get -y install aptitude
dpkg --add-architecture i386
aptitude -y install gnupg2 software-properties-common
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo apt-add-repository https://dl.winehq.org/wine-builds/debian/
wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/Release.key | sudo apt-key add -
echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list
sudo aptitude -y update
sudo apt -y install --install-recommends winehq-stable
@dapize
dapize / restoring-file-manager-deepin.sh
Created July 1, 2021 10:50
Linux & Visual Studio Code: super + e
# For Deepin
xdg-mime default dde-file-manager.desktop inode/directory application/x-gnome-saved-search
@dapize
dapize / gist:cb14a4992c69b63baf0b4dc3befbe598
Created June 27, 2021 19:00
React Native Error: ENOSPC: System limit for number of file watchers reached
# insert the new value into the system config
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
# check that the new value was applied
cat /proc/sys/fs/inotify/max_user_watches
# config variable name (not runnable)
fs.inotify.max_user_watches=524288
@dapize
dapize / gist:d933af0f30a5716c2887b9a9c6e1932f
Created June 27, 2021 17:42
You are missing the following 32-bit libraries, and Steam may not run: libGL.so.1
# In Debian
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install libgl1-mesa-dri:i386 libgl1:i386
sudo apt install libgl1-nvidia-glvnd-glx:i386
@dapize
dapize / VMware Workstation KEYS
Last active October 30, 2025 10:33
key VMware® Workstation 16 Player (16.1.1 build-17801498)
VMware® Workstation 16 Player (16.1.1 build-17801498)
FA1M0-89YE3-081TQ-AFNX9-NKUC0
VMware Workstation Pro v16 Serial Key - DiamondMonday
ZF3R0-FHED2-M80TY-8QYGC-NPKYF
YF390-0HF8P-M81RQ-2DXQE-M2UT6
@dapize
dapize / dpkg-package-cleaner
Last active April 25, 2021 05:00
dpkg error processing package
# run this command to remove broken packages in Debian and derivates.
# package_name have to be the name of the package, for example: com.brave.brave-browser
sudo dpkg --remove --force-remove-reinstreq package_name
sudo apt-get update
# EXTRA: if we need see the package with errors we can use this commands:
sudo apt-get clean
sudo dpkg --configure -a
sudo apt-get autoremove
@dapize
dapize / gist:1dde8278f66c44350e97a63b86d3e503
Created April 24, 2021 16:54
how-to-install-firefox-developer-edition-on-linux DEEPIN
We can download the application also from the command line, using the curl utility; if we combine it with tar via a pipe, we can extract the tarball "on the fly". All we have to do is to run the following command:
$ curl --location
"https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=en-US" \
| tar --extract --verbose --preserve-permissions --bzip2
We invoked curl using the --location option which is needed to make curl follow redirections, and providing the download URL. If not otherwise specified, curl writes its output to stdout (standard output), so we use a pipe | to redirect said output and use it as the standard input (stdin) of the tar application.
We used the latter with some options: --extract to perform an extraction, --verbose (optional) to make the name of the extracted files be printed on the terminal when they are extracted, --preserve-permissions to preserve the files permissions, and --bzip2 to specify how the tarball should be decompressed. If everything g