commit 09779d43f6557415734a2edd4dbfc594ff32f7b3
Author: d3fault <d3fault@d3fault.net>
Date:   Wed May 24 21:45:03 2017 -0700

    QuickDirtyStaticGitWeb: Add hardcoded toTimeZone("Califuckingfornia"). The server that runs QuickDirtyStaticGitWeb is located in europe because for some reason they have dirt cheap servers over there

diff --git a/.lastModifiedTimestamps b/.lastModifiedTimestamps
index b0049a2..47131f1 100644
--- a/.lastModifiedTimestamps
+++ b/.lastModifiedTimestamps
@@ -5117,11 +5117,11 @@ Projects/QuickDirtyStaticGitWeb/:1454466181
Projects/QuickDirtyStaticGitWeb/design/:1457815076
Projects/QuickDirtyStaticGitWeb/design/home.page.choose.your.content.catgory.shiz.txt:1457815076
Projects/QuickDirtyStaticGitWeb/design/some.improvements.txt:1454715632
Projects/QuickDirtyStaticGitWeb/src/:1454903933Projects/QuickDirtyStaticGitWeb/src/:1495687465
Projects/QuickDirtyStaticGitWeb/src/QuickDirtyStaticGitWebCli.pro:1454466807
Projects/QuickDirtyStaticGitWeb/src/main.cpp:1454107041
Projects/QuickDirtyStaticGitWeb/src/quickdirtystaticgitweb.cpp:1455510976
Projects/QuickDirtyStaticGitWeb/src/quickdirtystaticgitweb.h:1454903904Projects/QuickDirtyStaticGitWeb/src/quickdirtystaticgitweb.cpp:1495687400
Projects/QuickDirtyStaticGitWeb/src/quickdirtystaticgitweb.h:1495687209
Projects/QuickDirtyStaticGitWeb/src/quickdirtystaticgitwebcli.cpp:1454107568
Projects/QuickDirtyStaticGitWeb/src/quickdirtystaticgitwebcli.h:1454107534
Projects/RecursiveFileStringReplaceRenamer/:1388246494
@@ -6430,7 +6430,7 @@ scripts/best.rsync.command.txt:1427098358
scripts/cleanAptEtc.sh:1350618598
scripts/cmd.to.make.torrent.with.lots.of.relevant.trackers.txt:1426427907
scripts/copy.ldd.dependencies.automatically.woot.txt:1442694424
scripts/d3faults.superior.unattended-upgrades.sh:1495684771scripts/d3faults.superior.unattended-upgrades.sh:1495685149
scripts/debian.squeeze.dell.mini.9.post.install.instructions.txt:1368042665
scripts/dedicated.server.domain.name.associating.txt:1409246698
scripts/design.for.new.auto-commit.infrastructure.that.is.basic.incremement.of.current.auto-commit.but.nowhere.near.what.i.want.ultimately.txt:1343536975
diff --git a/Projects/QuickDirtyStaticGitWeb/src/quickdirtystaticgitweb.cpp b/Projects/QuickDirtyStaticGitWeb/src/quickdirtystaticgitweb.cpp
index 184c613..b66dd13 100644
--- a/Projects/QuickDirtyStaticGitWeb/src/quickdirtystaticgitweb.cpp
+++ b/Projects/QuickDirtyStaticGitWeb/src/quickdirtystaticgitweb.cpp
@@ -5,6 +5,7 @@
#include <QFileInfo>
#include <QTextStream>
#include <QDateTime>
#include <QTimeZone>
#include <QDir>
#include <QDirIterator>

