Skip to content

Instantly share code, notes, and snippets.

View marianzange's full-sized avatar

Marian Zange marianzange

  • 00:31 (UTC -06:00)
View GitHub Profile
@ronelliott
ronelliott / bash_aliases_django.sh
Last active October 3, 2022 11:56
Helpful Bash Aliases for Django
alias dj="python manage.py"
alias djdd="python manage.py dumpdata"
alias djld="python manage.py loaddata"
alias djm="python manage.py migrate"
alias djsh="python manage.py shell"
alias djsm="python manage.py schemamigration"
alias djs="python manage.py syncdb --noinput"
alias djt="python manage.py test"
alias djrs="python manage.py runserver"
@Amareshwari
Amareshwari / scribe-flush-change
Created April 24, 2012 10:46
Patch for Scribe : Make HDFS file writes to flush after the write
diff --git src/HdfsFile.cpp src/HdfsFile.cpp
index f1ffadf..ac5d134 100644
--- src/HdfsFile.cpp
+++ src/HdfsFile.cpp
@@ -120,12 +120,15 @@ bool HdfsFile::write(const std::string& data) {
tSize bytesWritten = hdfsWrite(fileSys, hfile, data.data(),
(tSize) data.length());
bool retVal = (bytesWritten == (tSize) data.length()) ? true : false;
+ if (retVal) {
+ hdfsHFlush(fileSys, hfile);