commit dc3acc5bd8963ccfd3c128441a2e4474d04a4da0
Author: d3fault <d3fault@d3fault.net>
Date:   Thu May 25 21:39:57 2017 -0700

    QuickDirtyAutoBackupHalper3 Commit @25 May 2017 21:39:53 -0700

diff --git a/.lastModifiedTimestamps b/.lastModifiedTimestamps
index c25a02f..82f429c 100644
--- a/.lastModifiedTimestamps
+++ b/.lastModifiedTimestamps
@@ -44,7 +44,7 @@ Documents/minddump/2016/4/1459968855-LhX846.txt:1459969203
Documents/minddump/2016/4/1459969303-nnS846.txt:1459969688
Documents/minddump/2016/4/1459984685-TJ2423.txt:1459985236
Documents/minddump/2017/:1495179528
Documents/minddump/2017/5/:1495746832Documents/minddump/2017/5/:1495773022
Documents/minddump/2017/5/1495171253-Kauai.0a-MTJ783.txt:1495179507
Documents/minddump/2017/5/1495214940-MTJ843.txt:1495215210
Documents/minddump/2017/5/1495323758-TJ2659.txt:1495323774
@@ -60,6 +60,7 @@ Documents/minddump/2017/5/1495743524-MTJ808.txt:1495743667
Documents/minddump/2017/5/1495743760-MTJ814.txt:1495743877
Documents/minddump/2017/5/1495743948-LhX814.txt:1495743976
Documents/minddump/2017/5/1495746402-TJ1090.txt:1495746813
Documents/minddump/2017/5/1495772765-TJ1174.txt:1495773022
Documents/minddump/couchbase/:1340207540
Documents/minddump/couchbase/Couchbase.Questions.for.forum.or.something.txt:1340102585
Documents/minddump/couchbase/asflksjdfoiuwerlkjsdfouwrlkjsdfasou.txt:1340015923
@@ -5909,15 +5910,15 @@ Projects/wasdf/design/:1495748160
Projects/wasdf/design/mouse.action.serialization.stream.is.likely.to.become.desynced.and.cause.total.system.failure.here.is.a.solution.to.it.but.also.the.keyboard.could.desync.too.etc.txt:1495748160
Projects/wasdf/design/pin.detection.and.finger.mapping.are.same.step.as.calibration.txt:1495315077
Projects/wasdf/design/renaming.from.MusicFingers.txt:1495250184
Projects/wasdf/src/:1495747607Projects/wasdf/src/:1495770684
Projects/wasdf/src/cli/:1495395081
Projects/wasdf/src/cli/main.cpp:1495395081
Projects/wasdf/src/cli/wasdfcli.cpp:1495394570
Projects/wasdf/src/cli/wasdfcli.h:1495394574
Projects/wasdf/src/lib/:1495746931Projects/wasdf/src/lib/:1495770648
Projects/wasdf/src/lib/fingeriteratororderedbymostusedfingers.cpp:1495480054
Projects/wasdf/src/lib/fingeriteratororderedbymostusedfingers.h:1495480049
Projects/wasdf/src/lib/wasdf.cpp:1495746931Projects/wasdf/src/lib/wasdf.cpp:1495770648
Projects/wasdf/src/lib/wasdf.h:1495654643
Projects/wasdf/src/lib/wasdfarduino.cpp:1495656263
Projects/wasdf/src/lib/wasdfarduino.h:1495419683
@@ -6401,7 +6402,7 @@ Solutions/launchASEPbecauseRedAlert/video.bytestream.design.rofl.so.ghetto.and.p
Solutions/standard.wt.deploy.arguments.to.get.clean.urls.working.properly.txt:1398266138
licenses/:1398086549
licenses/license.dpl.txt:1388242176
scripts/:1495684771scripts/:1495772455
scripts/LiveCDinstallAndConfigExtra/:1338074874
scripts/LiveCDinstallAndConfigExtra/download.all.MY.rpms.sh:1338074340
scripts/LiveCDinstallAndConfigExtra/firefox.prefs.additions.txt:1338110610
@@ -6437,7 +6438,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:1495685149scripts/d3faults.superior.unattended-upgrades.sh:1495772455
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
@@ -6453,6 +6454,7 @@ scripts/laptop.screen.only.sh:1350618576
scripts/mount.2x.750gb.drives.sh:1350716644
scripts/new.os.install.cloning.from.the.bare.repo.safely.by.specifying.file.colon.slash.slash.txt:1350441253
scripts/polaroid.backup.and.shred.sh:1422524231
scripts/pushTextToAnyUsbFilesystemConnected.sh:1495748717
scripts/qtCreatorCustomStyle.xml:1427771912
scripts/rasperryPiVideoCaptureScript.sh:1428911257
scripts/recursive.gpg.sign.txt:1426425284
diff --git a/Documents/minddump/2017/5/1495772765-TJ1174.txt b/Documents/minddump/2017/5/1495772765-TJ1174.txt
new file mode 100644
index 0000000..8b7f680
--- /dev/null
+++ b/Documents/minddump/2017/5/1495772765-TJ1174.txt
@@ -0,0 +1,3 @@
I smile when I'm outside at night in the wilderness, for 2 reasons. 1 good reason and 1 shitty reason. I'll tell you the shitty reason first:
0) So strangers who I might happen to see will think I'm a nice person, which decreases my chances of getting accidentally shot.
1) So my teeth are seen from a distance by a particular kind of large feline (being feline gives them good night vision, so even though I can't see them they can see me). The teeth serve as a way of saying "I will [attempt to] defend myself" (I am an animal that WILL put up a fight). Hopefully this encourages them to pick an easier target.
diff --git a/Projects/wasdf/src/lib/wasdf.cpp b/Projects/wasdf/src/lib/wasdf.cpp
index 160e094..c8df3bc 100644
--- a/Projects/wasdf/src/lib/wasdf.cpp
+++ b/Projects/wasdf/src/lib/wasdf.cpp
@@ -9,6 +9,8 @@

#define SETTINGS_KEY_IS_CALIBRATED "isCalibrated"

//TODOreq: I should always keep this app compiling. At the top of QuickDirtyStaticGitweb (maybe this should go on wasdf.com, but it makes no difference at this point), I should have an image showing the pc <--usb--> arduino <--10x finger lines--> 10x fingers. Then below it links to binaries for "the big 3" operating systems (or can detect OS in js (nah fuck js. ok well the <noscript> would be the big 3 links)). Preferably the binaries are auto-built and auto-deployed. Just like a lot of projects have "nightlies"... mine should be redeployed with every commit/push
//TODOreq: ^that implies I use a GUI instead of a CLI. The overwhelming vast majority of users double click on cli apps and wonder why nothing happened (or maybe the DID notice the terminal flash for a brief second and then disappear, but they don't understand wtf that means). Honestly GUI is only barely more difficult to code anyways (or maybe not even. perhaps just the same amount of difficulty to code (perhaps less)). I do still want to not DEPEND on gui to be able to use this (Wasdf) class (and therefore _all_ functionality of wasdf, hopefully), but yea that's obvious. Also I should make the switch to GUI sooner rather than later (and play catch up with the less used CLI (bbbbut scriptability..... ffffff (oh wait it's a lib ;-P))
Wasdf::Wasdf(QObject *parent)
    : QObject(parent)
    , m_Arduino(new WasdfArduino(this))
diff --git a/scripts/d3faults.superior.unattended-upgrades.sh b/scripts/d3faults.superior.unattended-upgrades.sh
index 56abc34..f0c1d95 100644
--- a/scripts/d3faults.superior.unattended-upgrades.sh
+++ b/scripts/d3faults.superior.unattended-upgrades.sh
@@ -1,6 +1,22 @@
#!/bin/bash
exit 1

#########Example of sleepFor45minsThenEmailAdminThenPause.sh (skip this for general introduction to script)##

##Note: this example script requires these packages to be installed: apt-get install sendemail libio-socket-ssl-perl libnet-smtp-ssl-perl libnet-ssleay-perl
##^I'm actually not sure that ibnet-smtp-ssl-perl is required but w/e too lazy to confirm it isn't (and it makes sense that it would be required)

##!/bin/bash
#sleep 2700
#sendemail -f root-server-upgrader@example.com -t your-email-address@example.com -u "Server upgrade pending" -m "apt-get upgrade didn't finish in less than 45 minutes, so this most likely means that the upgrade process is waiting for a response to a question it asked you. ssh in as roo and tmux attach to be able to answer the question(s)" -s smtp.example.com:587 -o tls=yes -xu your-email-address@example.com -xp YourPasswordGoesHere
#pause
#

#########End Example of sleepFor45minsThenEmailAdminThenPause.sh


## General Introduction ##

#For doing "unattended upgrades" on a remote server, the following strategy is used (note: I am aware debian has an unattended-upgrades package, but I don't trust it -- wtf does it do when an upgrade asks me a question? how could that package possibly know my answer?)

#0) A tmux session is launched as root on the remote server
@@ -19,15 +35,25 @@ exit 1

while :
do
    #TODOreq: get pid ofecho "Starting background process launched in background.that sleeps for now fuck it, killall works45 minutes then sends you an email"
    if [[ -x "./sleepFor45minsThenEmailAdminThenPause.sh" ]]
    then
        ./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 Iserver-specific. check the top of this file for an example script
    else
        echo "error, helper script not found or is not executable: ./sleepFor45minsThenEmailAdminThenPause.sh (you must create that script. check this script for an example of it). make sure you also don't know a/the command to dorun: chmod u+x sleepFor45minsThenEmailAdminThenPause.sh"
        exit 1
    fi

    pidoflastcommand="${!}" #store pid of process launched in background so we can kill it yet ("sendemail" sounds promising xD)). but the first line will be "sleep 2700" (45 mins)later before it sends that email out

    apt-get update
    apt-get upgrade -y

    #if there are testing/sid packages installed, to "upgrade" those you'd need to do an "apt-get install -t testing-or-sid package1 package2 etc" here

    killall sleepFor45minsThenEmailAdminThenPause.shecho "Killing  background process that sleeps for 45 minutes then sends you an email (so it won't send you that email)"
    kill "${pidoflastcommand}"
    echo "Sleeping for a day"
    sleep 86400 #24 hours
    echo "Waking up. Another day, another dollar."
done
diff --git a/scripts/pushTextToAnyUsbFilesystemConnected.sh b/scripts/pushTextToAnyUsbFilesystemConnected.sh
new file mode 100644
index 0000000..cbe1b67
--- /dev/null
+++ b/scripts/pushTextToAnyUsbFilesystemConnected.sh
@@ -0,0 +1,8 @@
#!/bin/bash
exit 1

#I think this would work, but idk kinda scared to use it as a script. I'm 99% sure git won't push if the arg isn't a repository (or the right repository (or the right repository at the right state (doesn't overwrite without --force))). the thing of note is the asterisk in the push command
cd ~/text

#git push --all /media/user/*/textBare && echo "done pushing to usb filesystems"
#^actually I think that's unsafe, a 3rd party thumb drive could provide untrusted code that could be somehow accidentally interpreted as bash code. I might be wrong, but I don't know that I'm not right (or something). Maybe globbing first and then using a for loop is best? it'd defintely give me better feedback "done pushing to /path/for/example/in/$i", but that's besides the point.