Skip to content

Instantly share code, notes, and snippets.

View miukki's full-sized avatar
💭
Digging hackerrank.com

Anya Ishmukh miukki

💭
Digging hackerrank.com
View GitHub Profile
package byteslice
import (
"bytes"
"context"
"crypto/ecdsa"
"encoding/json"
"io"
"math"
"math/big"
package circuit
import (
"github.com/consensys/gnark-crypto/ecc"
"github.com/consensys/gnark/frontend"
"github.com/consensys/gnark/std/hash/mimc"
)
// Circuit defines a pre-image knowledge proof
// mimc(secret preImage) = public hash
@miukki
miukki / keybase.md
Created October 7, 2019 10:13
keybase.md

Keybase proof

I hereby claim:

  • I am miukki on github.
  • I am miukki (https://keybase.io/miukki) on keybase.
  • I have a public key ASC9q6SvUln4gqhUM88znEi5c_HhVAYFtO9saiFZU5KEkgo

To claim this, I am signing this object:

@miukki
miukki / README.md
Created May 2, 2019 06:26
GraphQL server/client, github repo git@github.com:miukki/graphql-list.git

#Pepository

url = git@github.com:miukki/graphql-list.git

#Play with GraphQL

cd server
yarn graphql
@miukki
miukki / README.md
Created May 2, 2019 05:31
Run project on ec2 using screen -x

Setup local env

Run mongo

#new tab
sudo mongod --config /usr/local/etc/mongod.conf
#check it and if needs kill previous process  
lsof -t -i tcp:27017
#sudo kill -9 :pid
@miukki
miukki / docker-compose.yml
Created May 2, 2019 05:13
Docker container / deploy to EC2 nodejs/reactjs assets
version: "2"
services:
app:
container_name: app
restart: always
build: .
ports:
- "3000:3000"
links:
- mongo
@miukki
miukki / deploy.rb
Last active May 17, 2019 05:00
Capistrano / deploy frontend/backend assets
# config valid only for current version of Capistrano
lock '3.6.1'
set :application, 'eic-lisa-web'
set :repo_url, 'git@github.com:Prepsmith/eic-lisa-web.git'
set :deploy_to, '/home/eic/static/lisa'
set :linked_dirs, fetch(:linked_dirs, []).push('node_modules', 'bower_components')
@miukki
miukki / config.yml
Created May 2, 2019 04:14
Deploy to private server by using cirkcle CI config with connect to SSH
version: 2
jobs:
build:
docker:
- image: circleci/node:10
working_directory: ~/repo
steps:
@miukki
miukki / config.yml
Created May 2, 2019 04:12
Deploy to s3 bucket front-end stack using circle CI using workflows with AWS
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:8.11-stretch-browsers
# cryptography-task
## Get Started
### Installation
```
npm install --save cryptography-task
```