<?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>Forem: CircusBearOnATrike</title>
    <description>The latest articles on Forem by CircusBearOnATrike (@chad_ballay).</description>
    <link>https://forem.com/chad_ballay</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%2F189950%2Fde59616b-e3f9-47df-8d27-3be47dbc12c6.jpg</url>
      <title>Forem: CircusBearOnATrike</title>
      <link>https://forem.com/chad_ballay</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/chad_ballay"/>
    <language>en</language>
    <item>
      <title>Using Fortune For Studying</title>
      <dc:creator>CircusBearOnATrike</dc:creator>
      <pubDate>Tue, 31 Dec 2019 17:13:08 +0000</pubDate>
      <link>https://forem.com/chad_ballay/using-fortune-for-studying-pif</link>
      <guid>https://forem.com/chad_ballay/using-fortune-for-studying-pif</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wan4Cnjc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/d7489sjc6ujq91gcjhng.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wan4Cnjc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/d7489sjc6ujq91gcjhng.png" alt="Example"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm studying for Comptia Security+ (SY0-501) certification as part of a retooling that I'm doing.  (Working fulltime while going back to school ain't no joke.)  The retooling is taking the form of degree, ctf/proof of work, and certifications.  To help squeeze in some additional efficiency I've set up my terminal to pop up a flashcard each login of terms to memorize.  This is accomplished using fortune, lolcat, and cowsay in conjunction with a custom fortune file.  For right now, I've just grabbed a dumb list of terms to memorize but as I build my study guides, I'll flesh this out.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Chad-Ballay/fortune_study_guide"&gt;https://github.com/Chad-Ballay/fortune_study_guide&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Install Utilities
&lt;/h3&gt;

&lt;p&gt;Install fortune, lolcat, and cowsay using Homebrew.  Only fortune is needed but the asthetics of having Lolcat and Cowsay make it better.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; &lt;a href="https://en.wikipedia.org/wiki/Fortune_(Unix)"&gt;https://en.wikipedia.org/wiki/Fortune_(Unix)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt; &lt;a href="https://github.com/busyloop/lolcat"&gt;https://github.com/busyloop/lolcat&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt; &lt;a href="https://github.com/tnalpgge/rank-amateur-cowsay"&gt;https://github.com/tnalpgge/rank-amateur-cowsay&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;brew &lt;span class="nb"&gt;install &lt;/span&gt;fortune
&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;brew &lt;span class="nb"&gt;install &lt;/span&gt;lolcat
&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;brew &lt;span class="nb"&gt;install &lt;/span&gt;cowsay
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;
  
  
  Get A Fortune File
&lt;/h3&gt;

&lt;p&gt;You can get mine. &lt;br&gt;
&lt;a href="https://github.com/Chad-Ballay/fortune_study_guide/blob/master/study_guides/SY0_501.fortune"&gt;https://github.com/Chad-Ballay/fortune_study_guide/blob/master/study_guides/SY0_501.fortune&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Or write your own.&lt;br&gt;&lt;br&gt;
&lt;a href="http://bradthemad.org/tech/notes/fortune_makefile.php"&gt;http://bradthemad.org/tech/notes/fortune_makefile.php&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Setup Your Fortune File
&lt;/h3&gt;

&lt;p&gt;I install them locally to ~/.fortune since the intention is to have specific cert ones for focus.  You could install this wherever you want, you just need to remember that for the .bash_profile step.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;mkdir&lt;/span&gt; ~/.fortune
&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;cp&lt;/span&gt; ./study_guides/SY0_501.fortune ~/.fortune/
&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;strfile ~/.fortune/SY0_501.fortune
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;
  
  
  Test It
&lt;/h3&gt;

&lt;p&gt;You should be able to get some random flashcard and ascii art when you run this.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;fortune ~/.fortune/SY0_501.fortune | cowsay &lt;span class="nt"&gt;-f&lt;/span&gt; &lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;shuf&lt;/span&gt; &lt;span class="nt"&gt;-n&lt;/span&gt; 1 &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="si"&gt;$(&lt;/span&gt;cowsay &lt;span class="nt"&gt;-l&lt;/span&gt; | &lt;span class="nb"&gt;tail&lt;/span&gt; &lt;span class="nt"&gt;-n&lt;/span&gt; +2&lt;span class="si"&gt;))&lt;/span&gt; | lolcat
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;
  
  
  Setup Profile
&lt;/h3&gt;

&lt;p&gt;Now to modify your login to always have one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;cp&lt;/span&gt; ~/.bash_profile ~/.bash_profile.backup.&lt;span class="nv"&gt;$$&lt;/span&gt;
&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s1"&gt;'fortune ~/.fortune/SY0_501.fortune | cowsay -f $(shuf -n 1 -e $(cowsay -l | tail -n +2)) | lolcat'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; ~/.bash_profile
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;
  
  
  TODO
&lt;/h3&gt;

&lt;p&gt;PR's are always welcome.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; I need to review the data in my Fortune file since there are misspellings galore.
&lt;/li&gt;
&lt;li&gt; I need to expand it to include more concepts.&lt;/li&gt;
&lt;li&gt; I need to create other Fortune files for GSEC, CySA, CCNA, etc...&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>comptia</category>
      <category>security</category>
      <category>study</category>
      <category>cybersecurity</category>
    </item>
  </channel>
</rss>
