Skip to content

Instantly share code, notes, and snippets.

View m1guelpf's full-sized avatar

Miguel Piedrafita m1guelpf

View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import 'solmate/tokens/ERC721.sol';
contract NFTBillboard is ERC721('NFT Billboard', 'BNFT') {
error Unauthorized();
error TokenNotFound();
struct NFT {
@m1guelpf
m1guelpf / Leaderboard.sol
Created January 20, 2022 05:22
An optimized version of nnnnicholas.eth's leaderboard contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import 'solmate/utils/SafeTransferLib.sol';
/**
* @title Leaderboard
* @author @nnnnicholas, tweaked by @m1guelpf
* @dev Receive ETH and associate contributions with contract addresses.
*/
@m1guelpf
m1guelpf / PRMTVS.sol
Last active January 3, 2022 20:03
A lil identity namespace contract in response to jsngr's tweet: https://twitter.com/jsngr/status/1478090387101302789
// SPDX-License-Identifier: Unlicense
pragma solidity 0.8.10;
contract PRMTVS {
struct Identity {
string name;
string bio;
string email;
string website;
}
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreigic2vtnqmiryifjotq73punydb3wsio3y3r4vagonxu2h7g5l2wq ✅
Create your profile today to start building social connection and trust online at https://3Box.io/

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@m1guelpf
m1guelpf / mysql.sh
Last active May 11, 2018 15:28 — forked from mahemoff/mysql.sh
circleci mysql upgrade
#!/bin/bash
set -x
set -e
export DEBIAN_FRONTEND=noninteractive
sudo apt-get --purge autoremove -y mysql-server-5.6
curl -LO https://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
echo mysql-apt-config mysql-apt-config/select-product select Apply | sudo debconf-set-selections
@m1guelpf
m1guelpf / test.md
Last active May 11, 2018 15:55
Example Markdown document for playing with UnMarkDocs
title description next
Rendered Example
Example gist to showcase the possibilities of UnMarkDocs
url copy
What are you waiting for? Create an UnMarkDocs account!

How it Works

Description

Related Issue

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

@m1guelpf
m1guelpf / file
Created February 18, 2017 16:54
freedom_public
{"0.5946903310239156":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgMETSeSoxa05hrbSDv5gmdDXghhkHWezJyb\r\nReYUADRle+Mu7TQCr+suHAL4h7I+wp5xT0hxCRUSG9Tb+73dTGgLcM3/AAAACDxn\r\naXRodWI+wv8AAACOBBATCABA/wAAAAWCWKh8U/8AAAACiwn/AAAACZBx6mDF20EK\r\nQP8AAAAFlQgJCgv/AAAABJYDAQL/AAAAApsD/wAAAAKeAQAAfNwA/RzayQNDifcS\r\nw0hxvCkd/3qBP2VujO/qTcxgxwBWzux0AQDOkNbZfzfsMVFmodMzyDb8aZBE/FBH\r\n/XDgJ4qXPxPKO87/AAAAVgQAAAAAEggqhkjOPQMBBwIDBKf9nO0jWn9F3Ksp5qxu\r\nxqL7/MfGh4JRktpsk5gLaMGcPgRu4czHjb6wgNWnye8OutYkh+Fnic9Q5njvktbf\r\nze8DAQgHwv8AAABtBBgTCAAf/wAAAAWCWKh8U/8AAAAJkHHqYMXbQQpA/wAAAAKb\r\nDAAAQc4BAKx7jVm/oZiGjZz1fZeIryRO8lBRel9bAJ3Q2hrvryapAP4wrB/Eh9pp\r\nVtdPvAKoQCi1f4sqPC8ZIhN5Gfsq/pWA6w==\r\n=YMP8\r\n-----END PGP PUBLIC KEY BLOCK-----\r\n"}