Skip to content

Instantly share code, notes, and snippets.

View niksmac's full-sized avatar
🇮🇳
🧜 Merperson

Nikhil M niksmac

🇮🇳
🧜 Merperson
View GitHub Profile
import pandas as pd
import csv
import math
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('input_filename')
parser.add_argument('file_name')
#!/bin/bash
cd /home/ubuntu/
touch pipeline_trace.txt
sleep 5s
node /home/ubuntu/clpush/index.js &
while true;
do
input_directory=`cat inputpath.txt`
w=`cat wpath.txt`
out_directory=`cat outpath.txt`
#!/bin/bash
cd /home/ubuntu/
touch pipeline_trace.txt
sleep 5s
node /home/ubuntu/clpush/index.js &
while true;
do
input_directory=`cat inputpath.txt`
w=`cat wpath.txt`
out_directory=`cat outpath.txt`
#!/bin/bash
cd /home/ubuntu/
touch pipeline_trace.txt
sleep 15s
node /home/ubuntu/clpush/index.js &
while true;
do
input_directory=`cat inputpath.txt`
w=`cat wpath.txt`
out_directory=`cat outpath.txt`
#!/bin/bash
cd /home/ubuntu/
touch pipeline_trace.txt
sleep 15s
node /home/ubuntu/clpush/index.js &
while true;
do
input_directory=`cat inputpath.txt`
w=`cat wpath.txt`
out_directory=`cat outpath.txt`
#!/bin/bash
cd /home/ubuntu/
touch pipeline_trace.txt
sleep 15s
node /home/ubuntu/clpush/index.js &
while true;
do
input_directory=`cat inputpath.txt`
w=`cat wpath.txt`
out_directory=`cat outpath.txt`
@niksmac
niksmac / ibm-slow.md
Last active January 7, 2018 04:17
IBM Support team is not responding for 5 days

Invoice of $4186

What i was running

  • 1 CF App (512MB)
  • CF Blockchain (1 Peer, 2 CA and 3 Orderer) Which is considered as minimal

For how long

I was running this for 3 months now, last time i got an invoice of $1532

Support team is not responding for 5 days

0x99d29f0f7aba856198fd9960825b164b891b2a6a
0x8e49714249fddfc6bca9b93a12b08a88e6e1749e
@niksmac
niksmac / Donation.sol
Created June 17, 2017 06:41 — forked from fabdarice/Donation.sol
Relay contract that contains only one state variable 'user_amounts' - Link first to Donation contract, then update to DonationNew to add the cancelDonation function.
contract Donation {
mapping (address => uint) user_amounts;
/* DOES THIS METHODS MODIFY user_amounts of the Relay contract ??? */
function sendDonation(uint n) {
user_amounts[msg.sender] = user_amounts[msg.sender] + n
}
}