Skip to content

Instantly share code, notes, and snippets.

View leosantosw's full-sized avatar
🚀
Let's code

Leo santos leosantosw

🚀
Let's code
View GitHub Profile
#!/usr/bin/env sh
# LATEST VERSION OF THIS SCRIPT: https://gist.github.com/swayducky/8ba8f2db156c7f445d562cdc12c0ddb4
# FORKED FROM: https://gist.github.com/ddwang/0046da801bcb29d241869d37ad719394
# 1) No longer has a hard-coded COMMIT
# 2) Auto-symlinks a "code" script to avoid wslCode.sh breaking
# HOW TO INSTALL:
# 1) Remove "c:\Users\<USER_NAME>\AppData\Local\Programs\cursor\resources\app\bin" from Windows Environment Settings
# 2) Modify this script with your Windows <USER_NAME> (NOT your WSL username) in the VSCODE_PATH variable
{
"Ação": [
{
"nome": "Sonic the Hedgehog 3",
"descrição": "Sonic, Knuckles e Tails se reúnem contra um novo e poderoso adversário, Shadow, um vilão misterioso com poderes únicos. A equipe Sonic precisa buscar uma aliança improvável para parar Shadow e proteger o planeta.",
"duração": "120",
"imagem": "https://www.themoviedb.org/t/p/w500/d8Ryb8AunYAuycVKDp5HpdWPKgC.jpg"
},
{
"nome": "Sonic the Test",
@leosantosw
leosantosw / cookie.js
Last active July 21, 2023 17:32
cookies
@leosantosw
leosantosw / pusher.service.ts
Last active July 20, 2023 05:55
example pusher with nestjs
import * as Pusher from 'pusher'
import { Injectable } from '@nestjs/common'
@Injectable()
export class PusherService {
private pusher = new Pusher({
appId: process.env.PUSHER_APP_ID,
key: process.env.PUSHER_APP_KEY,
secret: process.env.PUSHER_APP_SECRET,
cluster: process.env.PUSHER_APP_CLUSTER,
const axios = require('axios')
const sqs = require('./sqs-client')
const VTEX_URL_QUEUE = process.env.VTEX_QUEUE_URL
const DLQ_URL = process.env.VTEX_DLQ_URL
const MAX_RETRY_REQUEST = 3
const processRetry = async (retry, error, payload) => {
if (MAX_RETRY_REQUEST >= retry) {