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 / 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:

@tfield
tfield / sdkman-vs-jenv.md
Last active May 30, 2024 02:12
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 / terminal.txt
Last active June 27, 2024 05:09
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
@kenmori
kenmori / [Permission denied] fatal: cannot copy '_Library_Developer_CommandLineTools .md
Last active March 11, 2023 09:32
[Permission denied] fatal: cannot copy '/Library/Developer/CommandLineTools

When you install HomeBrew, the console might show you fllowing code

fatal: cannot copy '/Library/Developer/CommandLineTools/usr/share/git-core/templates/hooks/fsmonitor-watchman.sample' to '/usr/local/Homebrew/.git/hooks/fsmonitor-watchman.sample': Permission denied
Failed during: git init -q

You are not permit to copy that directory, so you have to give this directory permision

Run fllowing code as change it

@julianobailao
julianobailao / mysql-docker.sh
Created February 22, 2018 13:05
Backup / restaurar um banco de dados mysql de um container Docker em execução
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restaurar
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@abdurrahmanekr
abdurrahmanekr / gist:2747d704edec93a06e454eba2653e0df
Last active June 11, 2024 09:11
WhatsApp original chat background image

WhatsApp original chat background image

WhatsApp original darkmoda background image