Skip to content

Instantly share code, notes, and snippets.

View 0x7An's full-sized avatar
🚀

Anderson 0x7An

🚀
View GitHub Profile
(async function downloadCompleteHTML() {
const RESOURCE_TYPES = {
TEXT: 'text',
BINARY: 'binary',
};
// Helper function to fetch resource content (CSS, JS, images, etc.)
async function fetchResource(url, type = RESOURCE_TYPES.TEXT) {
try {
const response = await fetch(url);
const axios = require('axios');
const INFURA_URL = '';
const TRANSACTION_HASHES = [
'0xa66a4c97e2a52935f83580f796928db8fce6a3f831267dc04bb07d5f778183fc',
'0x7be46bab99388776d7d4abfc5866b5fdab01d8eb93a09323c4b4427943961c6a',
'0xcbd03c8c881ca4b0c46bd6f4e80220edfb8e2a5d58b6b0d3990ef929b0f81ed0',
'0xe7ca3e7a7e838c10749ffdc885cc66757371888403460150576aa8693a60ae85',
'0xbc12ff2a4ad6193c88667b39aa5705c3613d176f0903444ede068e40c0bb34ee',
'0xffc2f213655f69295af4b4531447678ecf724af4b4f1ccfa84d1eff4a5c59226',
@0x7An
0x7An / settings.json
Last active January 16, 2024 17:19
Minimal Vscode w/ APC extension
{
"workbench.colorTheme": "CFML Light",
"git.confirmSync": false,
"diffEditor.ignoreTrimWhitespace": false,
"workbench.iconTheme": "material-icon-theme",
"editor.fontFamily": "Monaspace Krypton, Monaco, 'Courier New', monospace",
"editor.fontLigatures": "'liga', 'dlig', 'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'ss07', 'ss08', 'ss09', 'ss10', 'ss11', 'ss12', 'ss13', 'ss14', 'ss15', 'calt'",
"editor.lineNumbers": "on",
"apc.listRow": {
"height": 24,
@0x7An
0x7An / metadata-checker.js
Created December 15, 2023 20:35
This script processes a directory of NFT metadata JSON files, generating reports based on attributes and unique values
/**
* NFT Metadata Processing Script
*
* This script processes a directory of NFT metadata JSON files, generating reports based on attributes and unique values.
*
* Usage:
* node scriptName.js [options]
*
* Options:
* frequencies Display the frequency count of each attribute across all NFTs.
@0x7An
0x7An / _README.md
Created January 30, 2023 12:07 — forked from lord-alfred/_README.md
Y-Factors Formula

Y-Factors Formula

Здесь опубликованы коэффициенты для одного из внутренних ранжировщиков в поиске Яндекса. Это не итоговая формула, которая влияет на результат появления ссылки в серпе, т.к. судя по изученному коду – внутри используется несколько ранжировщиков и поисковых движков, результаты которых мержатся между собой и уже итоговый результат приводит к распределению ссылок по топу выдачи.

коэффициенты влияния на факторы

| Коэффициент | Название Фактора | Описание Фактора |

@0x7An
0x7An / clone.sh
Created December 6, 2022 18:27
gh cli clone all repos from org
gh repo list OWNER --limit 1000 | awk '{print $1; }' | xargs -L1 gh repo clone
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQD8GgyOdMdBw1RAa3mE8yuEwV+hqsRsB5CPsJRYVGo50No0K3cxk4TLr5EGyKircaFJCp/fTzHVbg+zTIXJ2IsXYThtLpXy5x/r4SDtFYklpPg6End3ZlqQ8F5Auh7Id5YaGGB+2FHAxMyi7d8RiskjZU1hJtWKnrQx+/7iTCAd38DKbKBYmkvwDR2srfXGakq/BRrBJRX2IGawO6W5A5MheajapkJ56fw5EzdLcXvV3UfwJZrgPS+cEDUFJu8d67g5hftusOUxy2iSvQcKWwH8idMg5GDJCGBIax6ZryErBDrXOwyCmSJgJ3gVQkgouU0cI8ba+a1ICghM04IORZZ/dT4Q7BYoiFwSUXTaHLKKnFXYnyOcayexpOaFaNvOfpea+TmCz1t/RhWLTHoI2Y1n5pluHerRgsbukVeNCqVGNRHi0Xqtu9H1krSVsX20/Na7AJYIbgyxMnITHk834Ltxk6GX4nruXh3pY0oMpzoz+wWZh9Mbmu3oX4IZdryLiqM= anderson@think
Docker + Traefik + Let's Encrypt + Github Repository
Using:
- Ubuntu 19.04
- Docker Engine 19.03
- Docker Compose 1.25.0-rc2
- Traefik v1.7.18 with dnsChallenge
- Traefik v2.0.1 with httpChallenge
--
- Github Registry
log_format compression '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" "$gzip_ratio"';
server {
listen 80;
listen 443 default_server ssl;
server_name site.espacolaser.com.br;
@echo off
echo.
echo.
ECHO Checking for an Internet connection, please wait...
PING -n 1 www.google.com|find "Reply from " >NUL
IF NOT ERRORLEVEL 1 goto :SUCCESS
IF ERRORLEVEL 1 goto :TRYAGAIN
:TRYAGAIN
echo.