This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const request = require('request'); | |
const puppeteer = require('puppeteer'); | |
const API_KEY = "SUA_API_KEY_NO_2captcha" | |
async function curl(options) { | |
return new Promise((resolve, reject) => { | |
request(options, (err, res, body) => { | |
if(err) | |
return reject(err); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const request = require('request'); | |
const fs = require('fs'); | |
const puppeteer = require('puppeteer'); | |
const API_KEY = "SUA_API_KEY_DO_2captcha"; | |
async function curl(options) { | |
return new Promise((resolve, reject) => { | |
request(options, (err, res, body) => { | |
if(err) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { SQSClient, ReceiveMessageCommand } from "@aws-sdk/client-sqs"; | |
import { join } from 'node:path' | |
import { fileURLToPath } from 'node:url' | |
import { writeFile } from 'node:fs/promises' | |
const QueueUrl = "" | |
const client = new SQSClient({ region: "sa-east-1" }); | |
const TARGET_DIR = join(fileURLToPath(new URL('.', import.meta.url)), 'data') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule App.Tenant.Organization do | |
# Using Ash.Resource turns this module into an Ash resource. | |
use Ash.Resource, | |
# Tells Ash where the generated code interface belongs | |
domain: App.Tenant, | |
# Tells Ash you want this resource to store its data in Postgres. | |
data_layer: AshPostgres.DataLayer, | |
extensions: [AshArchival.Resource] | |
archive do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule App.Tenant.OrganizationTest do | |
use ExUnit.Case, async: true | |
use App.DataCase | |
alias App.Tenant.Organization | |
@valid_attrs %{name: "Some Organization", domain: "example.com"} | |
@update_attrs %{name: "Updated Organization", domain: "updated.com"} | |
@invalid_attrs %{name: nil, domain: nil} |
OlderNewer