add chrome history slurper and solana dockerfile

This commit is contained in:
2020-10-01 06:10:09 -07:00
parent b93b7d52f7
commit 985d7f735a
5 changed files with 201 additions and 0 deletions

24
chromeurls/urls.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
SRC="$HOME/Library/Application Support/Google/Chrome/Default/History"
Q="SELECT
datetime(last_visit_time/1000000-11644473600, \"unixepoch\") as last_visited,
last_visit_time as orig,
url,
title,
visit_count
FROM urls
ORDER BY last_visited desc
LIMIT 1
;
"
mkdir -p $HOME/tmp
cp "$SRC" $HOME/tmp/history
sqlite3 -readonly $HOME/tmp/history "$Q"
rm $HOME/tmp/history