This file contains hidden or 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
| Instale o nvm: | |
| https://nodejs.org/en/download | |
| Se der pau no projeto ao rodar: | |
| $ npm run dev | |
| O fix: |
This file contains hidden or 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. Baixe o Cursor: | |
| https://cursor.com/downloads | |
| /home/mateus/Downloads/Cursor-1.4.5-x86_64.AppImage | |
| 2. Mova para a pasta Apps: | |
| /home/mateus/Apps/Cursor-1.4.5-x86_64.AppImage |
This file contains hidden or 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
| By Mateus Reis - 17/08/2025 - sem revisão, mas funcionou | |
| 1.1: Update Software Packages and Install wget | |
| $ sudo apt update | |
| $ sudo apt install wget -y | |
| 1.2: Install Apache | |
| $ sudo apt install apache2 -y |
This file contains hidden or 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
| // fan speed | |
| For amd you can use corectrl and for nvidia coolercontrol | |
| $ sudo apt update | |
| $ sudo apt install lm-sensors | |
| Run sensors-detect to identify hardware sensors: | |
| $ sudo sensors-detect |
This file contains hidden or 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
| Como configurar o teclado: | |
| $ lsusb | |
| Bus 003 Device 002: ID 2516:0004 Cooler Master Co., Ltd. Storm QuickFire Rapid Mechanical Keyboard | |
| $ sudo nano /etc/default/keyboard | |
| # KEYBOARD CONFIGURATION FILE | |
| # Consult the keyboard(5) manual page. |
This file contains hidden or 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
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |
This file contains hidden or 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 | |
| read -p "New local site name (prefix to .local): " SITE | |
| SITEPATH=$SITE | |
| # MYSQL=`which mysql` | |
| # sudo chmod -R a+w /var/www/html/ | |
| SITEPATH="/var/www/html/${SITEPATH}" | |
| sudo -u mateus mkdir -p $SITEPATH |
This file contains hidden or 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
| grub | |
| 1. instala linux numa hd, desconecta tudo, remova o cabo sata | |
| 2. instala windows na outra | |
| 3. religa o cabo sata do linux e reinicia | |
| $sudo nano /etc/default/grub | |
| GRUB_DEFAULT=saved | |
| GRUB_SAVEDEFAULT=true |
This file contains hidden or 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
| # some more ls aliases | |
| alias prof='source ~/.bashrc' | |
| alias profile='sudo nano ~/.bashrc' | |
| alias gitk='gitk 2>/dev/null' | |
| alias gk='gitk --all 2> /dev/null &' | |
| alias la='ls -lha' | |
| alias ls='ls -lha' |
This file contains hidden or 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
| #! /usr/bin/env python | |
| """Fix ugly file names to be UNIX shell-friendly. | |
| PROBLEM | |
| ======= | |
| You have files named with funky characters lying around in your | |
| filesystem. Ugly files like "My Document #3 - (2005)[1].txt" are | |
| common when you're sharing directories with Windows users, but you |
NewerOlder