Skip to content

Instantly share code, notes, and snippets.

View milkyklim's full-sized avatar
🥛

milkyklim milkyklim

🥛
View GitHub Profile

0x255de8e9182e053331143de8a65991c8b800fd18ebe34a497825ce0d93d15d0d

@milkyklim
milkyklim / ipfs-backend.js
Last active July 21, 2019 15:01 — forked from sulejirl/ipfs-backend.js
IPFS backend to add and get file from IPFS system
const IPFS = require('ipfs');
const express = require('express');
const fs = require('fs');
const app = express();
const ipfs = new IPFS();
app.get('/addfile', () => {
// reading file from computer
let file = fs.readFileSync('test.png');
@milkyklim
milkyklim / mongo-dump-csv.sh
Last active June 19, 2019 00:34 — forked from mderazon/mongo-dump-csv.sh
Export all MongoDB collections as csv without specifying fields (tested only on non-empty collections with plain scheme).
OIFS=$IFS
IFS=","
# fill in your details here
dbname=<DBNAME>
user=<USERNAME>
pass=<PASSWORD>
host=<HOST>
port=<PORT>
authdb=<AUTHDB>