Skip to content

Instantly share code, notes, and snippets.

View block-0x's full-sized avatar

Meta Block block-0x

  • Tokyo
  • 13:30 (UTC +09:00)
View GitHub Profile
@rcaloras
rcaloras / opensea-refresh-metadata.js
Created January 6, 2023 20:42
Opensea metadata refresh script. For chains that aren't supported via API.
// Paste this script into the console on a specfic NFT detail page for your collection.
// e.g. https://opensea.io/assets/ethereum/0x1485297e942ce64e0870ece60179dfda34b4c625/3723
// Adjust i on the for loop for the range of nfts you wish to refresh
// Should work for all chains including Polygon and testnets.
// Returns a Promise that resolves after "ms" Milliseconds
const timer = ms => new Promise(res => setTimeout(res, ms))
async function refresh_metadata() { // We need to wrap the loop into an async function for this to work
for (var i = 1; i <= 1326; i++) {
@bytenik
bytenik / swagger.json
Created July 10, 2019 11:39
Bitgo Swagger
{
"openapi": "3.0.0",
"servers": [
{
"description": "Production environment",
"url": "https://www.bitgo.com"
},
{
"description": "Test environment",
"url": "https://test.bitgo.com"
@okutbay
okutbay / free_email_provider_domains.txt
Last active August 14, 2024 20:48 — forked from tbrianjones/free_email_provider_domains.txt
Most complete list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created. I also created a service for it https://emailprovider.yonetic.im/ and use this list in my free link shortener service ht…
This file has been truncated, but you can view the full file.
0-00.usa.cc
0-180.com
0-30-24.com
0-420.com
0-900.com
0-aa.com
0-mail.com
0-z.xyz
0.pl
00.pe
@ammarshah
ammarshah / all_email_provider_domains.txt
Last active November 16, 2024 05:45
A list of all email provider domains (free, paid, blacklist etc). Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
0-mail.com
007addict.com
020.co.uk
027168.com
0815.ru
0815.su
0clickemail.com
0sg.net
0wnd.net
0wnd.org
@mmizutani
mmizutani / mysql.database.yml
Created September 5, 2017 22:04 — forked from jwo/mysql.database.yml
Sample config/database.yml from Rails. Postgres, MySQL, and SQLite
#
# Install the MYSQL driver
# gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
# gem 'mysql2'
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
@nashirox
nashirox / rails-validates.rb
Last active September 2, 2024 08:29
Rubyのバリデーション用正規表現集
#
# 数字
#
# 全て数値(全角)
/\A[0-9]+\z/
# 全て数値(半角)
/\A[0-9]+\z/
@taea
taea / rm_pid.md
Last active January 12, 2023 14:22
postgres をちゃんと終了しないと.pidファイルが残っちゃって、Rails が起動しないもんだい

Rails 起動しようとするとこんなエラーでる

PG::ConnectionBad at /
could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?