Skip to content

Instantly share code, notes, and snippets.

View jeankassio's full-sized avatar
😎
Work Work Work

Jean Kássio jeankassio

😎
Work Work Work
View GitHub Profile
@jeankassio
jeankassio / old_electrum_seed.txt
Created June 5, 2026 14:42
Old electrum seed
like just love know never want time out there make look eye down only think heart back then into about more away still them take thing even through long always world too friend tell try hand thought over here other need smile again much cry been night ever little said end some those around mind people girl leave dream left turn myself give nothing really off before something find walk wish good once place ask stop keep watch seem everything wait got yet made remember start alone run hope maybe believe body hate after close talk stand own each hurt help home god soul new many two inside should true first fear mean better play another gone change use wonder someone hair cold open best any behind happen water dark laugh stay forever name work show sky break came deep door put black together upon happy such great white matter fill past please burn cause enough touch moment soon voice scream anything stare sound red everyone hide kiss truth death beautiful mine blood broken very pass next forget tree wrong air mot
@jeankassio
jeankassio / timeNotification.php
Last active October 18, 2025 06:48
Obter a distância de tempo em relação a uma data. Exemplos: "Há 1 hora", "Há 2 dias", "Quinta-Feira", etc
<?php
public function toNotification($dataNotificacao){
$dataAtual = new DateTime();
$dataNotificacao = DateTime::createFromFormat('Y-m-d H:i:s', $dataNotificacao);
if (!$dataNotificacao) {
return false;
}
$intervalo = $dataAtual->diff($dataNotificacao);
@jeankassio
jeankassio / search.php
Created December 3, 2024 12:00
Advanced Search - Lite Version
<?php
/**
* @param {string} $search
* @param {array} $datas
* @return {array}
*/
public function search($search, $datas){
$response = [];
@jeankassio
jeankassio / isEs6.js
Created January 30, 2024 20:39
Check support to ES6
function isES6Supported() {
try {
new Function("(a = 0) => a"); // Testa a existência de arrow functions
return true;
} catch (exception) {
return false;
}
}
@jeankassio
jeankassio / typing.js
Created October 16, 2023 15:36
Send Typing each 10 seconds with pause if no typing after 2 seconds. (keyup keydown event)
function TypingMessage(){
if(typeof(window.Typing) == 'undefined' || window.Typing == null){
console.log("Dispara Evento Escrevendo");
window.Typing = new TypingTimer(function(){
console.log("Dispara Evento Escrevendo");
@jeankassio
jeankassio / index.php
Created September 29, 2023 20:29
Deletes user data from Codechat
<?php
/*
Dependencies: https://www.php.net/manual/pt_BR/mongodb.tutorial.library.php
*/
define("ACCESS_KEY", "cBeISKzsafdrSeISKzpmOOaJ8t8WISKzpYEOOE"); //Define your access key to send
if(!isset($_GET['key'], $_POST['owner']) OR $_GET['key'] !== ACCESS_KEY){
http_response_code(500);
@jeankassio
jeankassio / index.php
Last active July 26, 2023 02:09
Custom libopus PHP-FFMPEG to use in Baileys
<?php
public function ConvertAudio($b64){
try{
if(!$this->CheckBase64($b64)){
return false;
}elseif(!$this->CheckSizeBase64($b64, 500, false)){
return false;
@jeankassio
jeankassio / remove_array_key.php
Last active February 23, 2023 03:22
PHP - search and remove any index of multidimensional array
<?php
function remove_array_key($key, &$array){
$result = array_key_exists($key, $array);
if($result){
unset($array[$key]);
return $array;
}
Mozilla/5.0 (Linux; Android 9; SM-J330FN Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.136 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/337.0.0.32.118;]
Mozilla/5.0 (Linux; Android 7.0; FRD-L09 Build/HUAWEIFRD-L09; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/227.0.0.43.158;]
Mozilla/5.0 (iPhone; CPU iPhone OS 14_7 like Mac OS X) WebKit/8611 (KHTML, like Gecko) Mobile/18G69 [FBAN/FBIOS;FBDV/iPhone10,3;FBMD/iPhone;FBSN/iOS;FBSV/14.7;FBSS/3;FBID/phone;FBLC/en_US;FBOP/5]
Mozilla/5.0 (Linux; Android 10; HRY-LX1T Build/HONORHRY-LX1T; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/93.0.4577.62 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/333.0.0.30.119;]
Mozilla/5.0 (Linux; Android 10; JSN-L21 Build/HONORJSN-L21; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/94.0.4606.71 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/325.0.0.36.170;]
Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X)
@jeankassio
jeankassio / bancos_brasileiros.php
Last active November 18, 2018 05:37 — forked from peuweb/bancos_brasileiros.php
Lista dos bancos brasileiros em formato array
<?php
//bancos brasileiros com índice referente ao código do banco
$bancos = array(
'001' => 'Banco do Brasil',
'003' => 'Banco da Amazônia',
'004' => 'Banco do Nordeste',
'021' => 'Banestes',
'025' => 'Banco Alfa',
'027' => 'Besc',
'029' => 'Banerj',