Skip to content

Instantly share code, notes, and snippets.

View joulgs's full-sized avatar
🎯
Focusing

Jonathas Soares joulgs

🎯
Focusing
View GitHub Profile
@joulgs
joulgs / install_libssl_debian11.md
Created May 11, 2024 07:29
How install libssl1.1 on debian 11

Installing libssl1.1 on Debian

To install libssl1.1 on Debian, follow these steps:

  1. Access the Download Page: Visit the download page at: libssl1.1 - Debian Bullseye

  2. Choose Your CPU Architecture:

image

Select your CPU architecture. In most cases, the amd64 architecture is used.

@joulgs
joulgs / github-tips.md
Last active April 6, 2024 09:04
How to reference an issue from another repository in an issue

Tips

  • To reference an issue from another repository, use the following structure

- [ ] user-name/repor-name#issue_number

like:

@joulgs
joulgs / sdkman-vs-jenv.md
Created March 24, 2024 11:36 — forked from tfield/sdkman-vs-jenv.md
SDKMAN vs JENV

sdkman vs jenv

Jenv is great, but the JDKs have to be manually installed. If you need more than just a couple of them, you'll want to be able to install them via command line, and sdkman provides this capability very cleanly for java. So... is it possible to work with both sdkman and jenv? Yes and no. Some tricks will allow you to tell jenv about the java versions that are managed by sdkman, but setting defaults (using jenv local 17.0 for instance) does not work very well. Time for a cleaner solution. Sdkman provides all of the same functionality, with more power and a slightly different (but equally simple) syntax. I've switched from jenv to sdkman. Here's my cheat sheet.

Setup

Download and install sdkman. Follow the required instructions after installing. Then, run the config command to enable auto_env support.

echo “Installing SDKMAN"
curl -s https://get.sdkman.io | bash
@joulgs
joulgs / gist:23ab216017840294973c25177e76cc00
Created December 14, 2023 18:21
check folder sizer unix system
Listar o tamanho de cada subdiretório no diretório raiz em ordem decrescente:
sudo du -h --max-depth=1 / | sort -rh
Se preferir uma saída mais concisa, você pode listar apenas os diretórios e seus tamanhos:
sudo du -h --max-depth=1 --separate-dirs /
@joulgs
joulgs / install_phpmyadmin.md
Created October 2, 2023 13:56
How install phpmyadmin in debian/ubuntu whit nginx

need install:

  • php-fpm
  • nginx

sudo apt install phpmyadmin

create into /etc/nginx/snippets the file phpmyadmin.conf

add in file:

@joulgs
joulgs / gist:7add5f36fe04437a31dadfb5be0cd8d9
Created October 2, 2023 11:31
How enable remote access to MariaDB on Ubuntu/Debian
access the file ´/etc/mysql/my.cnf´ or ´/etc/mysql/mariadb.conf.d/50-server.cnf´ and find the line `bind-address = 127.0.0.1
and change 127.0.0.1 to 0.0.0.0.
source: https://webdock.io/en/docs/how-guides/database-guides/how-enable-remote-access-your-mariadbmysql-database
@joulgs
joulgs / vscodeclean.sh
Created March 31, 2023 14:11
Complete Reset VSCode (ubuntu/mac)
#!/bin/sh
rm -rfv "$HOME/.vscode"
rm -rfv "$HOME/Library/Application Support/Code"
rm -rfv "$HOME/Library/Caches/com.microsoft.VSCode"
rm -rfv "$HOME/Library/Saved Application State/com.microsoft.VSCode.savedState"
@joulgs
joulgs / terminal.txt
Last active December 2, 2024 18:42
How install libssl1.1 on ubuntu 22.04
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
@joulgs
joulgs / configurar_git_remote.txt
Last active October 4, 2024 19:35
Configurar git remote num servidor
# Criar e entrar no repositorio .git
mkdir ~/git/meu_projeto.git
cd ~/git/meu_projeto.git
# Iniciar um novo repositorio git bare
git init --bare
# Com o repositorio criado voce navega até hooks e criar um arquivo post-receive
@joulgs
joulgs / gist:4f38f45a65ace2aa758d542a0c49c3cd
Created September 20, 2021 19:32
reiniciar nginx em conteiner docker
sudo docker exec -it container nginx -s reload