Skip to content

Instantly share code, notes, and snippets.

@eSkiSo
eSkiSo / pint.json
Created February 23, 2025 13:54
Laravel Pint rules
{
"preset": "laravel",
"rules": {
"array_push": true,
"backtick_to_shell_exec": true,
"date_time_immutable": true,
"lowercase_keywords": true,
"lowercase_static_reference": true,
"final_class": true,
"final_internal_class": true,
@eSkiSo
eSkiSo / install_ibm_db2_for_php8.md
Created August 9, 2024 12:55
Install IBM DB2 in PHP8 (8.2)

Install IBM DB2 on Ubuntu with PHP 8.2 (or others)

Step 1

Check if Cli Driver link is still the same:

https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz

//see all
https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/
@eSkiSo
eSkiSo / my.cnf
Created April 16, 2024 08:38 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers)
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) ===
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated December 2021 ~
#
#
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
// Pi-Hole - Group management -> Adlists
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts
https://v.firebog.net/hosts/static/w3kbl.txt
https://raw.githubusercontent.com/matomo-org/referrer-spam-blacklist/master/spammers.txt
https://someonewhocares.org/hosts/zero/hosts
https://raw.githubusercontent.com/vokins/yhosts/master/hosts
https://raw.githubusercontent.com/RooneyMcNibNug/pihole-stuff/master/SNAFU.txt
@eSkiSo
eSkiSo / install_oci8_ubuntu20_php7.4.md
Last active January 16, 2025 05:27
Install OCI8 (Oracle) in Ubuntu 20 with PHP 7.4
@eSkiSo
eSkiSo / teste.ipynb
Created November 25, 2019 14:16
teste
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Trabalho (traindata)"
]
},
{
@eSkiSo
eSkiSo / Math.php
Last active August 7, 2019 17:09 — forked from jgrossi/Math.php
Math class
<?php
class Math {
/**
* The base.
*
* @var string
*/
private static $base = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
@eSkiSo
eSkiSo / changepassword.php
Created November 19, 2016 10:39 — forked from mattrude/changepassword.php
LDAP PHP Change Password Page
<?php
/**
* LDAP PHP Change Password Webpage
* @author: Matt Rude <http://mattrude.com>
* @website: http://technology.mattrude.com/2010/11/ldap-php-change-password-webpage/
*
*
* GNU GENERAL PUBLIC LICENSE
* Version 2, June 1991