@@ -173,13 +174,21 @@ QString QuickDirtyStaticGitWeb::createdFileHtml(const QString &htmlEncodedFilePa
//    ret.append("</blockquote>");
    return ret;*/
}
void QuickDirtyStaticGitWeb::setDateTimeToTimezoneOfWhereILive(QDateTime *dateTimeWithTimezoneOfWhereILiveNotWhereTheFuckingServerIsLocated)
{
    QByteArray desiredTimezoneIanaId("America/Los_Angeles"); //Note: if I move from california to somewhere else, update this
    if(QTimeZone::isTimeZoneIdAvailable(desiredTimezoneIanaId))
        dateTimeWithTimezoneOfWhereILiveNotWhereTheFuckingServerIsLocated->setTimeZone(QTimeZone(desiredTimezoneIanaId));
}
QString QuickDirtyStaticGitWeb::modifiedFileHtml(const QString &diffHtmlFilePath, const QString &htmlEncodedFilePath, qint64 modificationTimestamp)
{
//    QString htmlExt(".html");
//    QString actualFileName = htmlEncodedFilePath;
//    if(actualFileName.endsWith(htmlExt))
//        actualFileName.chop(htmlExt.length());
    QDateTime lastModifiedDateTime = QDateTime::fromMSecsSinceEpoch(modificationTimestamp*1000);
    setDateTimeToTimezoneOfWhereILive(&lastModifiedDateTime);
    return QString(QDateTime::fromMSecsSinceEpoch(modificationTimestamp*1000).toString(QUICK_DIRTY_STATIC_GIT_WEB_DATETIME_FORMAT_STRING)QString(lastModifiedDateTime.toString(QUICK_DIRTY_STATIC_GIT_WEB_DATETIME_FORMAT_STRING) + " -- d3fault <a href='" + diffHtmlFilePath + "'>" A_STRING_IN_MODIFIED_FILE_HTML_KEK_HACK "='" + htmlEncodedFilePath + ".html'>" + htmlEncodedFilePath + "</a>");
}
bool QuickDirtyStaticGitWeb::ensureAllParentDirectoriesExistInTempPlaintextDirMakingThemIfNeeded(const QString &filePathOf_FILE_notDir)
{
@@ -281,7 +290,9 @@ bool QuickDirtyStaticGitWeb::rewriteStaleArchiveHtmls(ArchiveHtmls *archiveHtmls
                QString htmlExt(".html");
                if(actualFilename.endsWith(".html"))
                    actualFilename.chop(htmlExt.length());
                QDateTime lastModifiedDateTime = QDateTime::fromMSecsSinceEpoch(monthEntriesIterator.key() * 1000);
                setDateTimeToTimezoneOfWhereILive(&lastModifiedDateTime);
                archiveMonthHtmlFileTextStream << "<tr class='" + QString(even ? "d0" : "d1") + "'><td>" << QDateTime::fromMSecsSinceEpoch(monthEntriesIterator.key() * 1000).toString(QUICK_DIRTY_STATIC_GIT_WEB_DATETIME_FORMAT_STRING)lastModifiedDateTime.toString(QUICK_DIRTY_STATIC_GIT_WEB_DATETIME_FORMAT_STRING) << " -- " << "<a href='" << htmlEscapedPath << "'>" << actualFilename << "</a></td></tr>\n";
                even = !even;
            }
            archiveMonthHtmlFileTextStream << "</table></center>";
@@ -1365,7 +1376,9 @@ void QuickDirtyStaticGitWeb::generateStaticGitWeb(const QString &sourceInputRepo
            QString pathHtmlEscapedActualFileName = indexHtmlEntry.first.toHtmlEscaped();
            QString pathHtmlEscaped = pathHtmlEscapedActualFileName + ".html";
            QFileInfo theHtmlFileInfo = m_DestinationOutputStaticGitWebRepo + indexHtmlEntry.first + ".html";
            tehHtmlz.append(theHtmlFileInfo.lastModified().toString(QUICK_DIRTY_STATIC_GIT_WEB_DATETIME_FORMAT_STRING)QDateTime lastModifiedDateTime = theHtmlFileInfo.lastModified();
            setDateTimeToTimezoneOfWhereILive(&lastModifiedDateTime);
            tehHtmlz.append(lastModifiedDateTime.toString(QUICK_DIRTY_STATIC_GIT_WEB_DATETIME_FORMAT_STRING) + " -- d3fault created the file: <a href='" + pathHtmlEscaped + "'>" + pathHtmlEscapedActualFileName + "</a><br /><pre><blockquote cite='" + pathHtmlEscaped + "'>");

            QFile file(appendSlashIfNeeded(m_TempDirOfUnHtmlizedFileContentsOfFilesAddedOrModifiedDuringThisAppSession->path()) + indexHtmlEntry.first);
            if(!file.open(QIODevice::ReadOnly | QIODevice::Text))
diff --git a/Projects/QuickDirtyStaticGitWeb/src/quickdirtystaticgitweb.h b/Projects/QuickDirtyStaticGitWeb/src/quickdirtystaticgitweb.h
index ce9aba5..0ec5864 100644
--- a/Projects/QuickDirtyStaticGitWeb/src/quickdirtystaticgitweb.h
+++ b/Projects/QuickDirtyStaticGitWeb/src/quickdirtystaticgitweb.h
@@ -29,6 +29,7 @@ typedef QScopedPointer<QuickDirtyStaticGitWebResultEmitter> ScopedQuickDirtyStat

class QProcess;
class ArchiveHtmls;
class QDateTime;

class QuickDirtyStaticGitWeb : public QObject
{
@@ -55,6 +56,7 @@ private:
    QPair<bool, QString> getHeadCommitId();
    static inline QString diffFileName(const QString &diffFromCommitId, const QString &diffToCommitId) { return "diff/" + diffFromCommitId + ".." + diffToCommitId; }
    QString createdFileHtml(const QString &htmlEncodedFilePath, qint64 fileTimestamp/*, const QString &unencodedFilePath*/);
    static void setDateTimeToTimezoneOfWhereILive(QDateTime *dateTimeWithTimezoneOfWhereILiveNotWhereTheFuckingServerIsLocated);
    QString modifiedFileHtml(const QString &diffHtmlFilePath, const QString &htmlEncodedFilePath, qint64 modificationTimestamp);
    bool ensureAllParentDirectoriesExistInTempPlaintextDirMakingThemIfNeeded(const QString &filePathOf_FILE_notDir);
    bool ensureAllParentDirectoriesExistMakingThemIfNeeded(const QString &filePathOf_FILE_notDir);
diff --git a/scripts/d3faults.superior.unattended-upgrades.sh b/scripts/d3faults.superior.unattended-upgrades.sh
index 9584c17..56abc34 100644
--- a/scripts/d3faults.superior.unattended-upgrades.sh
+++ b/scripts/d3faults.superior.unattended-upgrades.sh
@@ -20,7 +20,7 @@ exit 1
while :
do
    #TODOreq: get pid of process launched in background. for now fuck it, killall works
    ./sleepFor45minsThenEmailAdminThenPause.sh > /dev/null 2>&1 & # no point in putting the contents of that simple script here, since the "email admin" part will be server-specific (and I also don't know a/the command to do it yet).yet ("sendemail" sounds promising xD)). but the first line will be "sleep 2700" (45 mins)

    apt-get update
    apt-get upgrade -y