Skip to content

Instantly share code, notes, and snippets.

@evvvritt
evvvritt / clone_index.html_to_200.html.js
Last active March 1, 2017 21:38
VueJS Webpack – Generate 200.html file for client-side routing on Surge
// Clone built index.html file as 200.html for client-side routing on Surge hosting
// Place inside webpack() callback in /build/build.js — That's it ;D
shell.cp(config.build.index, config.build.assetsRoot+'/200.html')
// VueJS Webpack Boilerpate – https://github.com/vuejs-templates/webpack
// ShellJS – https://github.com/shelljs/shelljs#cpoptions-source_array-dest
// Surge – https://surge.sh/help/adding-a-200-page-for-client-side-routing

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@evvvritt
evvvritt / gist:9796a508ce7d44dbe19676fd0835b477
Last active December 20, 2019 15:52
Simple purgecss implementation for Vue CLI 3
// using in a Vue CLI 3, tailwindcss app but can be adjusted
"scripts": {
"build": "vue-cli-service build",
"postbuild": "yarn purgecss",
"purgecss": "node_modules/purgecss/bin/purgecss --config ./purgecss.config.js --out ./dist/css"
},
@evvvritt
evvvritt / pwd.js
Last active February 3, 2021 23:03
Netlify Function Password Protect Site
// Netlify Function
require('dotenv').config() // loads environment variables
const password = process.env.SITE_PWD // the password as environment variable
exports.handler = async function (event, context) {
try {
if (event.body === password) {
return {
statusCode: 200,
body: JSON.stringify({ status: 200, msg: 'success' })
@evvvritt
evvvritt / attestation.txt
Created March 28, 2021 10:00
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_1_1",
"ceremonyId": "hIfLWePJPn6ldES7OZjB",
"time": "2021-03-28T10:00:53.559Z",
"contributionNumber": 131,
"hash": "b50c4637 9db930ee 4a7a6888 9d52f2be\n 289c54ff 5c1d193e f2637b83 91b92d7b\n 679859c2 bf780682 81080e3c 5a531b73\n 8070dfe5 e047bbfd 3e0e6c3c 51b2018a\n"
}
@evvvritt
evvvritt / attestation.txt
Created March 28, 2021 10:02
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_1_2",
"ceremonyId": "3lHsQDxM4lQKxkwA0Oyj",
"time": "2021-03-28T10:02:20.459Z",
"contributionNumber": 126,
"hash": "8b552231 dbdef305 b377db2c 5621c603\n 532d8024 2da3b43b e9e22d8c 52c99dd3\n 15ef44fc e64c0021 6632c79b 99166daf\n 7518497c 59af8652 5c050086 8f4a0735\n"
}
@evvvritt
evvvritt / attestation.txt
Created March 28, 2021 10:03
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_1_3",
"ceremonyId": "k9CJHwJoeSRMGtjHUiF6",
"time": "2021-03-28T10:03:27.159Z",
"contributionNumber": 120,
"hash": "abc5a7c3 31b56353 f5df6e4e ba34f4b3\n d61d7109 6119eaba 583c528f aa6247d9\n 8e09ca1c 41f3b64e 95838bb8 4cd84cb9\n 9638acb7 a16c67ef f15540ae 53bf7a1d\n"
}
@evvvritt
evvvritt / attestation.txt
Created March 28, 2021 10:04
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_1_4",
"ceremonyId": "VgOEuoAjThuaDosXRroW",
"time": "2021-03-28T10:04:29.176Z",
"contributionNumber": 120,
"hash": "423670cc 210bfa70 beb0c4d2 751e7b24\n e86e2a19 016fb212 027ce7be 7f1bb11a\n 21ef35cd d2f0edaa 8affb2aa d8ac8d9d\n 26c1f72a 3d409aff af5ee3d4 e775f9a8\n"
}
@evvvritt
evvvritt / attestation.txt
Created March 28, 2021 10:06
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_2_1",
"ceremonyId": "btlNv8naLSHxVoZbjUJS",
"time": "2021-03-28T10:06:09.014Z",
"contributionNumber": 117,
"hash": "ebc83ac9 2e5d227b 60b4b432 81c896ab\n 428dbf40 1fceb562 e97d355f fd3207dd\n e5e1429f 7a1f3b02 eed9bf74 ad14eeeb\n e56008d2 61bd4a92 5fdd093b 525e9a2c\n"
}
@evvvritt
evvvritt / attestation.txt
Created March 28, 2021 10:07
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_2_2",
"ceremonyId": "d0eQ24D01KCNaAHd8nM8",
"time": "2021-03-28T10:07:54.177Z",
"contributionNumber": 115,
"hash": "8f5304db 8b7390b9 628126e4 6acf5137\n 44496ae2 cdf6748d db4a9287 b44be184\n a31a38c7 307248a5 b3ff037c ebe71a65\n 688938da 1eca6b6b 65d38248 3ea5efb1\n"
}