<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet href="/assets/css/feed.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom">

<title>justing.net/til</title>
<subtitle>Today I learned.</subtitle>
<link href="https://www.justing.net/til/til.xml" rel="self"/>
<link href="https://www.justing.net/" rel="alternate"/>
<updated>2026-05-15T10:05:02-07:00</updated>
<id>https://www.justing.net/</id>
<author>
   <name>Justin Garofoli</name>
   <email>justin@garofo.li</email>
</author>
<rights type="text">Copyright © 2026 {"name"=>"Justin Garofoli", "name_short"=>"Justin G.", "email"=>"justin@garofo.li"}. All rights reserved.</rights>

 
<entry>
   <title>Accessing Substack's RSS Feeds</title>
   <link rel="alternate" href="https://www.justing.net/til/2023/12/29/substacks-rss.html"/>
   <updated>2023-12-29T00:00:00-08:00</updated>
   <id>https://www.justing.net/til/2023/12/29/substacks-rss</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;accessing-substacks-rss-feeds&quot;&gt;Accessing Substack’s RSS Feeds&lt;/h2&gt;
&lt;p&gt;Add &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/feed&lt;/code&gt; to the url, and you get a feed for the newsletter.&lt;/p&gt;

&lt;p&gt;Via &lt;a href=&quot;https://interconnected.org/home/2023/12/29/recommendations&quot;&gt;Interconnected&lt;/a&gt;.&lt;/p&gt;

&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Accessing Substack&apos;s RSS Feeds&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2023/12/29/substacks-rss.html&quot;&gt;Email replies are the best replies.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Git Branches</title>
   <link rel="alternate" href="https://www.justing.net/til/2022/12/03/git-branches.html"/>
   <updated>2022-12-03T00:00:00-08:00</updated>
   <id>https://www.justing.net/til/2022/12/03/git-branches</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;dealing-with-git-branches&quot;&gt;Dealing with Git branches&lt;/h2&gt;

&lt;p&gt;Create a branch: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git checkout -b &amp;lt;branch name&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Push it upstream to remote: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git push -u origin &amp;lt;branch name&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If you’re working on multiple branche, keep them up to date with the main branch.
First make sure local is up to date with remote with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git update&lt;/code&gt;.
Then on the feature branch, do &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git merge main&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;When you’re ready to merge the feature into main, first catch it up to main as in the previous paragraph.
Then &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git checkout main&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git merge &amp;lt;feature branch&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Finally, to detele the feature branch if you are done with it, do &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git branch -d &amp;lt;feature branch&amp;gt;&lt;/code&gt;
and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git push origin --delete &amp;lt;feature branch&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Last, check the list of branches with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git branch -a&lt;/code&gt;.&lt;/p&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Git Branches&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2022/12/03/git-branches.html&quot;&gt;You can reply by email.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Ffmpeg Guide</title>
   <link rel="alternate" href="https://www.justing.net/til/2022/12/01/ffmpeg-guide.html"/>
   <updated>2022-12-01T00:00:00-08:00</updated>
   <id>https://www.justing.net/til/2022/12/01/ffmpeg-guide</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;ffmpeg-guide&quot;&gt;FFMPEG guide&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;https://img.ly/blog/ultimate-guide-to-ffmpeg/&quot;&gt;Guide&lt;/a&gt;.&lt;/p&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Ffmpeg Guide&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2022/12/01/ffmpeg-guide.html&quot;&gt;Email replies are the best replies.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Grep With Context</title>
   <link rel="alternate" href="https://www.justing.net/til/2022/07/22/grep-with-context.html"/>
   <updated>2022-07-22T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2022/07/22/grep-with-context</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;grep-and-show-context-in-file&quot;&gt;Grep and show context in file&lt;/h2&gt;

&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;grep &quot;[search]&quot; -A 5 -B 5 [file]&lt;/code&gt;&lt;/p&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Grep With Context&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2022/07/22/grep-with-context.html&quot;&gt;Comments by email are welcome.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Ffmpeg Still To Video</title>
   <link rel="alternate" href="https://www.justing.net/til/2021/12/01/ffmpeg-still-to-video.html"/>
   <updated>2021-12-01T00:00:00-08:00</updated>
   <id>https://www.justing.net/til/2021/12/01/ffmpeg-still-to-video</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;make-videos-from-a-still-image-and-audio-file-for-youtube-with-ffmpeg&quot;&gt;Make videos from a still image and audio file for youtube with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ffmpeg&lt;/code&gt;&lt;/h2&gt;

&lt;p&gt;Get ffmpeg for mac &lt;a href=&quot;https://ffmpeg.org/download.html&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;ffmpeg -loop 1 -i image.jpeg -i audio.wav -c:v libx264 \
   -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p \
   -shortest out.mp4
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Ffmpeg Still To Video&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2021/12/01/ffmpeg-still-to-video.html&quot;&gt;Email replies are the best replies.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Vim Rc</title>
   <link rel="alternate" href="https://www.justing.net/til/2021/09/06/vim-rc.html"/>
   <updated>2021-09-06T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2021/09/06/vim-rc</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;vimrc-file&quot;&gt;Vimrc file&lt;/h2&gt;

