<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: pineapplemeat</title>
    <description>The latest articles on DEV Community by pineapplemeat (@pineapplemeat).</description>
    <link>https://dev.to/pineapplemeat</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F629088%2F0e7a0ff7-c82c-47de-bbff-3cbbb9b8d303.png</url>
      <title>DEV Community: pineapplemeat</title>
      <link>https://dev.to/pineapplemeat</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pineapplemeat"/>
    <language>en</language>
    <item>
      <title>Find disk usage for top level directories</title>
      <dc:creator>pineapplemeat</dc:creator>
      <pubDate>Tue, 16 Nov 2021 17:43:55 +0000</pubDate>
      <link>https://dev.to/pineapplemeat/find-disk-usage-for-top-level-directories-39oe</link>
      <guid>https://dev.to/pineapplemeat/find-disk-usage-for-top-level-directories-39oe</guid>
      <description>&lt;p&gt;For current directory&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;du -h -d1 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For specific directory&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;du -h -d1 DIR_PATH
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Enable Apple Remote Desktop from commandline</title>
      <dc:creator>pineapplemeat</dc:creator>
      <pubDate>Fri, 04 Jun 2021 20:22:23 +0000</pubDate>
      <link>https://dev.to/pineapplemeat/enable-apple-remote-desktop-from-commandline-4n47</link>
      <guid>https://dev.to/pineapplemeat/enable-apple-remote-desktop-from-commandline-4n47</guid>
      <description>&lt;p&gt;Enable for all users&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -off -restart -agent -privs -all -allowAccessFor -allUsers

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Disable for all users&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://support.apple.com/en-us/HT201710"&gt;https://support.apple.com/en-us/HT201710&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Disable creation of .DS_Store files</title>
      <dc:creator>pineapplemeat</dc:creator>
      <pubDate>Thu, 03 Jun 2021 16:52:26 +0000</pubDate>
      <link>https://dev.to/pineapplemeat/disable-creation-of-dsstore-files-5350</link>
      <guid>https://dev.to/pineapplemeat/disable-creation-of-dsstore-files-5350</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;defaults read com.apple.desktopservices
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remove setting:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;defaults delete com.apple.desktopservices DSDontWriteNetworkStores
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Start new docker container to run duplicacy to back up specific directory</title>
      <dc:creator>pineapplemeat</dc:creator>
      <pubDate>Tue, 01 Jun 2021 01:07:55 +0000</pubDate>
      <link>https://dev.to/pineapplemeat/start-new-docker-container-to-run-duplicacy-to-back-up-specific-directory-25h8</link>
      <guid>https://dev.to/pineapplemeat/start-new-docker-container-to-run-duplicacy-to-back-up-specific-directory-25h8</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CONTAINER_NAME="duplicacy-somefolder"
PATH_TO_SOURCE_DATA="/path/to/data/to/backup"
SNAPSHOT_ID=10001
PATH_TO_BACKUP_STORAGE="/path/to/duplicacy/repository"
DUPLICACY_PASSWORD="password-to-encrypt-backup"

docker run \
  -d \
  --name $CONTAINER_NAME \
  -v $PATH_TO_SOURCE_DATA:/data:ro \
  -v $PATH_TO_BACKUP_STORAGE:/backup-target \
  -e BACKUP_CRON="0 0 * * 0" \
  -e SNAPSHOT_ID=$SNAPSHOT_ID \
  -e STORAGE_URL=/backup-target \
  -e FILTER_PATTERNS=$FILTER_PATTERNS \
  -e DUPLICACY_PASSWORD=$DUPLICACY_PASSWORD \
  azinchen/duplicacy:latest

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Emacs Regex replace list of file paths with just filename</title>
      <dc:creator>pineapplemeat</dc:creator>
      <pubDate>Sat, 22 May 2021 23:41:55 +0000</pubDate>
      <link>https://dev.to/pineapplemeat/emacs-regex-replace-list-of-file-paths-with-just-filename-j78</link>
      <guid>https://dev.to/pineapplemeat/emacs-regex-replace-list-of-file-paths-with-just-filename-j78</guid>
      <description>&lt;p&gt;Paths with leading &lt;code&gt;.&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;%s/\.\/.+\/\(.+\)$/\1/g
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Paths without leading &lt;code&gt;.&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;%s/\/.+\/\(.+\)$/\1/g
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Fix Microsoft Office 0xD000FFFE activation error on Mac</title>
      <dc:creator>pineapplemeat</dc:creator>
      <pubDate>Wed, 19 May 2021 19:47:17 +0000</pubDate>
      <link>https://dev.to/pineapplemeat/fix-microsoft-office-0xd000fffe-activation-error-on-mac-i9d</link>
      <guid>https://dev.to/pineapplemeat/fix-microsoft-office-0xd000fffe-activation-error-on-mac-i9d</guid>
      <description>&lt;ol&gt;
&lt;li&gt;Close all Microsoft Office apps&lt;/li&gt;
&lt;li&gt;Run following:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
# Stop Office 365 Service
killall Office365ServiceV2

cd ~/Library/Group\ Containers/UBF8T346G9.Office

