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
export interface IMimeTypes { | |
[ propName: string ]: string; | |
} | |
export const mimeTypesImgs:IMimeTypes = { | |
gif: 'image/gif', | |
jpg: 'image/jpg', | |
jpeg: 'image/jpeg', | |
png: 'image/png', | |
bmp: 'image/bmp', |
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
# 1.- Open the file located here: ~/.bash_profile (in windows is: /c/Users/YourUserName/.bash_profile) | |
# 2.- add the next line: | |
export MSYS=enable_pcon | |
# 3.- close all the gitbash instances opened or reset Windows, open again and tha's it! |
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
class Office { | |
name: string; | |
employees: number; | |
private static instance: Office; | |
constructor(name: string, employees: number) { | |
this.name = name; | |
this.employees = employees; | |
if (typeof Office.instance === "object") { |
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
#!/bin/bash | |
sudo apt update -y && sudo apt upgrade -y | |
sudo apt install -y dirmngr ca-certificates software-properties-common gnupg gnupg2 apt-transport-https | |
sudo gpg --no-default-keyring --keyring /usr/share/keyrings/rob-savoury.gpg --keyserver keyserver.ubuntu.com --recv-keys E996735927E427A733BB653E374C7797FB006459 | |
sudo gpg --list-keys | |
sudo gpg --no-default-keyring --keyring /usr/share/keyrings/rob-savoury.gpg --keyserver keyserver.ubuntu.com --recv-keys E996735927E427A733BB653E374C7797FB006459 | |
echo 'deb [signed-by=/usr/share/keyrings/rob-savoury.gpg] https://ppa.launchpadcontent.net/savoury1/ffmpeg4/ubuntu jammy main' | sudo tee -a /etc/apt/sources.list.d/ffmpeg-4-rob-savoury.list | |
echo 'deb [signed-by=/usr/share/keyrings/rob-savoury.gpg] https://ppa.launchpadcontent.net/savoury1/ffmpeg5/ubuntu jammy main' | sudo tee -a /etc/apt/sources.list.d/ffmpeg-5-rob-savoury.list | |
sudo apt update -y && sudo apt upgrade -y | |
sudo apt install -y ffmpeg |
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
#!/bin/bash | |
sudo apt update && sudo apt upgrade | |
sudo apt install python3 python3-dev python3-jinja2 python3-psutil python3-setuptools psensor psensor-server python3-pip lm-sensors -y | |
sudo pip3 install glances | |
glances --version | |
echo "DONE!!!!" |
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
#!/bin/bash | |
sudo apt install -y git | |
git clone https://github.com/cilynx/rtl88x2bu.git | |
cd rtl88x2bu | |
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf) | |
sudo apt install -y rsync | |
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER} | |
sudo apt install -y dkms | |
sudo dkms add -m rtl88x2bu -v ${VER} | |
sudo dkms build -m rtl88x2bu -v ${VER} |
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
# content of the file ~/.vnc/xstartup for a VNCServer with XFCE Desktop | |
#!/bin/sh | |
# Start up the standard system desktop | |
unset SESSION_MANAGER | |
unset DBUS_SESSION_BUS_ADDRESS | |
/usr/bin/startxfce4 | |
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup | |
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources | |
x-window-manager & |
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
# first we have to create a file in this target: | |
sudo nano /etc/systemd/system/hereTheNameOfTheService.service | |
# inside that file we have to paste this: | |
[Unit] | |
Description=A Description of my service | |
After=network.target | |
[Service] |
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 dpkg --add-architecture i386 | |
sudo apt-get update | |
sudo apt install libgl1-mesa-dri:i386 libgl1:i386 | |
sudo apt-get upgrade steam -f | |
sudo apt install nvidia-driver-libs:i386 |
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
# first lets open the file locate.gen with nano but with root | |
sudo nano /etc/locale.gen | |
# second, lets uncomment the "en_US.UTF-8" line | |
# thrid save the file and set the next command: | |
sudo locale-gen | |
# and that's all. |
NewerOlder