Skip to content

Instantly share code, notes, and snippets.

View MetaMmodern's full-sized avatar
🚀
I want to visit Mars.

Buniamin Shabanov MetaMmodern

🚀
I want to visit Mars.
  • Kyiv, Ukraine
View GitHub Profile
@cjaoude
cjaoude / gist:fd9910626629b53c4d25
Last active July 22, 2024 07:02
Test list of Valid and Invalid Email addresses
Use: for testing against email regex
ref: http://codefool.tumblr.com/post/15288874550/list-of-valid-and-invalid-email-addresses
List of Valid Email Addresses
email@example.com
firstname.lastname@example.com
email@subdomain.example.com
firstname+lastname@example.com
@peterdalle
peterdalle / robots.txt
Created December 3, 2016 15:18
Robots.txt that makes sure Facebook and Twitter can crawl images on your site.
# Disallow everything.
User-agent: *
Disallow: /
# Certain social media sites are whitelisted to allow crawlers to access page markup when links to /images are shared.
User-agent: Twitterbot
Allow: /images
User-agent: facebookexternalhit
Allow: /images
@waptik
waptik / bot.ts
Last active July 16, 2024 22:29
This is a minimal codebase of getting grammY to work with nextjs pages directory. Please use this version of `next-connect`: `"next-connect": "^0.13.0",`
import { Bot, Context } from "grammy";
export const bot = new Bot<Context>(process.env.TELEGRAM_BOT_TOKEN ?? "");