Skip to content

Instantly share code, notes, and snippets.

View washopilot's full-sized avatar

Fernando Chicaiza washopilot

View GitHub Profile
@washopilot
washopilot / settings.json
Last active May 25, 2024 15:20
My VSCode Custom Settings
{
"[blade]": {
"editor.defaultFormatter": "shufo.vscode-blade-formatter"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[dockercompose]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
@washopilot
washopilot / windows dual boot
Last active July 1, 2022 11:41
Dual boot Linux - Windows10
bcdedit /enum firmware
bcdedit /delete {id}
bcdedit /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi
bcdedit /set {bootmgr} path \EFI\fedora\grubx64.efi
---------------------------
diskpart
@washopilot
washopilot / install php shorcuts
Last active April 22, 2023 04:17
php install
UBUNTU
sudo apt install php8.1 php8.1-curl php8.1-gd php8.1-intl php8.1-mbstring php8.1-mysql php8.1-opcache php8.1-sqlite3 php8.1-xml php8.1-zip
sudo apt install php7.4 php7.4-curl php7.4-gd php7.4-intl php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-sqlite3 php7.4-xml php7.4-zip
FEDORA
sudo dnf -y update
sudo dnf -y install https://rpms.remirepo.net/fedora/remi-release-36.rpm
sudo dnf config-manager --set-enabled remi
sudo dnf module reset php
sudo dnf module install php:remi-7.4
@washopilot
washopilot / git_config.txt
Last active April 6, 2024 22:51
Git global username/email configuration
To set your global username/email configuration:
Open the command line.
Set your username:
git config --global user.name "Fernando Chicaiza"
Set your email address:
git config --global user.email "[email protected]"
@washopilot
washopilot / steps_ohmyzsh_p10k.txt
Last active February 13, 2024 06:16
Oh My Zsh + PowerLevel10k
https://dev.to/abdfnx/oh-my-zsh-powerlevel10k-cool-terminal-1no0
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
Then you need to enable it, change the value of ZSH_THEME to following in ~/.zshrc file:
ZSH_THEME="powerlevel10k/powerlevel10k"
p10k configure
@washopilot
washopilot / ssh.txt
Created December 27, 2022 16:42
ssh configuration namecheap
PARA GENERAR KEY
ssh-keygen -t rsa
PARA CONECTARSE MEDIANTE SSH CON NAMECHEAP
ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa user@myhost -p 22

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@washopilot
washopilot / jlgranda server permissions
Created March 21, 2023 11:27
jlgranda server permissions
chown emporiol.emporiol emporiolojano.com -Rf
chmod 775 emporiolojano.com -Rf
@washopilot
washopilot / website-dl.md
Created April 21, 2023 12:18 — forked from stvhwrd/website-dl.md
Download an entire website for offline use with wget. Internal inks will be corrected so that the entire downloaded site will work as it did online.

The best way to download a website for offline use, using wget

There are two ways - the first way is just one command run plainly in front of you; the second one runs in the background and in a different instance so you can get out of your ssh session and it will continue.

First make a folder to download the websites to and begin your downloading: (note if downloading www.SOME_WEBSITE.com, you will get a folder like this: /websitedl/www.SOME_WEBSITE.com/)


STEP 1:

@washopilot
washopilot / Dockerfile
Last active July 11, 2023 03:09
Succesfull BoltCMS DockerFile and docker-compose with multi-networking
# the different stages of this Dockerfile are meant to be built into separate images
# https://docs.docker.com/develop/develop-images/multistage-build/#stop-at-a-specific-build-stage
# https://docs.docker.com/compose/compose-file/#target
# https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
ARG PHP_VERSION=7.4
ARG OPENRESTY_VERSION=1.17.8.2
# "php" stage