&lt;p&gt;Reload the vimrc with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;:so $MYVIMRC&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Sourced from various places.&lt;/p&gt;

&lt;p&gt;You’ll need to do the first steps of the guide linked in [[setup.md]], namely:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;Paste the vimrc below into &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.vimrc&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;:PluginInstall&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;Follow YouCompleteMe &lt;a href=&quot;https://github.com/ycm-core/YouCompleteMe#installation&quot;&gt;install instructions&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&quot;language-vim highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;nocompatible&lt;/span&gt;              &quot; required
&lt;span class=&quot;k&quot;&gt;filetype&lt;/span&gt; off                  &quot; required

&lt;span class=&quot;c&quot;&gt;&quot; Install with :PluginInstall&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;&quot; Uninstall with :PluginClean after commenting out/deleting the line&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;&quot; set the runtime path to include Vundle and initialize&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;rtp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;+=~&lt;/span&gt;&lt;span class=&quot;sr&quot;&gt;/.vim/&lt;/span&gt;bundle/Vundle&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;vim&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;call&lt;/span&gt; vundle#begin&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;&quot; alternatively, pass a path where Vundle should install plugins&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;&quot;call vundle#begin(&apos;~/some/path/here&apos;)&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;&quot; let Vundle manage Vundle, required&lt;/span&gt;
Plugin &lt;span class=&quot;s1&quot;&gt;&apos;gmarik/Vundle.vim&apos;&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;&quot; add all your plugins here (note older versions of Vundle&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;&quot; used Bundle instead of Plugin)&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;&quot; ...&lt;/span&gt;
Bundle &lt;span class=&quot;s1&quot;&gt;&apos;Valloric/YouCompleteMe&apos;&lt;/span&gt;
Plugin &lt;span class=&quot;s1&quot;&gt;&apos;tmhedberg/SimpylFold&apos;&lt;/span&gt;
Plugin &lt;span class=&quot;s1&quot;&gt;&apos;vim-scripts/indentpython.vim&apos;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;&quot; Plugin &apos;vim-syntastic/syntastic&apos;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;&quot; Plugin &apos;nvie/vim-flake8&apos;&lt;/span&gt;
Plugin &lt;span class=&quot;s1&quot;&gt;&apos;jnurmine/Zenburn&apos;&lt;/span&gt;
Plugin &lt;span class=&quot;s1&quot;&gt;&apos;scrooloose/nerdtree&apos;&lt;/span&gt;
Plugin &lt;span class=&quot;s1&quot;&gt;&apos;kien/ctrlp.vim&apos;&lt;/span&gt;
Plugin &lt;span class=&quot;s1&quot;&gt;&apos;tpope/vim-fugitive&apos;&lt;/span&gt;
Plugin &lt;span class=&quot;s1&quot;&gt;&apos;Lokaltog/powerline&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;rtp&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;powerline/bindings/vim/&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
Plugin &lt;span class=&quot;s1&quot;&gt;&apos;dense-analysis/ale&apos;&lt;/span&gt;
Plugin &lt;span class=&quot;s1&quot;&gt;&apos;vim-airline/vim-airline&apos;&lt;/span&gt;
Plugin &lt;span class=&quot;s1&quot;&gt;&apos;vim-airline/vim-airline-themes&apos;&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;&quot; All of your Plugins must be added before the following line&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;call&lt;/span&gt; vundle#end&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;            &quot; required
&lt;span class=&quot;k&quot;&gt;filetype&lt;/span&gt; plugin &lt;span class=&quot;nb&quot;&gt;indent&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;on&lt;/span&gt;    &quot; required

&lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;splitbelow&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;splitright&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;&quot;split navigations&lt;/span&gt;
nnoremap &lt;span class=&quot;p&quot;&gt;&amp;lt;&lt;/span&gt;C&lt;span class=&quot;p&quot;&gt;-&lt;/span&gt;J&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;&amp;lt;&lt;/span&gt;C&lt;span class=&quot;p&quot;&gt;-&lt;/span&gt;W&lt;span class=&quot;p&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;C&lt;span class=&quot;p&quot;&gt;-&lt;/span&gt;J&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt;
nnoremap &lt;span class=&quot;p&quot;&gt;&amp;lt;&lt;/span&gt;C&lt;span class=&quot;p&quot;&gt;-&lt;/span&gt;K&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;&amp;lt;&lt;/span&gt;C&lt;span class=&quot;p&quot;&gt;-&lt;/span&gt;W&lt;span class=&quot;p&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;C&lt;span class=&quot;p&quot;&gt;-&lt;/span&gt;K&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt;
nnoremap &lt;span class=&quot;p&quot;&gt;&amp;lt;&lt;/span&gt;C&lt;span class=&quot;p&quot;&gt;-&lt;/span&gt;L&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;&amp;lt;&lt;/span&gt;C&lt;span class=&quot;p&quot;&gt;-&lt;/span&gt;W&lt;span class=&quot;p&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;C&lt;span class=&quot;p&quot;&gt;-&lt;/span&gt;L&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt;
nnoremap &lt;span class=&quot;p&quot;&gt;&amp;lt;&lt;/span&gt;C&lt;span class=&quot;p&quot;&gt;-&lt;/span&gt;H&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;&amp;lt;&lt;/span&gt;C&lt;span class=&quot;p&quot;&gt;-&lt;/span&gt;W&lt;span class=&quot;p&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;C&lt;span class=&quot;p&quot;&gt;-&lt;/span&gt;H&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;&quot; Enable folding&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;foldmethod&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;indent&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;foldlevel&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;99&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;&quot; Enable folding with the spacebar&lt;/span&gt;
nnoremap &lt;span class=&quot;p&quot;&gt;&amp;lt;&lt;/span&gt;space&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt; za


