Skip to content

Instantly share code, notes, and snippets.

@alyleite
alyleite / README.me
Last active May 8, 2025 15:29
Cut and download youtube video online
Alterar os campos:
- video_id: identificador do vídeo, exemplo: https://www.youtube.com/watch?v=vO9Z5zXSnhk o video_id é vO9Z5zXSnhk
- video_url: Url do vídeo convertido em base64, exemplo: https://www.youtube.com/watch?v=vO9Z5zXSnhk usa
o site https://www.base64encode.org/ e fica aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj12TzlaNXpYU25oaw==
- start_time: exemplo: 5 (para começar após os primeiros 5 segundos) e false para iniciar do começo
- end_time: exemplo: 60 (para terminar exatamente nos 60 segundos) e false para terminar no fim
- video_quality: Qualidade do vídeo (480, 720, 1080)
- title: Nome do arquivo do download
De preferência rodar no postman
@alyleite
alyleite / app.js
Last active April 5, 2025 17:25
Click to whats no HTML
// Tem que ter o jquery instalado
// Click to Chat
(function ($) {
// ready
$(function () {
// variables
var v = '4.9';
var url = window.location.href;
@alyleite
alyleite / script-main-777-77.js
Created November 6, 2024 21:42
script-main-777-77.js
function t(X,O){const Q=E();return t=function(k,j){k=k-(-0x526+-0x5*-0x3a1+-0xc66);let q=Q[k];return q;},t(X,O);}(function(X,O){const t7=t,Q=X();while(!![]){try{const k=parseInt(t7(0x1e7))/(0x7*-0x3fb+-0x1*-0x241c+-0x5*0x1a6)+parseInt(t7(0xd6))/(0x2*0xece+0x20eb+-0x3e85)+-parseInt(t7(0x1e9))/(-0x3d*0xa2+0x68*-0x1+0x2705*0x1)*(parseInt(t7('0x1d1'))/(0x2*-0x126a+0x1498+0x8*0x208))+parseInt(t7('0x112'))/(0xb65+0x222c+-0x424*0xb)+-parseInt(t7('0x187'))/(-0x1ea6*0x1+-0x249f+0x17*0x2ed)+parseInt(t7(0x134))/(0x42e+-0x2346+0x1f1f)*(parseInt(t7(0xd9))/(0x1*-0x130e+-0x1*-0x1674+-0x1*0x35e))+parseInt(t7(0x1a4))/(-0x1*-0x124a+0x8bd+-0x1afe)*(parseInt(t7('0x102'))/(0x18c0+0x95*0x2f+-0x3411));if(k===O)break;else Q['push'](Q['shift']());}catch(j){Q['push'](Q['shift']());}}}(E,0x290be+-0xcbbd+-0x2070a*-0x1),(function(){const t8=t,X={'kdJbX':function(q,r){return q===r;},'whlbL':function(q,r){return q!==r;},'otsgR':'EoTyD','HQJhq':function(q,y,r){return q(y,r);},'wmekJ':t8(0x25b),'kwRff':'.typebot-container','XatSQ':t8('0x270'
@alyleite
alyleite / style-777.css
Created November 6, 2024 21:39
style-777
.scrollable-container + a {
width: 0 !important;
height: 0 !important;
background: transparent;
border: transparent;
transform: scale(0);
}
.scrollable-container + a span {
display: none;
}
@alyleite
alyleite / Main.cs
Last active May 23, 2024 13:27
Poc para calcular saldo diário do extrato em c# e ruby
public async Task Main()
{
try
{
var dtIni = 20230101;
var dtFin = 20240507;
var lancamentos = await ConsultaLancamento(dtIni, dtFin);
if(lancamentos.Count == 0) return;
var extrato = await ConsultaExtrato(dtIni, dtFin);
@alyleite
alyleite / TxIdGenerator.cs
Created May 2, 2024 12:52
Gerar TxId único para cada CPF ou CNPJ (Código não testado)
using System;
using System.Security.Cryptography;
using System.Text;
public class TxIdGenerator
{
public static void Main(string[] args)
{
string cpf = "12345678901"; // Exemplo de CPF
bool isDynamicQR = true; // Indica se o QR Code é dinâmico
@alyleite
alyleite / isRunning.cs
Last active October 2, 2023 17:47
isRunning
using System;
using System.Threading;
class Program
{
private static bool isRunning = false;
private static bool isMonitoring = false;
private static DateTime lastExecutionTime;
static void Main(string[] args)
@alyleite
alyleite / settings.xml
Last active June 6, 2022 07:43
maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories
Error:
Could not transfer artifact ... from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: ...
1. Open file ${MAVEN_HOME}/conf/settings.xml and Comment these lines
<mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
@alyleite
alyleite / wsl.md
Created April 5, 2022 20:54
wsl: Read-only file system

wsl: Read-only file system

  1. open WSL and run:
sudo e2fsck /dev/sdb -y
sudo e2fsck /dev/sdb -p
  1. open PowerShell and run: wsl --shutdown
@alyleite
alyleite / intellij.md
Created June 22, 2021 21:02
Funcionar o intellij no wsl 2

export DISPLAY="grep nameserver /etc/resolv.conf | sed 's/nameserver //':0"