- Ter o composer instalado
Recomendados:
- PHP Intelephense
- phpcs (Ioannis Kappas)
| function AutoRedeemTwitchBonus() { | |
| try { | |
| const reward = document.querySelector(".claimable-bonus__icon"); | |
| if(reward) { | |
| reward.click(); | |
| console.log( | |
| `Reward successfully redeemed at ${new Date().toTimeString().slice(0,8)}` | |
| ); | |
| } | |
| } catch (error) { |
| /** | |
| * Example to refresh tokens using https://github.com/auth0/node-jsonwebtoken | |
| * It was requested to be introduced at as part of the jsonwebtoken library, | |
| * since we feel it does not add too much value but it will add code to mantain | |
| * we won't include it. | |
| * | |
| * I create this gist just to help those who want to auto-refresh JWTs. | |
| */ | |
| const jwt = require('jsonwebtoken'); |
| # WSL? | |
| if [[ "$(< /proc/sys/kernel/osrelease)" == *microsoft* ]]; then | |
| export $(dbus-launch) | |
| export LIBGL_ALWAYS_INDIRECT=1 | |
| export WSL_VERSION=$(wsl.exe -l -v | grep -a '[*]' | sed 's/[^0-9]*//g') | |
| export WSL_HOST=$(tail -1 /etc/resolv.conf | cut -d' ' -f2) | |
| export DISPLAY=$WSL_HOST:0 | |
| # pip path if using --user | |
| export PATH=$PATH:$HOME/.local/bin | |
| # SSH |
| docker run \ | |
| --name postgres \ | |
| -e POSTGRES_USER=alexandreramos \ | |
| -e POSTGRES_PASSWORD=minhasenhasecreta \ | |
| -e POSTGRES_DB=heroes \ | |
| -p 5432:5432 \ | |
| -d \ | |
| postgres | |
| docker run \ |
| docker run \ | |
| --name mongodb \ | |
| -p 27017:27017 \ | |
| -e MONGO_INITDB_ROOT_USERNAME=admin \ | |
| -e MONGO_INITDB_ROOT_PASSWORD=senhaadmin \ | |
| -d \ | |
| mongo:4 | |
| docker run \ | |
| --name mongoclient \ |
| /** | |
| * Example to refresh tokens using https://github.com/auth0/node-jsonwebtoken | |
| * It was requested to be introduced at as part of the jsonwebtoken library, | |
| * since we feel it does not add too much value but it will add code to mantain | |
| * we won't include it. | |
| * | |
| * I create this gist just to help those who want to auto-refresh JWTs. | |
| */ | |
| const jwt = require('jsonwebtoken'); |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |