# syntax=docker/dockerfile:1.7
# ---- builder ----
FROM node:22-slim AS builder
WORKDIR /app
# Install deps first so this layer caches when only source changes
COPY package*.json ./
This file contains hidden or 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
| # install ipset | |
| apt update && apt install -y ipset | |
| # create the script | |
| cat << 'EOF' > /usr/local/bin/update-blocklist.sh | |
| #!/bin/bash | |
| ipset create blocklist hash:ip hashsize 4096 -exist | |
| ipset flush blocklist |
This file contains hidden or 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
| // Type `about:debugging` into search bar hit enter | |
| // Open developer console, execute following | |
| for (let k of document.getElementsByClassName("qa-unregister-button")) k.click() |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>blah</title> | |
| </head> | |
| <body> | |
| <p>I'm the content</p> | |
| </body> | |
| <script type="module"> |
The Ethereum Name Service is a decentralised naming protocol for the new internet. If your project requires users to input ETH address or display ETH address, consider integrate with ENS so that you can show human readable names.
Any type of ENS integration is eligible for this prize (NOTE: We do not accept projects simply hardcoding ENS names).
Please follow the quick start guide to learn how to integrate ENS names programatically.
This file contains hidden or 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
| function dnsWireFormat(domain, ttl, type, cls, address) { | |
| let labels = domain.split("."); | |
| let output = ""; | |
| for (let label of labels) { | |
| output += label.length.toString(16).padStart(2, '0'); | |
| for (let char of label) { | |
| output += char.charCodeAt(0).toString(16); | |
| } | |
| } |
This file contains hidden or 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 { ENS } from "@ensdomains/ensjs"; // 3.0.0-alpha.39 | |
| import { providers } from "ethers"; // 5.7.2 | |
| const client = new ENS(); | |
| const provider = new providers.Web3Provider(window.ethereum, "goerli"); | |
| async function setENSAvatar() { | |
| await client.setProvider(provider); |
This file contains hidden or 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
| var fs = require('fs'); | |
| var INTERVAL = 1000; | |
| var cycle_stop = false; | |
| var daemon = false; | |
| var timer; | |
| process.argv.forEach(function (arg) { | |
| if (arg === '-d') daemon = true; |
This file contains hidden or 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 { override, addWebpackAlias } = require('customize-cra'); | |
| const path = require('path'); | |
| const overridePath = (webpackConfig) => { | |
| const oneOfRule = webpackConfig.module.rules.find((rule) => rule.oneOf); | |
| if (oneOfRule) { | |
| const tsxRule = oneOfRule.oneOf.find( | |
| (rule) => rule.test && rule.test.toString().includes('tsx') | |
| ); |
This file contains hidden or 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 urllib.request | |
| import re | |
| EMOJI_TEST_FILENAME = "emoji-test.txt" | |
| EMOJI_DATA_URL = "https://unicode.org/Public/emoji/14.0/emoji-test.txt" | |
| def download_latest_emoji_test_data() : | |
| response = urllib.request.urlopen(EMOJI_DATA_URL) | |
| emoji_test_file = response.read() | |
| with open(EMOJI_TEST_FILENAME, "wb") as tmp_file: |
NewerOlder