# remove all files that start with 'c' or 'e'
ls -a | perl -n -e 'print if m/^[e|c]\w/' | xargs rm

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From &lt;a href="https://answers.microsoft.com/en-us/msoffice/forum/all/error-code-0xd000fffe/3e8625a2-28ca-4356-b0dc-f57b7a2a58b9"&gt;https://answers.microsoft.com/en-us/msoffice/forum/all/error-code-0xd000fffe/3e8625a2-28ca-4356-b0dc-f57b7a2a58b9&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Change mac screenshots location</title>
      <dc:creator>pineapplemeat</dc:creator>
      <pubDate>Wed, 19 May 2021 16:46:20 +0000</pubDate>
      <link>https://dev.to/pineapplemeat/change-mac-screenshots-location-36fn</link>
      <guid>https://dev.to/pineapplemeat/change-mac-screenshots-location-36fn</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;defaults write com.apple.screencapture location /path/to/folder
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Connect to SMB share on Mac with specific username (with or without password)</title>
      <dc:creator>pineapplemeat</dc:creator>
      <pubDate>Mon, 17 May 2021 18:28:09 +0000</pubDate>
      <link>https://dev.to/pineapplemeat/connect-to-smb-share-on-mac-with-specific-username-with-or-without-password-48ij</link>
      <guid>https://dev.to/pineapplemeat/connect-to-smb-share-on-mac-with-specific-username-with-or-without-password-48ij</guid>
      <description>&lt;p&gt;Specify username and password&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;smb://user:password@server_host
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Specify username and be prompted for password&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;smb://user:*@server_host
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Further Reading&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://www.iana.org/assignments/uri-schemes/prov/smb"&gt;Resource identifiers for SMB scheme&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(last updated 2012-09-23)

Resource Identifier (RI) Scheme name: smb 
Status: provisional

Scheme syntax:
   smb://[&amp;lt;user&amp;gt;@]&amp;lt;host&amp;gt;[:&amp;lt;port&amp;gt;][/[&amp;lt;path&amp;gt;]][?&amp;lt;param1&amp;gt;=&amp;lt;value1&amp;gt;[;&amp;lt;param2&amp;gt;=&amp;lt;value2&amp;gt;]] or 
   smb://[&amp;lt;user&amp;gt;@]&amp;lt;workgroup&amp;gt;[:&amp;lt;port&amp;gt;][/] or s
   mb://[[&amp;lt;domain&amp;gt;;]&amp;lt;username&amp;gt;[:&amp;lt;password&amp;gt;]@]&amp;lt;server&amp;gt;[:&amp;lt;port&amp;gt;][/[&amp;lt;share&amp;gt;[/[&amp;lt;path&amp;gt;]]][?[&amp;lt;param&amp;gt;=&amp;lt;value&amp;gt;[&amp;lt;param2&amp;gt;=&amp;lt;value2&amp;gt;[...]]]]]     
   example: smb://workgroup;user:password@server/share/folder/file.txt

Scheme semantics:
   Accessing SMB/CIFS shares

Encoding considerations:
   Unknown, use with care.

Applications/protocols that use this scheme name:

Interoperability considerations:
   Unknown, use with care.
   May be unsuitable for open use on the public internet.
Security considerations:
   Unknown, use with care.
Contact:
   Registering party: Dave Thaler &amp;lt;dthaler&amp;amp;microsoft.com&amp;gt;
   Scheme creator: IETF Draft
Author/Change controller:
   Either the registering party or someone who is verified to represent
   the scheme creator.  See previous answer.
References:
   http://en.wikipedia.org/wiki/Server_Message_Block, http://www.jarvana.com/jarvana/view/org/samba/jcifs/jcifs/1.2.19/jcifs-1.2.19-javadoc.jar!/jcifs/smb/SmbFile.html, http://tools.ietf.org/html/draft-crhertel-smb-url  


(file created 2012-09-23)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Export photos from Apple Photos app via commandline organized by date</title>
      <dc:creator>pineapplemeat</dc:creator>
      <pubDate>Fri, 14 May 2021 19:07:38 +0000</pubDate>
      <link>https://dev.to/pineapplemeat/export-photos-from-apple-photos-app-via-commandline-organized-by-date-58bd</link>
      <guid>https://dev.to/pineapplemeat/export-photos-from-apple-photos-app-via-commandline-organized-by-date-58bd</guid>
      <description>&lt;p&gt;Use tool &lt;a href="https://github.com/RhetTbull/osxphotos"&gt;https://github.com/RhetTbull/osxphotos&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;gt; osxphotos \
--db /path/to/PhotoLibrary.photoslibrary \
export /path/to/export/destination \
--directory "{created.year}/{created.month}" \
--verbose \
--report /path/to/exported_files_report.csv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Export CSV of GPS Positions using exiftool</title>
      <dc:creator>pineapplemeat</dc:creator>
      <pubDate>Tue, 11 May 2021 16:40:40 +0000</pubDate>
      <link>https://dev.to/pineapplemeat/export-csv-of-gps-positions-using-exiftool-l1e</link>
      <guid>https://dev.to/pineapplemeat/export-csv-of-gps-positions-using-exiftool-l1e</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;exiftool -r folder_with_images -GPSPosition -n -csv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add camera model, create date, Date / Time Original&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;exiftool -r folder_with_images -GPSPosition -createdate -datetimeoriginal -n -csv 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Remap caps lock as ctrl in Lubuntu</title>
      <dc:creator>pineapplemeat</dc:creator>
      <pubDate>Mon, 10 May 2021 20:59:54 +0000</pubDate>
      <link>https://dev.to/pineapplemeat/remap-caps-lock-as-ctrl-in-lubuntu-4kgm</link>
      <guid>https://dev.to/pineapplemeat/remap-caps-lock-as-ctrl-in-lubuntu-4kgm</guid>
      <description>&lt;p&gt;Do this for current session:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;setxkbmap -layout us -option ctrl:nocaps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make it permanent:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo vi /etc/default/keyboard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change &lt;code&gt;XKBOPTIONS&lt;/code&gt; to&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;XKBOPTIONS="ctrl:nocaps"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="http://www.noah.org/wiki/CapsLock_Remap_Howto"&gt;http://www.noah.org/wiki/CapsLock_Remap_Howto&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