&lt;span class=&quot;k&quot;&gt;au&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;BufNewFile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;BufRead&lt;/span&gt; *&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;py&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;    \&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;tabstop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;4&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;|&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;    \&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;softtabstop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;4&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;|&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;    \&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;shiftwidth&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;4&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;|&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;    \&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;textwidth&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;79&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;|&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;    \&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;expandtab&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;|&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;    \&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;autoindent&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;|&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;    \&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;fileformat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;unix


&lt;span class=&quot;c&quot;&gt;&quot; au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;encoding&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;utf&lt;span class=&quot;m&quot;&gt;-8&lt;/span&gt;


&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ycm_autoclose_preview_window_after_completion&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;map&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;&amp;lt;&lt;/span&gt;leader&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;g&lt;/span&gt;  &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;YcmCompleter GoToDefinitionElseDeclaration&lt;span class=&quot;p&quot;&gt;&amp;lt;&lt;/span&gt;CR&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ycm_python_interpreter_path&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;/usr/bin/python3&apos;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ycm_python_binary_path&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;/usr/bin/python3&apos;&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;&quot; let g:syntastic_python_python_exec = &apos;python&apos;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;&quot; let g:syntastic_python_checkers = [&apos;pyflakes&apos;]&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; python_highlight_all&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;syntax&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;on&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;&quot; default comment color is too dark.&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;hi&lt;/span&gt; Comment  guifg&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mh&quot;&gt;#80a0ff&lt;/span&gt; ctermfg&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;darkred

&lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;nu&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;clipboard&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;unnamed

&lt;span class=&quot;c&quot;&gt;&quot; free the cursor&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;ve&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;all&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;&quot; but show a good text width&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;colorcolumn&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;80&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ale_fixers&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;            \&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;*&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;remove_trailing_lines&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;trim_whitespace&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;            \&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;python&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;yapf&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;remove_trailing_lines&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;trim_whitespace&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;            \&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ale_linters&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;            \&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;python&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;pylint&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;            \&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
nmap &lt;span class=&quot;p&quot;&gt;&amp;lt;&lt;/span&gt;F10&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;ALEFix&lt;span class=&quot;p&quot;&gt;&amp;lt;&lt;/span&gt;CR&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ale_fix_on_save&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ale_python_pylint_executable&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;pylint3&apos;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ale_sign_column_always&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:airline&lt;/span&gt;#extensions#ale#enabled &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ale_echo_msg_error_str&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;E&apos;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ale_echo_msg_warning_str&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;W&apos;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ale_echo_msg_format&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;[%linter%] %s [%severity%] &quot;pylint: disable=%code%&quot;&apos;&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;hlsearch&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;backspace&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;indent&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;eol&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;start
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Vim Rc&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2021/09/06/vim-rc.html&quot;&gt;Email replies are the best replies.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Tmux Conf</title>
   <link rel="alternate" href="https://www.justing.net/til/2021/09/06/tmux-conf.html"/>
   <updated>2021-09-06T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2021/09/06/tmux-conf</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;tmuxconf&quot;&gt;Tmux.Conf&lt;/h2&gt;

&lt;p&gt;Some good references about setting this up in a decent way. I won’t copy my rcfile here yet,
but I’m basically using &lt;a href=&quot;https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/&quot;&gt;this one&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You can reload your conf file with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ctrl-b&lt;/code&gt; and then &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;:source-file ~/.tmux.conf&lt;/code&gt;, or in the shell &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;tmux source-file ~/.tmux.conf&lt;/code&gt;.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-tmux&quot;&gt;# enable powerline
run-shell &apos;powerline-config tmux setup&apos;

# vi keybindings
set-window-option -g mode-keys vi

# Set 256 color terminal
set -g default-terminal &quot;screen-256color&quot;

# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind &apos;&quot;&apos;
unbind %

# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf

# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

# Enable mouse mode (tmux 2.1 and above)
set -g mouse on

# don&apos;t rename windows automatically
set-option -g allow-rename off

######################
### DESIGN CHANGES ###
######################

# loud or quiet?
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
setw -g monitor-activity off
set -g bell-action none

