Skip to content

Instantly share code, notes, and snippets.

$argon2id$v=19$m=8192,t=2,p=4$UI7ROOW9P6KCBfqBlIchjQ$ZStqbRUpdfwFB9reCb6UyMj/RVGP+i92

Rewrite done by openai

(PROMPT) rewrite this script in python3 and change the -s and -n args to be input from an input box , without argparse

#! /bin/bash
while getopts s:n: flag
do
    case "${flag}" in
       s) size=${OPTARG};;
@didnt1able
didnt1able / ravencoin_asset_voting_POC.md
Last active September 19, 2020 12:50
This is a proof of concept for voting on blockchain using ravencoin assets

This is a proof of concept for voting on blockchain using Ravencoin assets

Generate a main asset for the election

CAN_VOTE_2024

Generate a series of unique assets ( as many as you need to fill the voter registry wallets with one unique asset per)

sudo apt-get install htop -y # This is not necessary, I just have it for check the resources consumption
sudo apt-get update
sudo apt-get install golang-go -y
export PATH=$PATH:$GOROOT/bin:$GOPATH/
export GOPATH=$HOME/go
wget https://dist.ipfs.io/go-ipfs/v0.4.15/go-ipfs_v0.4.15_linux-amd64.tar.gz
tar xvfz go-ipfs_v0.4.15_linux-amd64.tar.gz
sudo mv go-ipfs/ipfs /usr/local/bin/ipfs
ipfs init
ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
@didnt1able
didnt1able / conf_d_default_conf
Created September 15, 2020 11:36 — forked from mburns/conf_d_default_conf
There is a top-level `nginx.conf` and then in `conf.d`, we have a `default.conf` for HTTP and a `gateway.conf` for HTTPS. Removed some stanzas about domain-specific redirects and legacy rewrite rules.
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'X-Requested-With, Range, Content-Range, X-Chunked-Output, X-Stream-Output' always;
add_header 'Access-Control-Expose-Headers' 'Content-Range, X-Chunked-Output, X-Stream-Output' always;

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: