- Instale o Tampermonkey no Chrome ou Firefox
- Clique no botão "Raw" ou clique aqui pra instalar o userscript de forma automática
Você também pode clicar no ícone do Tampermonkey, "Adicionar novo script...", colar o conteúdo e depois salvar (CTRL+S)
Você também pode clicar no ícone do Tampermonkey, "Adicionar novo script...", colar o conteúdo e depois salvar (CTRL+S)
// https://gist.github.com/FelipeGrijo | |
import readline from 'node:readline/promises'; | |
import { stdin, stdout } from 'node:process'; | |
const rl = readline.createInterface({ input: stdin, output: stdout }); | |
const ask = rl.question.bind(rl); | |
// const waitForEnter = async (msg = 'Pressione Enter para continuar...') => await ask(msg); | |
const prompt = async (questions) => { |
#NoEnv | |
SendMode Input | |
SetWorkingDir %A_ScriptDir% | |
^r::Suspend ; Control + R = pausa | |
^+r::ExitApp ; Control + Shift + R = fecha | |
r:: ; R = pressiona letra E pora 1 seg | |
Send, {e Down} | |
Sleep, 1000 | |
Send, {e Up} |
const SSE = new EventSource('http://localhost:3000'); | |
SSE.onmessage = (event) => { | |
const obj = JSON.parse(event.data); | |
console.log(obj); | |
}; |
// https://gist.github.com/FelipeGrijo | |
// https://www.npmjs.com/package/youtube-dl | |
const util = require('util'); | |
const youtubedl = require('youtube-dl'); // 3.0.2 -- 2020.09.20 | |
const ytdl = util.promisify(youtubedl); | |
const videoUrl = 'http://www.youtube.com/watch?v=AQ4MQ_uhBSs'; // url ou id | |
const getMusic = async (url, formatId = 140) => { | |
try { |
Crie um arquivo v3.ext dentro da pasta apache (C:\xampp\apache) e cole:
authorityKeyIdentifier=keyid,issuer
basicConstraints=CA:FALSE
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
subjectAltName = @alt_names
<?php | |
//https://gist.github.com/FelipeGrijo | |
$host = 'localhost';//Endereco | |
$user = 'root';//Usuario | |
$pass = '';//Senha | |
$db = 'contas2';//Nome do banco de dados | |
$mysqli = new mysqli($host,$user,$pass,$db); | |
$sql="SELECT count(id) AS total FROM usuarios";//usuarios = nome da tabela | |
//$sql="SELECT count(id) AS total FROM usuarios where ativo='0'"; |
#!/bin/bash | |
#sudo apt install inotify-tools | |
#Envia um alerta no PushBullet quando o arquivo for alterado | |
#https://gist.github.com/FelipeGrijo | |
while inotifywait -q -e modify LOCAL-DO-ARQUIVO >/dev/null; | |
do | |
API="SUA-API" | |
MSG="$1" | |
Title="Arquivo-Sincronizado" | |
curl -u $API: https://api.pushbullet.com/v2/pushes -d type=note -d title="$Title" -d body="$MSG" |
::https://gist.github.com/FelipeGrijo | |
xcopy /Y /S /C /G /H "C:\Users\*.pdf" "D:\" | |
::Mudar diretório |
#ifndef _resource_rc | |
#define _resource_rc | |
MAINICON ICON "icone.ico" | |
#endif |