problem: blocked/denied permissions on an NTFS folder which you don't own
impact: prevents you working with the folder and its contents
solution: use the SYSTEM account
some copypsexec -s -i cmd
psexec -s -i cmd
sqlite3 /path/to/your/main.db Cygwin: sqlite3.exe "$(cygpath 'c:\Downloads\main.db')"
SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;
PRAGMA table_info(Conversations);
.schema TABLENAME
SELECT DISTINCT(dialog_partner) FROM Messages;
SELECT author, from_dispname, datetime(timestamp, 'unixepoch') as date, body_xml FROM Messages where dialog_partner = 'your_dialog_partner' ORDER BY timestamp;
SELECT DISTINCT(participants) FROM Chats;
SELECT id FROM Chats WHERE participants = 'participant1 participant2';
SELECT id FROM Conversations WHERE chat_dbid = 17627;
SELECT author, from_dispname, datetime(timestamp, 'unixepoch') as date, body_xml FROM Messages where convo_id = 17631 ORDER BY timestamp;
"R:\REPOSITORY\FILES\Dropbox\linux\shared\home\XXXX\scripts\cygterm-launcher.bat" "$(FULL_CURRENT_PATH)"
for /f %%i in ('C:\cygwin\bin\cygpath %1') do set UnixPath=%%i
start "" "S:\Program Files\KiTTY\kitty_portable.exe" -cygterm -cmd "bash %UnixPath%" -
c:\cygwin\bin\bash -c "_script=$(/usr/bin/cygpath '$(FULL_CURRENT_PATH)'); /cygdrive/s/Program\ Files/KiTTY/kitty_portable.exe -cygterm -cmd \"bash '$_script'\" -"
It contains istat and blkcat and friends.
Tools for forensics analysis (per Wikipedia):
The Sleuth Kit (TSK) is a library and collection of Unix- and Windows-based utilities for extracting data from disk drives and other storage so as to facilitate the forensic analysis of computer systems. It forms the foundation for Autopsy, a better known tool that is essentially a graphical user interface to the command line utilities bundled with The Sleuth Kit.
Note above how I'm hi-jacking an existing Mingle session to perform this request.GET /api/v2/projects/YOUR_PROJECT/cards/execute_mql.xml?mql=SELECT%20number%2C%20name%20WHERE%20'Release'%20%3D%20(Next%20Release)%20AND%20Type%20%3D%20Feature HTTP/1.1 Host: YOUR_HOST:YOUR_PORT User-Agent: curl/7.24.0 (i686-pc-cygwin) libcurl/7.24.0 OpenSSL/1.0.1c zlib/1.2.7 libidn/1.22 libssh2/1.4.0 Accept: */* Cookie: mingle_12_1_2_session_id=SOME_SESSION; login=SOME_LOGIN
In order for the basic authentication to work, you need to turn on Mingle's basic authentication, a simple change and its documented here. I restarted Mingle after this change.curl -k --proxy localhost:8888 'https://YOUR_USER:YOUR_PASS@YOUR_HOST:8080/api/v2/projects/YOUR_PROJECT/cards/execute_mql.xml?mql=SELECT%20number%2C%20name%20WHERE%20%27Release%27%20%3D%20%28Next%20Release%29%20AND%20Type%20%3D%20Feature'
GET /api/v2/projects/YOUR_PROJECT/cards/execute_mql.xml?mql=SELECT%20number%2C%20name%20WHERE%20%27Release%27%20%3D%20%28Next%20Release%29%20AND%20Type%20%3D%20Feature HTTP/1.1 Authorization: Basic --REMOVED-- User-Agent: curl/7.24.0 (i686-pc-cygwin) libcurl/7.24.0 OpenSSL/1.0.1c zlib/1.2.7 libidn/1.22 libssh2/1.4.0 Host: YOUR_HOST:8080 Accept: */*
This will echo the commands in the shell history from 5680 5690. No execution.$ fc -l 5680 5690
This will echo the last 5 commands in the shell history, the same as history 5. No execution.$ fc -l -5 (minus the letter L and minus the number one)
This opens the editor stored in FCEDIT, falling back on EDITOR. If neither env var is set, vi is used.$ fc 5699 (careful!)
Same as above but the editor will contain the commands within the shell history range.$ fc 5680 5690 (careful!)
Same as above but the editor will contain the last 10 commands in the shell history.$ fc -10 -1 (careful!)
Where number matches a shell history number OR command will match the the most recent shell history command that begins with command, then execute the command.$ fc -s number|command (careful!)
Same as above and each instance of match is replaced by replacement, then execute the command.$ fc -s match=replacement number|command (careful!)