Skip to content

Instantly share code, notes, and snippets.

View Santosl2's full-sized avatar
🎯
Focusing

Matheus Filype Santosl2

🎯
Focusing
View GitHub Profile
This file has been truncated, but you can view the full file.
#!/bin/bash
## // ## // ## // ## // ## // ## // ## // ## //## // ## // ## // ## // ## // ## // ## // ## // ##
## SOCIOS DIGITALES PRO ##
## // ## // ## // ## // ## // ## // ## // ## //## // ## // ## // ## // ## // ## // ## // ## // ##
versao() {
echo -e " \e[97mVersión de Socios Digitales: \e[32mv. 1.0.0\e[0m "
}
// --- Initialization ---
// Ensure the original functions are stored so we can call them
if (!window.originalDecodeStanza) {
window.originalDecodeStanza = require("WAWap").decodeStanza;
window.originalEncodeStanza = require("WAWap").encodeStanza;
}
/**
* Recursively walks through an object or array and decodes any Uint8Array
* placeholders it finds into JSON objects.
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Formulário de Leads</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
@Santosl2
Santosl2 / custom.css
Created March 17, 2025 22:15
Rounded VSCode Tabs
.monaco-workbench .part.editor>.content .editor-group-container>.title div.tabs-container {
margin-block: 0.2rem;
}
.monaco-workbench .part.editor>.content .editor-group-container>.title div.tabs-container>.tab {
border-radius: 8px;
margin-right: 0.1rem;
margin-left: 0.1rem;
}
@Santosl2
Santosl2 / Formatter.ts
Last active February 24, 2025 13:38
Regex
class Formatters {
static hour(value: string) {
if (!value) return value
const formatter = value
.replace(/\D/g, '')
.replace(/(\d{2})(\d)/, '$1:$2')
.replace(/(\d{2}):(\d{2}).+/, '$1:$2')
return formatter
@Santosl2
Santosl2 / install.md
Last active August 12, 2024 01:40
Comando de instalação docker e etc

Docker

 sudo apt-get update
 sudo apt install docker.io
 sudo systemctl enable docker
 sudo usermod -aG docker $USER

Docker compose

@Santosl2
Santosl2 / cookie.js
Created June 30, 2024 17:45
GTM Create Cookie JS function
@Santosl2
Santosl2 / plugin.tpl
Last active October 8, 2024 23:55
gtm-webhook
___INFO___
{
"type": "MACRO",
"id": "cvt_temp_public_id",
"version": 1,
"securityGroups": [],
"displayName": "Conversor para Webhook | Matheus Filype",
"description": "",
"containerContexts": [
@Santosl2
Santosl2 / catch-figma-colors.js
Created March 22, 2024 23:52
A simple algorithm to catch all figma libraries colors
const exportedColors = [{}];
const colorsTitle = document.querySelectorAll(
"div.raw_components--modalPanel--NX71G.variable_picker_ui--modalPanel--X0bjl > div > div > div > div"
);
Array.from(colorsTitle).map((el) => {
const color = el.textContent;
if (!color) return;
@Santosl2
Santosl2 / .bashrc
Last active July 1, 2025 19:41
Fish and Bash Aliases
## Carrega automaticamente o .nvmrc
load-nvmrc() {
local nvmrc_path
nvmrc_path="$(nvm_find_nvmrc)"
if [ -n "$nvmrc_path" ]; then
local nvmrc_node_version
nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")")
if [ "$nvmrc_node_version" = "N/A" ]; then