snipt

Ctrl+h for KB shortcuts

Bash

File path to images on iPhone hard drive.

1
2
3
4
5
6
7
#I found it here:
/home/Media/DCIM/100APPLE/
/home/Media/DCIM/101APPLE/
#My iphone screen captures where here:
/home/Media/DCIM/999APPLE/
#Another source said it was here:
/private/var/root/Media/DCIM/100APPLE
https://snipt.net/embed/3a3a1bfa076454aefc3845981cfb856c/
/raw/3a3a1bfa076454aefc3845981cfb856c/
3a3a1bfa076454aefc3845981cfb856c
bash
Bash
7
2019-08-20T17:58:03
True
False
False
/api/public/snipt/3895/
file-path-to-images-on-iphone-hard-drive
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1">#I found it here:</span> </span><span id="L-2"><a name="L-2"></a>/home/Media/DCIM/100APPLE/ </span><span id="L-3"><a name="L-3"></a>/home/Media/DCIM/101APPLE/ </span><span id="L-4"><a name="L-4"></a><span class="c1">#My iphone screen captures where here:</span> </span><span id="L-5"><a name="L-5"></a>/home/Media/DCIM/999APPLE/ </span><span id="L-6"><a name="L-6"></a><span class="c1">#Another source said it was here:</span> </span><span id="L-7"><a name="L-7"></a>/private/var/root/Media/DCIM/100APPLE </span></pre></div> </td></tr></table>
camera, file, images, iphone, path

Bash

commandline search server logs for activity in time frame

1
2
3
4
5
# following date/time is day/month/year:hour:min:sec
# as in 02/Feb/2009:23:59:59
# leave off more for a broader range like:
# 02/Feb/2009:0   ...here's mine:   [your structure may vary]
grep -rn "26/Sep/2008:01:" /usr/local/apache/domlogs/*
https://snipt.net/embed/e1d88fde101d30ce6e6fe8f747167b5c/
/raw/e1d88fde101d30ce6e6fe8f747167b5c/
e1d88fde101d30ce6e6fe8f747167b5c
bash
Bash
5
2019-08-20T08:25:53
True
False
False
/api/public/snipt/3179/
commandline-search-server-logs-for-activity-in-time-frame
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># following date/time is day/month/year:hour:min:sec</span> </span><span id="L-2"><a name="L-2"></a><span class="c1"># as in 02/Feb/2009:23:59:59</span> </span><span id="L-3"><a name="L-3"></a><span class="c1"># leave off more for a broader range like:</span> </span><span id="L-4"><a name="L-4"></a><span class="c1"># 02/Feb/2009:0 ...here&#39;s mine: [your structure may vary]</span> </span><span id="L-5"><a name="L-5"></a>grep -rn <span class="s2">&quot;26/Sep/2008:01:&quot;</span> /usr/local/apache/domlogs/* </span></pre></div> </td></tr></table>
commandline, date, grep, linux, logs, range, server, web, webserver

Bash

command line to quickly list processes owned by or called myproc

ps aux | grep myproc
https://snipt.net/embed/9b8341bdbfed7b333a29056100f26b80/
/raw/9b8341bdbfed7b333a29056100f26b80/
9b8341bdbfed7b333a29056100f26b80
bash
Bash
1
2019-08-21T06:50:48
True
False
False
/api/public/snipt/3178/
command-line-to-quickly-list-processes-owned-by-or-called-myproc
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>ps aux <span class="p">|</span> grep myproc </span></pre></div> </td></tr></table>
commandline, identify, linux, list, locate, name, process, processes, unix, user

Bash

command line to clear svn files from a working copy so it's like an export

1
2
3
4
# See what will be deleted first...
ls -R /target/directory/path/ | grep "^/.*:$" | grep \.svn
# Delete the files... use with caution - CANNOT UNDO THIS
ls -R /target/directory/path/ | grep "^/.*:$" | grep \.svn | xargs rm -f
https://snipt.net/embed/a2a28062906b16d451fb773b18adbd09/
/raw/a2a28062906b16d451fb773b18adbd09/
a2a28062906b16d451fb773b18adbd09
bash
Bash
4
2019-08-21T10:53:46
True
False
False
/api/public/snipt/3177/
command-line-to-clear-svn-files-from-a-working-copy-so-its-like-an-export
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># See what will be deleted first...</span> </span><span id="L-2"><a name="L-2"></a>ls -R /target/directory/path/ <span class="p">|</span> grep <span class="s2">&quot;^/.*:</span>$<span class="s2">&quot;</span> <span class="p">|</span> grep <span class="se">\.</span>svn </span><span id="L-3"><a name="L-3"></a><span class="c1"># Delete the files... use with caution - CANNOT UNDO THIS</span> </span><span id="L-4"><a name="L-4"></a>ls -R /target/directory/path/ <span class="p">|</span> grep <span class="s2">&quot;^/.*:</span>$<span class="s2">&quot;</span> <span class="p">|</span> grep <span class="se">\.</span>svn <span class="p">|</span> xargs rm -f </span></pre></div> </td></tr></table>
.svn, clean, delete, files, svn, workingcopy