#  modes
setw -g clock-mode-colour colour5
setw -g mode-style &apos;fg=colour1 bg=colour18 bold&apos;

# panes
set -g pane-border-style &apos;fg=colour19 bg=colour0&apos;
set -g pane-active-border-style &apos;bg=colour0 fg=colour9&apos;

# statusbar
set -g status-position bottom
set -g status-justify left
set -g status-style &apos;bg=colour18 fg=colour137 dim&apos;
set -g status-left &apos;&apos;
set -g status-right &apos;#[fg=colour233,bg=colour19] %d/%m #[fg=colour233,bg=colour8] %H:%M:%S &apos;
set -g status-right-length 50
set -g status-left-length 20

setw -g window-status-current-style &apos;fg=colour1 bg=colour19 bold&apos;
setw -g window-status-current-format &apos; #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F &apos;

setw -g window-status-style &apos;fg=colour9 bg=colour18&apos;
setw -g window-status-format &apos; #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F &apos;

setw -g window-status-bell-style &apos;fg=colour255 bg=colour1 bold&apos;

# messages
set -g message-style &apos;fg=colour232 bg=colour16 bold&apos;
&lt;/code&gt;&lt;/pre&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Tmux Conf&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2021/09/06/tmux-conf.html&quot;&gt;Comments by email are welcome.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Launchctl</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/10/14/launchctl.html"/>
   <updated>2020-10-14T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/10/14/launchctl</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;a-few-things-about-launchctl&quot;&gt;A few things about launchctl&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;You can use crontab again, so consider that.&lt;/li&gt;
  &lt;li&gt;You gotta enable &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bash&lt;/code&gt; or whatever to have access to the file system like &lt;a href=&quot;https://apple.stackexchange.com/a/384314&quot;&gt;this&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;Remember that files for this live in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/Library/LaunchAgents&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Launchctl&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/10/14/launchctl.html&quot;&gt;Replies by email are appreciated.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Pluck</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/10/10/pluck.html"/>
   <updated>2020-10-10T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/10/10/pluck</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;how-to-make-a-pluck-sound&quot;&gt;How to make a pluck sound&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;Short attack, 100-300 ms linear slope equivalent. Apply this to both filter and amp envelopes.&lt;/li&gt;
  &lt;li&gt;Low pass filter with some, or a lot of, resonance.&lt;/li&gt;
  &lt;li&gt;Use a sawtooth oscillator.&lt;/li&gt;
  &lt;li&gt;For more interest, have a couple of slightly out of tune (a couple of cents) sawtooths.&lt;/li&gt;
&lt;/ol&gt;

&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Pluck&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/10/10/pluck.html&quot;&gt;You can reply by email.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Search</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/09/01/search.html"/>
   <updated>2020-09-01T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/09/01/search</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;searching-for-quality&quot;&gt;Searching for quality&lt;/h2&gt;

&lt;p&gt;See &lt;a href=&quot;https://www.alec.fyi/dorking-how-to-find-anything-on-the-internet.html&quot;&gt;dorking&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Basically, use the operators: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;, +, (), |&lt;/code&gt; etc.&lt;/p&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Search&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/09/01/search.html&quot;&gt;Replies by email are appreciated.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Cuda Install</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/09/01/cuda-install.html"/>
   <updated>2020-09-01T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/09/01/cuda-install</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;installing-cuda&quot;&gt;Installing CUDA&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Install Ubuntu (I used 20.04 LTS).&lt;/li&gt;
  &lt;li&gt;Follow &lt;a href=&quot;https://askubuntu.com/a/1288405&quot;&gt;this&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Cuda Install&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/09/01/cuda-install.html&quot;&gt;Replies by email are appreciated.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Jekyll Jemoji</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/08/24/jekyll-jemoji.html"/>
   <updated>2020-08-24T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/08/24/jekyll-jemoji</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;jemoji&quot;&gt;Jemoji&lt;/h2&gt;

&lt;p&gt;Include Emoji in jekyll projects with the jemoji.  See &lt;a href=&quot;https://github.com/ikatyang/emoji-cheat-sheet/blob/master/README.md#mail&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Jekyll Jemoji&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/08/24/jekyll-jemoji.html&quot;&gt;Replies by email are appreciated.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Exiftool</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/08/23/exiftool.html"/>
   <updated>2020-08-23T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/08/23/exiftool</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;update-exif-information-with-exiftool&quot;&gt;Update exif information with Exiftool&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;https://exiftool.org/&quot;&gt;Exiftool&lt;/a&gt; is pretty useful.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;exiftool -Rights=&apos;New Owner Info&apos; image.png
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Some additional bits (2023-01-13) &lt;a href=&quot;https://news.ycombinator.com/item?id=34375037&quot;&gt;from here&lt;/a&gt;:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# List all metadata of a file (exif)
exiftool -s screenshot.png

# Remove GPS coords in a file
exiftool -gps:all= filename.jpg

# Clear out all metadata
exiftool -all= filename.jpg somesong.mp3
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Some alternatives: https://imageoptim.com/mac and https://exiv2.org.&lt;/p&gt;

