This file contains 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
[ | |
{ | |
"id": 1, | |
"state_id": 1, | |
"ibge_code": 1100015, | |
"name": "Alta Floresta D´oeste" | |
}, | |
{ | |
"id": 2, | |
"state_id": 1, |
This file contains 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
<?php | |
namespace App\Providers; | |
use Filament\Actions; | |
use Filament\Forms; | |
use Filament\Infolists; | |
use Filament\Notifications\Notification; | |
use Filament\Pages; | |
use Filament\Support\Enums\MaxWidth; |
This file contains 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
{ | |
"workbench.iconTheme": "symbols", | |
"git.autofetch": true, | |
"[dart]": { | |
"editor.formatOnSave": true, | |
"editor.formatOnType": true, | |
"editor.rulers": [80], | |
"editor.selectionHighlight": false, | |
"editor.suggest.snippetsPreventQuickSuggestions": false, | |
"editor.suggestSelection": "first", |
This file contains 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
FROM laravelphp/vapor:php83 | |
ARG IMAGICK_VERSION=3.7.0 | |
RUN apk --update add \ | |
ghostscript && \ | |
rm /var/cache/apk/* | |
RUN curl -L -o /tmp/imagick.tar.gz https://github.com/Imagick/imagick/archive/refs/tags/${IMAGICK_VERSION}.tar.gz \ | |
&& tar --strip-components=1 -xf /tmp/imagick.tar.gz \ |
This file contains 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
const observer = new MutationObserver(async () => { | |
if (window.location.pathname !== '/form') return; | |
const user = await window.flutter_inappwebview.callHandler("user"); | |
if (!user) { | |
alert("Você não está logado."); | |
} | |
function getReactProps (el) { |
This file contains 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
<?php | |
namespace App\Support; | |
use Exception; | |
use Spatie\Color\Hex; | |
use Spatie\Color\Rgb; | |
class ShadeGenerator | |
{ |
This file contains 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
phpv() { | |
valet stop | |
brew unlink [email protected] [email protected] | |
brew link --force --overwrite $1 | |
brew services start $1 | |
composer global update | |
rm -f ~/.config/valet/valet.sock | |
valet install | |
} |
This file contains 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
============================================================================= | |
FIX WSL2 NETWORKING IN WINDOWS 10 | |
============================================================================= | |
cmd as admin: | |
wsl --shutdown | |
netsh winsock reset | |
netsh int ip reset all | |
netsh winhttp reset proxy | |
ipconfig /flushdns |
This file contains 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
const controller = new AbortController() | |
const timeoutId = setTimeout(() => controller.abort(), 1000 * 60) | |
const date = new Date(); | |
const m = parseInt(prompt('Digite o mês que deseja exportar', date.getMonth() + 1)) - 1; | |
const y = prompt('Digite o ano que deseja exportar', date.getFullYear()); | |
if( window.location.host !== 'app.puntu.com.br' ) { | |
prompt('Para usar o script, vá para o Puntu Web.', 'https://app.puntu.com.br'); |
This file contains 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
user=GH_USERNAME repo=REPO_NAME; gh api repos/$user/$repo/actions/runs \ | |
--paginate -q '.workflow_runs[] | select(.head_branch != "master") | "\(.id)"' | \ | |
xargs -n1 -I % gh api repos/$user/$repo/actions/runs/% -X DELETE |
NewerOlder