Instantly share code, notes, and snippets.
Developer Code Now Work
A passionate Software Developer 🚀 having an experience of building Web and Mobile applications with Laravel / vuejs / react / node / python and Kotlin &Swif
- Autonomo
- Remote
- 02:49
(UTC -04:00) - https://www.gustavoherrera.dev/
- @arcanoix_
- in/thavoo
- arcan0ix
- arcanoix_
arcanoix /CompleteDiscordQuest.md
CreatedJanuary 31, 2025 19:29 — forked fromaamiaa/CompleteDiscordQuest.md
Complete Recent Discord Questarcanoix /GitCommitEmoji.md
CreatedDecember 27, 2024 16:49 — forked fromparmentf/GitCommitEmoji.md
Git Commit message Emojiarcanoix /laravel-k8s-configmap.yaml
CreatedOctober 25, 2024 16:42 — forked frommkhmylife/laravel-k8s-configmap.yaml
Laravel Kubernetes Deployment files This file contains hidden or 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
| apiVersion:v1 | |
| kind:ConfigMap | |
| metadata: | |
| name:backend-config | |
| data: | |
| APP_DEBUG:"false" | |
| APP_ENV:production | |
| APP_KEY:changeme | |
| APP_LOG_LEVEL:debug | |
| APP_NAME:"Laravel K8s" |
arcanoix /gist:6a012afded621f1780d54c124ce73621
CreatedOctober 16, 2024 15:39
Mysql Cluster DigitalOcean - error de primary key migration laravel This file contains hidden or 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
| Digital Ocean has an API that you can use to configure the settings of your DB, which I would highly recommend over other solutions. You can do the following: | |
| Create an API token if you don't have one already: https://cloud.digitalocean.com/account/api/tokens | |
| Find the ID of your database cluster by querying the List all database clusters endpoint: | |
| curl -X GET \ | |
| -H "Content-Type: application/json" \ | |
| -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | |
| "https://api.digitalocean.com/v2/databases" | |
arcanoix /Configurations for Laravel app on Kubernetes - Dockerfile
CreatedOctober 10, 2024 23:18 — forked fromCodingMonkTech/Configurations for Laravel app on Kubernetes - Dockerfile
Deploying laravel on kubernetes cluster - Ready to use configuration Files This file contains hidden or 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 php:7.2-fpm | |
| COPY app /var/www/ | |
| EXPOSE 9000 |
arcanoix /install.sh
CreatedSeptember 30, 2024 14:11 — forked fromdinhquochan/install.sh
Install PHP 8.2, Composer, MySQL 8 for Laravel Development on Ubuntu 22.04 This file contains hidden or 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 | |
| sudo add-apt-repository ppa:ondrej/php | |
| sudo apt update | |
| sudo apt install php8.2-cli php8.2-dev php8.2-pgsql php8.2-sqlite3 php8.2-gd php8.2-imagick \ | |
| php8.2-curl php8.2-imap php8.2-mysql php8.2-mbstring php8.2-xml php8.2-zip \ | |
| php8.2-bcmath php8.2-soap php8.2-intl php8.2-readline php8.2-ldap php8.2-msgpack \ | |
| php8.2-igbinary php8.2-redis php8.2-memcache php8.2-pcov php8.2-xdebug |
arcanoix /install.sh
CreatedSeptember 30, 2024 14:11 — forked fromdinhquochan/install.sh
Install PHP 8.2, Composer, MySQL 8 for Laravel Development on Ubuntu 22.04 This file contains hidden or 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 | |
| sudo add-apt-repository ppa:ondrej/php | |
| sudo apt update | |
| sudo apt install php8.2-cli php8.2-dev php8.2-pgsql php8.2-sqlite3 php8.2-gd php8.2-imagick \ | |
| php8.2-curl php8.2-imap php8.2-mysql php8.2-mbstring php8.2-xml php8.2-zip \ | |
| php8.2-bcmath php8.2-soap php8.2-intl php8.2-readline php8.2-ldap php8.2-msgpack \ | |
| php8.2-igbinary php8.2-redis php8.2-memcache php8.2-pcov php8.2-xdebug |
arcanoix /dos-logos-filament.txt
CreatedAugust 30, 2024 00:37
Agregar dos logos diferentes en el login y en el navbar de filamentphp con laravel. This file contains hidden or 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
| Para poder manejar dos logos distintos tamaños o diseño. | |
| $panel | |
| ... | |
| ->brandLogo(fn () => auth()->check() ? asset('images/logoA.png') : asset('images/logoB.png')) | |
| You can also use brandLogoHeight with the same approach | |
| https://filamentphp.com/docs/3.x/panels/themes#adding-a-logo | |
arcanoix /git-ssh-error-fix.sh
CreatedNovember 18, 2022 23:34 — forked fromTamal/git-ssh-error-fix.sh
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error This file contains hidden or 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
| $ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj | |
| Cloning into'my-awesome-proj'... | |
| ssh: connect to host github.com port 22: Connection timed out | |
| fatal: Could notread from remote repository. | |
| $# This should also timeout | |
| $ ssh -T git@github.com | |
| ssh: connect to host github.com port 22: Connection timed out | |
| $# but this might work |
arcanoix /readcfdi.php
CreatedApril 19, 2021 16:47 — forked fromgoedecke/readcfdi.php
Extraer información de CFDI XML facil con simplexml This file contains hidden or 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 | |
| $xml =simplexml_load_file('test.xml'); | |
| $ns =$xml->getNamespaces(true); | |
| $xml->registerXPathNamespace('c',$ns['cfdi']); | |
| $xml->registerXPathNamespace('t',$ns['tfd']); | |
| //EMPIEZO A LEER LA INFORMACION DEL CFDI E IMPRIMIRLA | |
| foreach ($xml->xpath('//cfdi:Comprobante')as$cfdiComprobante){ | |
| echo$cfdiComprobante['version']; |
NewerOlder