Skip to content

Instantly share code, notes, and snippets.

View kevineduardo's full-sized avatar
:octocat:
Unplugged from the internet

Kevin Eduardo kevineduardo

:octocat:
Unplugged from the internet
  • Portugal
  • 01:54 (UTC +01:00)
View GitHub Profile
@kevineduardo
kevineduardo / php_number_to_emoji.md
Created April 11, 2023 21:17
PHP Int Number to Emoji Script
  <?php

  function number_to_emoji($number) {
    $digits = str_split($number);
    $emoji = "";
    foreach ($digits as $digit) {
      $emoji .= emoji_digit($digit);
    }
 return $emoji;
@kevineduardo
kevineduardo / import_from_wisecp_to_whmcs.md
Last active July 11, 2022 07:34
Import from WISECP to WHMCS - Users, Invoices, Products, etc - Manually

You only need these tables:
users
users_products
products
invoices

in users_products you will find the creation date, the next due date, details about the product, the price, and the active/inactive status
in the other tables, i guess it's pretty self explanatory.

#WISECPJUSTSUCKS

@kevineduardo
kevineduardo / copytoclipboardhtml.md
Created February 27, 2022 00:49
Copy to clipboard Javascript Browser with Fallback (those fucking mobiles)
@kevineduardo
kevineduardo / tailwindcss.blade.php
Created January 28, 2022 11:52 — forked from mazedlx/tailwindcss.blade.php
Tailwind CSS template for Laravel pagination
@if ($paginator->hasPages())
<div class="flex items-center">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<span class="rounded-l rounded-sm border border-brand-light px-3 py-2 cursor-not-allowed no-underline">&laquo;</span>
@else
<a
class="rounded-l rounded-sm border-t border-b border-l border-brand-light px-3 py-2 text-brand-dark hover:bg-brand-light no-underline"
href="{{ $paginator->previousPageUrl() }}"
rel="prev"
@kevineduardo
kevineduardo / v4l2loopback_on_fedora_34.md
Last active April 15, 2024 06:53
How to install (and compile) the latest v4l2loopback kernel module on Fedora Workstation 34

How to install (and compile) the latest v4l2loopback kernel module on Fedora Workstation 34

Execute the commands below using sudo or login as root

dnf install kernel-devel kernel-headers dkms v4l-utils
git clone https://github.com/umlaeute/v4l2loopback.git
cd v4l2loopback
make
cp -R . /usr/src/v4l2loopback-1.1
dkms add -m v4l2loopback -v 1.1
dkms build -m v4l2loopback -v 1.1
dkms install -m v4l2loopback -v 1.1

#!/bin/bash
# Script de preparação e instalação de software - empresa NETEX
if [ $(whoami) != root ]
then
echo "Necessário rodar como root."
exit
fi
@kevineduardo
kevineduardo / instalador_cid.sh
Created May 10, 2021 15:00
Instalador de CID-GTK no Linux Mint Debbie 4 (LMDE)
#!/bin/bash
# Script de instalação do CID no LMDE
if [ $(whoami) != root ]
then
echo "Necessário rodar como root."
exit
fi
@kevineduardo
kevineduardo / openssh-lpk.schema.ldif
Created May 25, 2020 18:02 — forked from moriyoshi/openssh-lpk.schema.ldif
Add SSH LDAP Public Key schema to Active Directory
dn: CN=sshPublicKey,CN=Schema,CN=Configuration,DC=testing,DC=example,DC=com
changetype: add
cn: sshPublicKey
name: sshPublicKey
lDAPDisplayName: sshPublicKey
adminDisplayName: sshPublicKey
objectClass: attributeSchema
attributeID: 1.3.6.1.4.1.24552.500.1.1.1.13
attributeSyntax: 2.5.5.10
schemaIDGUID:: +jduGq6aTj+LLL7JZhfWpw==
@kevineduardo
kevineduardo / fivem.sh
Created February 9, 2018 01:06
Init script for FiveM
#!/bin/bash
cd /home/container/server-data/
bash /home/container/run.sh $*
[Unit]
Description=Pterodactyl Wings Daemon
After=docker.service
[Service]
User=root
#Group=some_group
WorkingDirectory=/srv/daemon
LimitNOFILE=4096
PIDFile=/var/run/wings/daemon.pid