Skip to content

Instantly share code, notes, and snippets.

View hoanbka's full-sized avatar
💭
while I < YOU: I++

Hoan Nguyen hoanbka

💭
while I < YOU: I++
  • Hanoi, Vietnam
View GitHub Profile
@dineshsprabu
dineshsprabu / start_monogd_in_ubuntu_server.sh
Created November 7, 2016 08:44
[Mongodb] Starting MongoDB as a service with wiredTiger, default DBPath and LogPath
sudo mongod --dbpath="/var/lib/mongodb" --fork --logpath /var/log/mongodb.log --storageEngine "wiredTiger"
@hoanbka
hoanbka / CalculateSizeFolder.py
Created January 24, 2017 08:38
Calculate the size of the folder using Python
import os
res = []
def readFolder(file):
if os.path.isfile(file):
res.append(os.path.getsize(file))
else:
arr = os.listdir(file)
for element in arr: