Skip to content

Instantly share code, notes, and snippets.

View OoHerbethoO's full-sized avatar

Herbeth Santana OoHerbethoO

View GitHub Profile
@OoHerbethoO
OoHerbethoO / perfex_hooks_list
Created July 11, 2022 17:56 — forked from JamesSimpson/perfex_hooks_list
Full Perfex Hook List - For Perfex CRM Developers
File ---> application\controllers\admin\Authentication.php:
23: hooks()->do_action('admin_auth_init');
80: hooks()->do_action('after_staff_login');
107: hooks()->do_action('after_staff_login');
117: hooks()->do_action('after_staff_login');
219: hooks()->do_action('after_user_logout');
File ---> application\controllers\admin\Auto_update.php:
14: hooks()->do_action('before_perform_update', $latest_version);
@OoHerbethoO
OoHerbethoO / CONFIG.md
Last active May 27, 2021 15:53
Apache: Como configurar um VirtualHost com proxy reverso

Apache: Como configurar um VirtualHost com proxy reverso

Instala biblioteca do Apache

sudo apt-get install libapache2-mod-proxy-html

Habilita os módulos no Apache

@OoHerbethoO
OoHerbethoO / OpenWrt – Montando um pendrive como partição raiz
Last active October 27, 2022 12:56
OpenWrt – Montando um pendrive como partição raiz
Salve Salve Pessoal!
Neste post vou mostrar como podemos configurar um pendrive e expandir o nosso sistema de arquivos no OpenWrt, logicamente que para isso precisamos que o nosso dispositivo, tenha uma interface usb. 😉
Vamos entender um pouco mais sobre o sistema de arquivos do OpenWrt, o sistema de arquivos é formado basicamente por duas partições:
/ (partição raiz, somente leitura)
/overlay (partição de leitura/escrita)
@OoHerbethoO
OoHerbethoO / Smartphone USB Tethering to an OpenWrt router
Created July 12, 2020 15:09
USB tethering is used to connect your OpenWrt Router to the Internet by using the your smartphone. It's more convenient and has better performance (lower latency) than turning your smartphone into an access point and using that. It also is less of a CPU load on your phone, charges your phone, and allows you the flexibility of doing things with y…
Installation
For the easiest installation, have a wired ethernet upstream internet connection to boot-strap this process. You will need: the router, your tethering phone, necessary cables, a laptop and an upstream internet connection via ethernet for initial setup. Instead of a wired upstream connection to plug into the router WAN port, is also possible to download necessary packages below, through your laptop while tethered to your phone, the same way you can get the OpenWrt distribution for your router. That is not covered in this guide.
Once OpenWRT is installed on the router,
Install some Kernel packages to get USB tethering support: Go to http://192.168.1.1 and log in to the router. Click on System, Administration, and SSH. Set the 'Interface' to 'LAN', then click 'Save & Apply'. You can now use an SSH client like Putty to connect to the router and issue commands. SSH into the router on 192.168.1.1 and log in.
Enter the commands:
opkg update
@OoHerbethoO
OoHerbethoO / 2019-https-localhost.md
Created July 10, 2020 05:58
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

{"lastUpload":"2020-07-07T02:54:07.432Z","extensionVersion":"v3.4.3"}