Skip to content

Instantly share code, notes, and snippets.

View lgs's full-sized avatar

Luca G. Soave lgs

View GitHub Profile

Keybase proof

I hereby claim:

  • I am lgs on github.
  • I am lgskb (https://keybase.io/lgskb) on keybase.
  • I have a public key ASDGKlDS-WHTXb8QLlNj8FHPIm6kH4csmnaC3X5_z7ozJAo

To claim this, I am signing this object:

@lgs
lgs / Generate NFT Marketplace Polygon
Created September 5, 2021 09:05 — forked from evanVtatum/Generate NFT Marketplace Polygon
Generate NFT Marketplace Polygon
curl --location --request POST 'https://api-eu1.tatum.io/v3/blockchain/marketplace/listing' \
--header 'Content-Type: application/json' \
--header 'x-api-key: YOUR_API_KEY' \
--data-raw '{
"feeRecipient": "0x8cb76aEd9C5e336ef961265c6079C14e9cD3D2eA",
"marketplaceFee": 250,
"chain": "MATIC",
"fromPrivateKey": "0x37b091fc4ce46a56da643f021254612551dbe0944679a6e09cb5724d3085c9ab"
}'
@lgs
lgs / gist:ba460eecbd846373eeb1d7ca1c6f8b78
Created June 27, 2021 14:03
npm run build fails locally
> Using @sveltejs/adapter-netlify
TypeError: render2 is not a function
at Object.handle (file:///home/lsoave/Svelte/sveltekit-stripe-netlify/.svelte-kit/output/server/app.js:74:26)
at respond (file:///home/lsoave/Svelte/sveltekit-stripe-netlify/node_modules/@sveltejs/kit/dist/ssr.js:1514:30)
at Module.render (file:///home/lsoave/Svelte/sveltekit-stripe-netlify/.svelte-kit/output/server/app.js:205:10)
at visit (file:///home/lsoave/Svelte/sveltekit-stripe-netlify/node_modules/@sveltejs/kit/dist/chunks/index6.js:129:30)
at prerender (file:///home/lsoave/Svelte/sveltekit-stripe-netlify/node_modules/@sveltejs/kit/dist/chunks/index6.js:243:11)
at async Object.prerender (file:///home/lsoave/Svelte/sveltekit-stripe-netlify/node_modules/@sveltejs/kit/dist/chunks/index6.js:310:5)
at async adapt (file:///home/lsoave/Svelte/sveltekit-stripe-netlify/node_modules/@sveltejs/adapter-netlify/index.js:33:4)
at async adapt (file:///home/lsoave/Svelte/sveltekit-stripe-netlify/node_modules/@sveltej
@lgs
lgs / PinataPartyContract.cdc
Created June 5, 2021 08:59 — forked from polluterofminds/PinataPartyContract.cdc
Full PinataPartyContract
pub contract PinataPartyContract {
pub resource NFT {
pub let id: UInt64
init(initID: UInt64) {
self.id = initID
}
}
pub resource interface NFTReceiver {
pub fun deposit(token: @NFT, metadata: {String : String})
#!/bin/bash
# Specify the desired volume size in GiB as a command-line argument. If not specified, default to 20 GiB.
SIZE=${1:-20}
# Get the ID of the environment host Amazon EC2 instance.
INSTANCEID=$(curl http://169.254.169.254/latest/meta-data/instance-id)
# Get the ID of the Amazon EBS volume associated with the instance.
VOLUMEID=$(aws ec2 describe-instances \
@lgs
lgs / kubectl-cs.md
Created April 21, 2021 13:54 — forked from luebken/kubectl-cs.md
Kubectl Cheatsheet
# start up a cluster
KUBERNETES_PROVIDER=vagrant ./cluster/kube-up.sh

# start a simple vagrant cluster
NUM_NODES=1 KUBERNETES_PROVIDER=vagrant KUBE_ENABLE_CLUSTER_MONITORING=none KUBE_ENABLE_CLUSTER_UI=false ./cluster/kube-up.sh

# validate cluster 
./cluster/validate-cluster.sh
kubectl cluster-info
<script>
import { stores } from '@sapper/app';
import { onMount } from 'svelte';
import {loadStripe} from '@stripe/stripe-js';
let paymentToken = '';
let paymentError;
const { preloading, page, session } = stores();
$ : unitName = ($page.params && $page.params.unitName) ? $page.params.unitName[0] : ''; // The reactive part here I read the params to know about what is the selected unit by the user
@lgs
lgs / worker.js
Created December 11, 2020 17:46 — forked from tobiaslins/worker.js
Notion Custom Domain using Cloudflare Workers + Splitbee Analytics
const MY_DOMAIN = "help.splitbee.io"
const START_PAGE = "https://www.notion.so/splitbee/Help-Center-bbf26e2b70574901b9c98e5d11e449de"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, HEAD, POST,PUT, OPTIONS",
@lgs
lgs / worker.js
Last active December 11, 2020 17:46 — forked from tobiaslins/worker.js
Notion Custom Domain using Cloudflare Workers + Splitbee Analytics
const MY_DOMAIN = "help.splitbee.io"
const START_PAGE = "https://www.notion.so/splitbee/Help-Center-bbf26e2b70574901b9c98e5d11e449de"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, HEAD, POST,PUT, OPTIONS",
@lgs
lgs / gist:3df72c2c455fa2e26942d1a970ced1f4
Created December 11, 2020 16:56 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: