<?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: David Parry</title>
    <description>The latest articles on DEV Community by David Parry (@suranyami).</description>
    <link>https://dev.to/suranyami</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%2F657359%2F9b62f1e4-27eb-4dd0-af74-c45a64efe624.jpeg</url>
      <title>DEV Community: David Parry</title>
      <link>https://dev.to/suranyami</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/suranyami"/>
    <language>en</language>
    <item>
      <title>New Laptop: The Setup</title>
      <dc:creator>David Parry</dc:creator>
      <pubDate>Mon, 28 Jun 2021 01:46:03 +0000</pubDate>
      <link>https://dev.to/suranyami/new-laptop-the-setup-5466</link>
      <guid>https://dev.to/suranyami/new-laptop-the-setup-5466</guid>
      <description>&lt;h2&gt;
  
  
  Essentials
&lt;/h2&gt;

&lt;p&gt;First, download and install:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://developer.apple.com/download/more/"&gt;XCode Command Line Tools&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;While that's happening, download:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.iterm2.com/downloads.html"&gt;iTerm2&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Optional, useful tool for monitoring CPU, bandwidth, memory, etc.:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://bjango.com/mac/istatmenus/"&gt;iStat Menus&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  iTerm
&lt;/h2&gt;

&lt;p&gt;With iTerm, set triple-click to select wrapped lines:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Preferences / Pointer / Triple-click selects full wrapped lines&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Make more room on-screen by turning this off:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Preferenes / Appearance / Panes / Show per-pane title bar with split panes&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Typeface
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;: my new favourite monospaced typeface:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://larsenwork.com/monoid/"&gt;Monoid&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and set that as the default font in all my editors.&lt;/p&gt;

&lt;p&gt;My old favourite monospaced typeface:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/adobe-fonts/source-code-pro/releases"&gt;Source Code Pro&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Editor
&lt;/h2&gt;

&lt;p&gt;Install Atom Editor:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://atom.io/download/mac"&gt;Atom&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Install some packages using &lt;code&gt;apm&lt;/code&gt;:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apm install Sublime-Style-Column-Selection atom-cli-diff auto-indent busy-signal elixir-pry escape-utils file-icons git-blame git-status html2haml intentions language-csv language-diff language-docker language-dotenv language-elixir language-gitignore language-javascript-jsx language-slim language-vue linter linter-elixir-credo linter-sass-lint linter-ui-default open-in-browser pigments recent-projects ruby-block-converter sort-lines suranyami-light-syntax suranyami-light-ui text-manipulation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  Unix libraries
&lt;/h2&gt;

&lt;p&gt;Install &lt;code&gt;homebrew&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Install unix libs:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew update
brew install gpg2 git openssl tmux imagemagick postgres redis git-flow pgcli direnv zsh ssh-copy-id openssl nmap coreutils automake autoconf openssl libyaml readline libxslt libtool unixodbc fop wxmac
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  SSH
&lt;/h2&gt;

&lt;p&gt;Generate an SSH key:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh-keygen
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Install the handy-dandy &lt;code&gt;ssh-copy-id&lt;/code&gt; utility:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install ssh-copy-id
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  ZSH
&lt;/h2&gt;

&lt;p&gt;Recently, RVM has been complaining about specific versions of ZSH, so now we have HomeBrew installed, install the latest version of ZSH:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install zsh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Set this version as the correct version of ZSH:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo vim /etc/shells
# add the following line into the very end of the file(/etc/shells)
/usr/local/bin/zsh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Change default shell:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chsh -s /usr/local/bin/zsh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Now install oh-my-zsh:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  development directory
&lt;/h2&gt;

&lt;p&gt;Create my local development directory:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mkdir ~/development
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  Ruby and RVM
&lt;/h2&gt;

&lt;p&gt;Install RVM:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;\curl -L https://get.rvm.io | bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Fix any potential SSL certificate nonsense related to RVM:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew uninstall openssl
brew uninstall --force openssl
brew install openssl
rvm osx-ssl-certs update all
brew link openssl --force
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;You can test that it worked by trying the following:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gem install eventmachine -v '1.0.8'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Install a Ruby:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rvm install 2.6
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  Dotfiles
&lt;/h2&gt;

&lt;p&gt;Install my dotfiles:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone git@github.com:suranyami/dotfiles.git
cd dotfiles
bundle
./install.rb
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  Apps
&lt;/h2&gt;

&lt;p&gt;Install SourceTree for enhanced Git visualization:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.sourcetreeapp.com/download/"&gt;SourceTree&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Don't use the Mac App Store version of Slack, download it directly: &lt;a href="https://slack.com/downloads/osx"&gt;Slack&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Java
&lt;/h2&gt;

&lt;p&gt;Go &lt;a href="http://www.oracle.com/technetwork/java/javase/downloads"&gt;here&lt;/a&gt;, click "Accept License Agreement" and download and run the latest Java SDK.&lt;/p&gt;
&lt;h2&gt;
  
  
  Virtual Box
&lt;/h2&gt;

&lt;p&gt;Go &lt;a href="https://www.virtualbox.org/wiki/Downloads"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Other tools
&lt;/h2&gt;

&lt;p&gt;Install &lt;a href="http://nodejs.org/"&gt;Node.js&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Install &lt;code&gt;nmap&lt;/code&gt; so I can do things like find my Raspberry Pi on the network:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install nmap
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  ASDF
&lt;/h2&gt;

&lt;p&gt;As per install instructions for &lt;code&gt;asdf&lt;/code&gt; here: &lt;a href="https://github.com/asdf-vm/asdf"&gt;https://github.com/asdf-vm/asdf&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;git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.6.0
echo -e '\nautoload -Uz compinit &amp;amp;&amp;amp; compinit' &amp;gt;&amp;gt; ~/.zshrc
echo -e '\n. $HOME/.asdf/asdf.sh' &amp;gt;&amp;gt; ~/.zshrc
echo -e '\n. $HOME/.asdf/completions/asdf.bash' &amp;gt;&amp;gt; ~/.zshrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install unix libs ASDF requires to build stuff:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install coreutils automake autoconf openssl libyaml readline libxslt libtool unixodbc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install unix libs needed by Elixir and Erlang:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install fop wxmac
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install Erlang and Elixir:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;asdf plugin-add erlang
asdf plugin-add elixir
asdf install erlang 21.3
asdf install elixir 1.8.1
asdf global erlang 21.3
asdf global elixir 1.8.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  macOS
&lt;/h2&gt;

&lt;p&gt;Disable the caps-lock key in &lt;em&gt;System Preferences -&amp;gt; Keyboard -&amp;gt; Modifier Keys&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Postgres
&lt;/h2&gt;

&lt;p&gt;To make the &lt;code&gt;postgres&lt;/code&gt; role:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;createuser -s postgres
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  Foreman
&lt;/h2&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install foreman
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

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