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 / 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 / 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 / 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 / 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 / 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 / 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 / .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
# 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 / 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.
#
@dapize
dapize / gist:271a145446850588ecba09f144f7c023
Created December 22, 2021 05:08
Solution for the message "No such file or directory" But the file exists!
# Solution for the message "No such file or directory" But the file exists!
# First lests to see is the file is a 32-bit file writing the command:
# file nameOfTheFile
# and pressing ENTER
# is possible of you get a message like that: "...ELF 32-bit LSB executable.."
# so, is right, is a 32-bit file
# now we have to install the 32-bit packages to execute that file write this command:
sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install ia32-libs && sudo aptitude -y install lib32z1