Skip to content

Instantly share code, notes, and snippets.

View hewerthomn's full-sized avatar
👨‍💻
Coding...

Éverton Inocêncio hewerthomn

👨‍💻
Coding...
View GitHub Profile
@adrianmejias
adrianmejias / CaddyController.php
Last active January 11, 2023 07:49
How to Enable SSL for Local Laravel Sail Development using Caddy and Docker
# file: app/Http/Controllers/CaddyController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class CaddyController extends Controller
{
/**
@ChriRas
ChriRas / readme.md
Last active November 7, 2024 08:39
Set up default audio device on Ubuntu 20.04 LTS

Problem

I have a notebook connected to a port replicator. I want to use the build-in speakers and microfone and not the external ones. If I boot my notebook in my port replicator Ubuntu changes the devices to external.

Solution

  1. Find your internal speaker
pactl list short sinks
@Ircama
Ircama / LgMagicRemoteKeys.md
Last active November 15, 2024 17:26
Replacing Netflix and Amazon keys of the webOS LG TV LG Magic Remote with other apps

Replacing Netflix and Amazon keys of the webOS LG TV LG Magic Remote with other apps

This procedure allows substituting one or both Netflix and Amazon keys of the Magic Remote Control Unit with other apps or TV control menus of the webOS LG TV.

Netflix and Amazon keys can be found just over the Red-Green-Yellow-Blue color buttons of such remote.

Assumption for this procedure is that you accept to uninstall the apps related to the keys to be substituted. Example: if you want to replace the Netflix key, you need to uninstall Netflix (possibly, you are not using Netflix if you do not need such key).

To uninstall Netflix or Amazon Prime, press the Home key of the Magic Remote, select the "LG Content Store" app, press "APP" at the top of the screen, press "My Apps", press the "Rem

@mdorchain
mdorchain / sliding-segments.page.html
Last active December 9, 2022 21:34
Ionic 4 Sliding segments
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-menu-button></ion-menu-button>
</ion-buttons>
<ion-title>
Demo
</ion-title>
</ion-toolbar>
</ion-header>
@tigusigalpa
tigusigalpa / database.php
Last active October 3, 2024 01:25
Laravel PostgreSQL SSL encryption connection config
<?php
/**
* 1. You have to store your client SSL certificates on your Laravel server, in my case this is /var/certs/mydomain.com/...
* 2. You have to right select SSL mode for PostgreSQL (see https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS), verify-full means your server CA is signed for real domain name for the PostgreSQL server (recommended)
* 3. Go to Laravel config/database.php to the section 'pgsql' and extend it to the following:
*/
return [
/*...*/
'connections' => [
/*'mysql' etc*/
<?php
/**
* Calculate the mod11
* @param string $baseVal
* @param string $separator
* @return string
*/
public function mod11($baseVal = "", $separator = '-')
{
@hewerthomn
hewerthomn / install_oci8_ubuntu_16.04_php7.1.md
Created February 22, 2017 14:45
How to install OCI8 on Ubuntu 16.04 and PHP 7.1
anonymous
anonymous / envoy.php
Created February 1, 2017 12:57
@include('envoy.config.php');
@servers($servers)
@setup
$startTime = microtime(true);
$startedAt = date('H:i:s');
if ( ! isset($repo) ) {
throw new Exception('Variável $repo não está definido!');
@lukas-h
lukas-h / license-badges.md
Last active November 11, 2024 03:22
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)