Skip to content

Instantly share code, notes, and snippets.

View jonatanaxe's full-sized avatar
🐓
console.log('wololo');

Jonatan Machado jonatanaxe

🐓
console.log('wololo');
View GitHub Profile
sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
sudo apt install dkms build-essential make
git clone https://github.com/lwfinger/rtw88 && cd rtw88 && make clean && sudo dkms add . && sudo dkms install rtlwifi-new/0.6
//verificar se o "Power Management:off" caso estiver "Power Management:on" deslique e ligue o note
iwconfig
@jonatanaxe
jonatanaxe / magento2-custom-script.php
Created June 22, 2020 20:24 — forked from missoxd/magento2-custom-script.php
Magento 2 custom script boilerplate
<?php
require __DIR__ . '/app/bootstrap.php';
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER);
$objectManager = $bootstrap->getObjectManager();
$objectManager->get('\Magento\Framework\App\State')->setAreaCode('adminhtml');
$registry = $objectManager->get('\Magento\Framework\Registry');
$registry->register('isSecureArea', 'true');
@jonatanaxe
jonatanaxe / cloudSettings
Last active December 31, 2021 14:51
VSCODEcloudSettings
{"lastUpload":"2021-12-31T14:51:50.660Z","extensionVersion":"v3.4.3"}
@jonatanaxe
jonatanaxe / gist:ba2b55d0de71f251f5338329c4a7d698
Last active August 2, 2018 13:19
Problema com reindex do magento 1 /reindex.php
<?php
//Loads the magento administration environment.
require_once 'app/Mage.php';
$app = Mage::app('admin');
umask(0);
//To reindex the processes that require your IDs
$ids = array(1,2,3,4,5,6,7,8,9);
@jonatanaxe
jonatanaxe / comandos-laravel
Created July 19, 2018 11:47
Comandos Basic laravel
#All
php artisan clear-compiled
Remove os arquivos de classe já compilados.
php artisan down
Coloca aplicação em modo de manutenção.
php artisan up
Tira a aplicação de modo de manutenção e coloca novamente em produção.