Skip to content

Instantly share code, notes, and snippets.

View Underewarrr's full-sized avatar

Rafhael Oliveira Underewarrr

View GitHub Profile
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt update
sudo apt install gcc-11 g++-11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11
sudo update-alternatives --set gcc /usr/bin/gcc-11
gcc-11 --version
g++-11 --version
sudo apt remove --purge cmake
hash -r
sudo apt install snapd
sudo snap install cmake --classic
cmake --version
@Underewarrr
Underewarrr / [Ubuntu] Compilando OTC com VCPKG .md
Last active July 5, 2022 15:27
Compilando Otclient com vcpkg no sistema operacional linux-ubuntu

Anotações de desenvolvimento

Tutorial: Protocol 12.x assets

1. Instalando as bibliotecas basicas de compilação

Para instalar use apt-get

sudo apt update
@Underewarrr
Underewarrr / [Ubuntu] Compilando OTC.md
Last active July 5, 2022 15:26
Compilando Otclient no sistema operacional linux-ubuntu

Anotações de desenvolvimento

Tutorial: Protocol 12.x assets

1. Instalando as bibliotecas basicas de compilação

Para instalar use apt-get

sudo apt install -y build-essential cmake git libasio-dev libphysfs-dev liblua5.1-dev libssl-dev libglew-dev libvorbis-dev libopenal-dev zlib1g-dev liblzma-dev nlohmann-json3-dev
@Underewarrr
Underewarrr / [Ubuntu-Debian]Nginx+Mysql.md
Last active July 12, 2022 12:48
Instalando Niginx + Mysql

[Linux - Ubuntu/Debian] Nginx + MySQL:

1 - Instalação - Nginx:

sudo apt update
sudo apt install nginx
sudo service nginx start

sudo ufw app list
sudo ufw allow in "Nginx Full"
## Follow this link for further updates to Github Desktop for Ubuntu https://github.com/shiftkey/desktop/releases/latest
# UPDATE (2021-10-18): Thanks to Amin Yahyaabadi's message, the updated code is as follows
sudo wget https://github.com/shiftkey/desktop/releases/download/release-2.9.3-linux3/GitHubDesktop-linux-2.9.3-linux3.deb
### Uncomment below line if you have not installed gdebi-core before
# sudo apt-get install gdebi-core
sudo gdebi GitHubDesktop-linux-2.9.3-linux3.deb
# UPDATE (2021-03-05): Thanks to PaoloRanzi81's comment, the updated code is as follows https://gist.github.com/PaoloRanzi81
@Underewarrr
Underewarrr / checklist-context.md
Created March 28, 2022 19:12 — forked from ANDREHORMAN1994/checklist-context.md
Checklist do Context API

Checklist do Context API

Vamos começar criando nossos arquivos dentro da pasta src:

  • Criar uma pasta context;
  • Dentro da pasta context vamos criar um arquivo myContext.js;

Dentro do arquivo myContext.js:

  • Importar do react o createContext;

Checklist do Redux

Antes de começar

  • pensar como será o formato do seu estado global
  • pensar quais actions serão necessárias na sua aplicação

Instalação

  • npx create-react-app my-app-redux;
  • npm install --save redux react-redux;
  • npm install --save redux-devtools-extension -D