&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Exiftool&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/08/23/exiftool.html&quot;&gt;Replies by email are appreciated.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Shell Readlines Keys</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/08/07/shell-readlines-keys.html"/>
   <updated>2020-08-07T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/08/07/shell-readlines-keys</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;readline-keys&quot;&gt;Readline keys&lt;/h2&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;    &lt;span class=&quot;c&quot;&gt;# MOTD&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;function &lt;/span&gt;echo_color&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
      &lt;span class=&quot;nb&quot;&gt;local &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$1&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
      &lt;span class=&quot;nb&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$2&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;33[0m&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
    &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
    echo_color &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;33[0;90m&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;c-f  Move forward&quot;&lt;/span&gt;
    echo_color &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;33[0;90m&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;c-b  Move backward&quot;&lt;/span&gt;
    echo_color &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;33[0;90m&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;c-p  Move up&quot;&lt;/span&gt;
    echo_color &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;33[0;90m&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;c-n  Move down&quot;&lt;/span&gt;
    echo_color &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;33[0;90m&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;c-a  Jump to beginning of line&quot;&lt;/span&gt;
    echo_color &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;33[0;90m&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;c-e  Jump to end of line&quot;&lt;/span&gt;
    echo_color &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;33[0;90m&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;c-d  Delete forward&quot;&lt;/span&gt;
    echo_color &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;33[0;90m&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;c-h  Delete backward&quot;&lt;/span&gt;
    echo_color &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;33[0;90m&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;c-k  Delete forward to end of line&quot;&lt;/span&gt;
    echo_color &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;33[0;90m&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;c-u  Delete entire line&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Shell Readlines Keys&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/08/07/shell-readlines-keys.html&quot;&gt;You can reply by email.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Raspi Bridge Wifi</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/08/05/raspi-bridge-wifi.html"/>
   <updated>2020-08-05T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/08/05/raspi-bridge-wifi</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;bridge-the-wifi-connection-to-the-ethernet-port&quot;&gt;Bridge the WiFi connection to the ethernet port&lt;/h2&gt;

&lt;p&gt;This one &lt;a href=&quot;https://www.raspberrypi.org/forums/viewtopic.php?t=223295&quot;&gt;worked&lt;/a&gt;, with the addition of&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
sudo iptables -A FORWARD -i wlan0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i eth0 -o wlan0 -j ACCEPT

sudo sh -c &quot;iptables-save &amp;gt; /etc/iptables.ipv4.nat&quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;From &lt;a href=&quot;https://tipsmake.com/how-to-turn-a-raspberry-pi-into-a-wifi-bridge&quot;&gt;here&lt;/a&gt;&lt;/p&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Raspi Bridge Wifi&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/08/05/raspi-bridge-wifi.html&quot;&gt;You can reply by email.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Brew Path</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/07/29/brew-path.html"/>
   <updated>2020-07-29T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/07/29/brew-path</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;brew-path&quot;&gt;Brew Path&lt;/h2&gt;

&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;export PATH=/usr/local/bin:$PATH&lt;/code&gt; in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.zshrc&lt;/code&gt;.&lt;/p&gt;

&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Brew Path&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/07/29/brew-path.html&quot;&gt;You can reply by email.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Vim Spell</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/07/28/vim-spell.html"/>
   <updated>2020-07-28T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/07/28/vim-spell</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;spell-check&quot;&gt;Spell check&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;:set spelllang=en&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;:set spellfile=$HOME/.vim/spell/en.utf-8.add&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;:setlocal spell&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Some commands:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;]s&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;[s&lt;/code&gt; next and prev bad spelling&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;zg&lt;/code&gt; add to the good file&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;z=&lt;/code&gt; suggest good spellings&lt;/li&gt;
&lt;/ul&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Vim Spell&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/07/28/vim-spell.html&quot;&gt;You can reply by email.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Python Matplotlib Style</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/07/28/python-matplotlib-style.html"/>
   <updated>2020-07-28T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/07/28/python-matplotlib-style</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;matplotlib-default-style&quot;&gt;Matplotlib default style&lt;/h2&gt;

&lt;p&gt;Use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;plt.style.use(&apos;seaborn-poster&apos;)&lt;/code&gt; for a big format that is easy for others to see. It’s a one-liner!&lt;/p&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Python Matplotlib Style&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/07/28/python-matplotlib-style.html&quot;&gt;Comments by email are welcome.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Python Coverage</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/07/02/python-coverage.html"/>
   <updated>2020-07-02T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/07/02/python-coverage</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;coverage&quot;&gt;Coverage&lt;/h2&gt;

&lt;p&gt;Install with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pip install coverage&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Do &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;coverage run --source=. -m unittest&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;coverage report&lt;/code&gt;.&lt;/p&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Python Coverage&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/07/02/python-coverage.html&quot;&gt;Email replies are the best replies.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Python Update</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/07/01/python-update.html"/>
   <updated>2020-07-01T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/07/01/python-update</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;update-packages&quot;&gt;Update packages&lt;/h2&gt;

&lt;p&gt;Use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pip-review --local --interactive&lt;/code&gt;. I think?&lt;/p&gt;

&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Python Update&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/07/01/python-update.html&quot;&gt;Email replies are the best replies.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Scientist</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/07/01/scientist.html"/>
   <updated>2020-07-01T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/07/01/scientist</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;on-being-a-scientist&quot;&gt;On being a scientist&lt;/h2&gt;

&lt;p&gt;I found a lot of generic type knowledge to not be the sort of thing that was distributed to young scientists from the professors that I learned from.
I have found some books that seems to discuss the types of things that I wish I would have known, sometimes as much as 20 years ago.
Well, at least I found the books.
Hopefully others can benefit from it too.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;“Letters to a young scientist,” by E.O. Wilson&lt;/li&gt;
  &lt;li&gt;“The art of doing science and engineering: learning to learn,” by Richard Hamming (not finished yet, but the beginning is on point for this topic).&lt;/li&gt;
&lt;/ol&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Scientist&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/07/01/scientist.html&quot;&gt;Replies by email are appreciated.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Learning</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/07/01/learning.html"/>
   <updated>2020-07-01T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/07/01/learning</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;books-about-learning&quot;&gt;Books about learning&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;“The 5 elements of effective thinking,” by Burger and Starbird&lt;/li&gt;
  &lt;li&gt;“How to solve it,” by G. Polya&lt;/li&gt;
  &lt;li&gt;“Mathematics and plausible reasoning,” vols 1 and 2, by G. Polya&lt;/li&gt;
  &lt;li&gt;“The art of insight in science and engineering,” by Sanjay Mahajan&lt;/li&gt;
  &lt;li&gt;“Streetfighting mathematics,” by Sanjay Mahajan&lt;/li&gt;
&lt;/ol&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Learning&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/07/01/learning.html&quot;&gt;Email replies are the best replies.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Python Cheatsheet</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/06/30/python-cheatsheet.html"/>
   <updated>2020-06-30T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/06/30/python-cheatsheet</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;python-cheat-sheets&quot;&gt;Python Cheat Sheets&lt;/h2&gt;

&lt;p&gt;Some good ones:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;a href=&quot;https://gto76.github.io/python-cheatsheet/&quot;&gt;GTO76 Comprehensive Python Cheatsheet&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Python Cheatsheet&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/06/30/python-cheatsheet.html&quot;&gt;You can reply by email.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Git Diff Staged</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/06/20/git-diff-staged.html"/>
   <updated>2020-06-20T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/06/20/git-diff-staged</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;git-diff&quot;&gt;Git Diff&lt;/h2&gt;

&lt;p&gt;Did you know that after you stage a commit, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git diff&lt;/code&gt; won’t show the difference.
The solution is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git diff --staged&lt;/code&gt; obviously.&lt;/p&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Git Diff Staged&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/06/20/git-diff-staged.html&quot;&gt;Email replies are the best replies.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Python Requirements</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/06/20/python-requirements.html"/>
   <updated>2020-06-20T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/06/20/python-requirements</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;requirementstxt&quot;&gt;Requirements.txt&lt;/h2&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;pip3 freeze &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; requirements.txt
pip3 &lt;span class=&quot;nb&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-r&lt;/span&gt; requirements.txt
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Python Requirements&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/06/20/python-requirements.html&quot;&gt;Email replies are the best replies.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Python Developing</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/06/20/python-developing.html"/>
   <updated>2020-06-20T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/06/20/python-developing</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;developing-python&quot;&gt;Developing Python&lt;/h2&gt;

&lt;p&gt;Mostly references for developing python.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Style: &lt;a href=&quot;http://google.github.io/styleguide/pyguide.html&quot;&gt;Google’s&lt;/a&gt;, &lt;a href=&quot;https://pep8.org/&quot;&gt;PEP8&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://rszalski.github.io/magicmethods/&quot;&gt;Magic Methods&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Some less well vetted guides:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://docs.python-guide.org&quot;&gt;Hitchhiker’s&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/dabeaz-course/practical-python/blob/main/Notes/Contents.md&quot;&gt;Practical programming&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Suggestions:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Make it easy to do it right: integrate linters and fixers with your editor.&lt;/li&gt;
  &lt;li&gt;Write and use tests.&lt;/li&gt;
  &lt;li&gt;Practice good design, as discussed in Code Complete.&lt;/li&gt;
&lt;/ol&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Python Developing&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/06/20/python-developing.html&quot;&gt;You can reply by email.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Vim Vundle</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/06/19/vim-vundle.html"/>
   <updated>2020-06-19T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/06/19/vim-vundle</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;using-vundle&quot;&gt;Using Vundle&lt;/h2&gt;

&lt;blockquote&gt;
  &lt;p&gt;:PluginInstall&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;and&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;:PluginClean&lt;/p&gt;
&lt;/blockquote&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Vim Vundle&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/06/19/vim-vundle.html&quot;&gt;Email replies are the best replies.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Tmux Colors</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/06/19/tmux-colors.html"/>
   <updated>2020-06-19T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/06/19/tmux-colors</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;tmux-256-colors&quot;&gt;TMUX 256 colors&lt;/h2&gt;

&lt;pre&gt;&lt;code class=&quot;language-tmux&quot;&gt;# Set 256 colors.
set -g default-terminal &quot;screen-256color&quot;
&lt;/code&gt;&lt;/pre&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Tmux Colors&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/06/19/tmux-colors.html&quot;&gt;Replies by email are appreciated.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Find</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/06/19/find.html"/>
   <updated>2020-06-19T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/06/19/find</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;find&quot;&gt;Find&lt;/h2&gt;

&lt;p&gt;Find is always a pita. I’ll collect some useful ones here.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;find . -name &apos;*.pyc&apos; -delete
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Find&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/06/19/find.html&quot;&gt;Email replies are the best replies.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Firacode</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/06/19/firacode.html"/>
   <updated>2020-06-19T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/06/19/firacode</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;fira-code&quot;&gt;Fira Code&lt;/h2&gt;

&lt;p&gt;I’ve found &lt;a href=&quot;https://github.com/tonsky/FiraCode&quot;&gt;fira&lt;/a&gt; to be a good monospace font.&lt;/p&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Firacode&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/06/19/firacode.html&quot;&gt;Email replies are the best replies.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Vim Ale</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/06/18/vim-ale.html"/>
   <updated>2020-06-18T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/06/18/vim-ale</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;using-ale&quot;&gt;Using ALE&lt;/h2&gt;

&lt;p&gt;I found ALE to be easier to configure than Syntastic.  In particular:&lt;/p&gt;

&lt;div class=&quot;language-vim highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ale_fixers&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;            \&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;*&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;remove_trailing_lines&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;trim_whitespace&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;            \&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;python&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;yapf&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;remove_trailing_lines&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;trim_whitespace&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;            \&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ale_linters&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;            \&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;python&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;pylint&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;            \&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
nmap &lt;span class=&quot;p&quot;&gt;&amp;lt;&lt;/span&gt;F10&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;ALEFix&lt;span class=&quot;p&quot;&gt;&amp;lt;&lt;/span&gt;CR&lt;span class=&quot;p&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ale_fix_on_save&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ale_sign_column_always&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:airline&lt;/span&gt;#extensions#ale#enabled &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ale_echo_msg_error_str&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;E&apos;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ale_echo_msg_warning_str&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;W&apos;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ale_echo_msg_format&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;[%linter%] %s [%severity%]&apos;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ale_python_pylint_executable&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;pylint3&apos;&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;&quot; Some YouCompleteMe settings.&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ycm_python_interpreter_path&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;/usr/bin/python3&apos;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;g:ycm_python_binary_path&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;/usr/bin/python3&apos;&lt;/span&gt;

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

&lt;p&gt;Remember to also add the airline plugins&lt;/p&gt;

&lt;div class=&quot;language-vim highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Plugin &lt;span class=&quot;s1&quot;&gt;&apos;vim-airline/vim-airline&apos;&lt;/span&gt;
Plugin &lt;span class=&quot;s1&quot;&gt;&apos;vim-airline/vim-airline-themes&apos;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Vim Ale&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/06/18/vim-ale.html&quot;&gt;Replies by email are appreciated.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Rsync Only Some Filetypes</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/06/14/rsync-only-some-filetypes.html"/>
   <updated>2020-06-14T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/06/14/rsync-only-some-filetypes</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;only-sync-some-types-of-files&quot;&gt;Only sync some types of files&lt;/h2&gt;

&lt;p&gt;I’ll circle back when I figure out how to not sync directories that are empty.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;rsync &lt;span class=&quot;nt&quot;&gt;-avz&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--include&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;*/&quot;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--include&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;*.png&quot;&lt;/span&gt;  &lt;span class=&quot;nt&quot;&gt;--exclude&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;*&quot;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt; /dest/dir
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Rsync Only Some Filetypes&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/06/14/rsync-only-some-filetypes.html&quot;&gt;Comments by email are welcome.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Raspi Hwrng</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/06/14/raspi-hwrng.html"/>
   <updated>2020-06-14T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/06/14/raspi-hwrng</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;accessing-the-hwrng&quot;&gt;Accessing the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;hwrng&lt;/code&gt;&lt;/h2&gt;

&lt;p&gt;Modern rasbperrypi’s have &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/dev/hwrng&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rng-tools&lt;/code&gt; already installed.
&lt;a href=&quot;https://scruss.com/blog/2013/06/07/well-that-was-unexpected-the-raspberry-pis-hardware-random-number-generator/&quot;&gt;This&lt;/a&gt;
is a pretty old post, but it has the salient details for making sure it is enabled and checking it.
Also the bit about editing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/etc/default/rng-tools&lt;/code&gt; to enable the device.&lt;/p&gt;

&lt;p&gt;&lt;del&gt;The device is only readable by root by default (probably can change this with chown,
but I haven’t looked).&lt;/del&gt; Update: &lt;a href=&quot;https://sites.google.com/site/astudyofentropy/project-definition/raspberry-pi-internal-hardware-random-number-generator&quot;&gt;this&lt;/a&gt; page has the details for making &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/dev/hwrng&lt;/code&gt; readable for users.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;r&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;None&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;with&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;open&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;sh&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;/dev/hwrng&lt;/span&gt;&lt;span class=&quot;sh&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;sh&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;rb&lt;/span&gt;&lt;span class=&quot;sh&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;r&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;read&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;nf&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;from_bytes&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;byteorder&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;sh&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;big&lt;/span&gt;&lt;span class=&quot;sh&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Raspi Hwrng&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/06/14/raspi-hwrng.html&quot;&gt;Comments by email are welcome.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Python Unittest</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/06/14/python-unittest.html"/>
   <updated>2020-06-14T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/06/14/python-unittest</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;using-unittest-in-python3&quot;&gt;Using &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;unittest&lt;/code&gt; in python3&lt;/h2&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# test/test_module.py
&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;unittest&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;library&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;module&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;TestModule&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unittest&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;TestCase&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;test_function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;assertTrue&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;module&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Call it from the shell with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;$&amp;gt;python3 -m unittest&lt;/code&gt;.
Organizing test into a tree does require the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;__init__.py&lt;/code&gt; file in each subdir.&lt;/p&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Python Unittest&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/06/14/python-unittest.html&quot;&gt;Email replies are the best replies.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Zless</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/05/26/zless.html"/>
   <updated>2020-05-26T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/05/26/zless</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;zless-unzips-files-into-less&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;zless&lt;/code&gt; unzips files into less&lt;/h2&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Zless&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/05/26/zless.html&quot;&gt;Email replies are the best replies.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Vim Setup</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/05/26/vim-setup.html"/>
   <updated>2020-05-26T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/05/26/vim-setup</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;easy-setup-of-vim&quot;&gt;Easy setup of Vim&lt;/h2&gt;

&lt;p&gt;Just do &lt;a href=&quot;https://realpython.com/vim-and-python-a-match-made-in-heaven/#git-integration&quot;&gt;this&lt;/a&gt;.
And fix for python3 with &lt;a href=&quot;https://stackoverflow.com/a/51522537&quot;&gt;this&lt;/a&gt;.&lt;/p&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Vim Setup&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/05/26/vim-setup.html&quot;&gt;Replies by email are appreciated.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Shell Command Comments Hack</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/05/17/shell-command-comments-hack.html"/>
   <updated>2020-05-17T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/05/17/shell-command-comments-hack</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;leave-notes-to-self-in-shell-comments&quot;&gt;Leave Notes To Self in Shell Comments&lt;/h2&gt;

&lt;p&gt;You can leave notes to yourself in comments in shell commands.
This is helpful for understanding what is going on later. And maybe for searching your history.&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;cat &lt;/span&gt;example.txt &lt;span class=&quot;c&quot;&gt;# THIS THING IS GOOD&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Shell Command Comments Hack&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/05/17/shell-command-comments-hack.html&quot;&gt;Replies by email are appreciated.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Emoji Input</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/04/21/emoji-input.html"/>
   <updated>2020-04-21T00:00:00-07:00</updated>
   <id>https://www.justing.net/til/2020/04/21/emoji-input</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;emoji-input&quot;&gt;Emoji Input&lt;/h2&gt;

&lt;p&gt;Get to the emoji entry tool with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ctrl-cmd-space&lt;/code&gt;.
See &lt;a href=&quot;https://support.apple.com/guide/mac-help/use-emoji-and-symbols-on-mac-mchlp1560/mac&quot;&gt;here&lt;/a&gt; for reference.&lt;/p&gt;


&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Emoji Input&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/04/21/emoji-input.html&quot;&gt;Email replies are the best replies.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

 
<entry>
   <title>Apache2 User Dir</title>
   <link rel="alternate" href="https://www.justing.net/til/2020/01/01/apache2-user-dir.html"/>
   <updated>2020-01-01T00:00:00-08:00</updated>
   <id>https://www.justing.net/til/2020/01/01/apache2-user-dir</id>
   <summary>No description.</summary>
   <content type="html">&lt;h2 id=&quot;apache2-user_dir&quot;&gt;Apache2 user_dir&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sudo ln -s /etc/apache2/mods-available/userdir.conf /etc/apache2/mods-enables/
sudo ln -s /etc/apache2/mods-available/userdir.load /etc/apache2/mods-enables/
sudo systemctrl restart apache2
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;also &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;mkdir ~/public_html&lt;/code&gt;.&lt;/p&gt;

&lt;p class=email-reply&gt;To Reply: &lt;a href=&quot;mailto:justin@garofo.li?subject=Reply to the post &apos;Apache2 User Dir&apos; on justing.net&amp;body=url: https://www.justing.nethttps://www.justing.net/til/2020/01/01/apache2-user-dir.html&quot;&gt;You can reply by email.&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

</feed>

