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
| // 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 |
| ;https://gist.github.com/FelipeGrijo | |
| Windows Registry Editor Version 5.00 | |
| ; Restore Desktop To This PC | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}] | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}] | |
| ; Restore Documents To This PC | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}] | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}] | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}] |