Last active
November 6, 2015 09:37
-
-
Save clayg/a378a6ac4405d81d0aa3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import pickle | |
import json | |
print json.dumps(pickle.loads(sys.stdin.read())) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@saio:~$ find /srv/node*/sdb*/object* -name \*.meta | |
/srv/node1/sdb1/objects/564/235/8d0cc2da659525588c030778d504c235/1446802010.94116.meta | |
/srv/node1/sdb1/objects/564/235/8d0cc2da659525588c030778d504c235/1446802010.94116-29010c.meta | |
/srv/node3/sdb3/objects/564/235/8d0cc2da659525588c030778d504c235/1446802010.94116.meta | |
/srv/node3/sdb3/objects/564/235/8d0cc2da659525588c030778d504c235/1446802010.94116-29010c.meta | |
/srv/node4/sdb4/objects/564/235/8d0cc2da659525588c030778d504c235/1446802010.94116-29010c.meta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@saio:~$ for i in 1 3 4; do echo $i; curl -s http://localhost:60${i}0/sdb${i}/564/ -XREPLICATE | python /vagrant/.scratch/dump_hashes.py; done | |
1 | |
{"235": "b2e00804353f13ff1058efff925e17c9"} | |
3 | |
{"235": "b2e00804353f13ff1058efff925e17c9"} | |
4 | |
{"235": "bdf913f2b8db22026973e9ad9b2e5e7a"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment