<?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: Alfonso Strotgen</title>
    <description>The latest articles on DEV Community by Alfonso Strotgen (@strotgen).</description>
    <link>https://dev.to/strotgen</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%2F385070%2F64f831d2-030b-4c76-be9e-c4e16c778d04.jpeg</url>
      <title>DEV Community: Alfonso Strotgen</title>
      <link>https://dev.to/strotgen</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/strotgen"/>
    <language>en</language>
    <item>
      <title>Download the latest release file from a Github repo</title>
      <dc:creator>Alfonso Strotgen</dc:creator>
      <pubDate>Sun, 24 May 2020 22:19:48 +0000</pubDate>
      <link>https://dev.to/strotgen/download-latest-release-file-from-github-2jjc</link>
      <guid>https://dev.to/strotgen/download-latest-release-file-from-github-2jjc</guid>
      <description>&lt;p&gt;I have a simple post installation bash script for the software I use in my personal computer. I usually do a fresh install of Ubuntu / Pop!_OS for every new major release, so this file comes in very handy.&lt;/p&gt;

&lt;p&gt;For the most part, this script consists of the typical &lt;code&gt;sudo apt install ...&lt;/code&gt;, but there are some applications that are only distributed in .deb or similar packages. For example, to use &lt;a href="https://github.com/ankitects/anki"&gt;Anki&lt;/a&gt;, the open-source flashcard program, you have to download a compressed file from their official &lt;a href="https://github.com/ankitects/anki/releases"&gt;Github repo&lt;/a&gt; and install it from source. To download the latest version, I use the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;wget &lt;span class="nt"&gt;-qO&lt;/span&gt; - https://api.github.com/repos/ankitects/anki/releases/latest &lt;span class="se"&gt;\&lt;/span&gt;
| &lt;span class="nb"&gt;grep &lt;/span&gt;browser_download_url &lt;span class="se"&gt;\&lt;/span&gt;
| &lt;span class="nb"&gt;grep &lt;/span&gt;amd64 &lt;span class="se"&gt;\&lt;/span&gt;
| &lt;span class="nb"&gt;cut&lt;/span&gt; &lt;span class="nt"&gt;-d&lt;/span&gt;  &lt;span class="s1"&gt;'"'&lt;/span&gt; &lt;span class="nt"&gt;-f&lt;/span&gt; 4  &lt;span class="se"&gt;\&lt;/span&gt;
| wget &lt;span class="nt"&gt;-cqi&lt;/span&gt; - &lt;span class="nt"&gt;-O&lt;/span&gt; Anki.tar.bz
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;To use this command, change accordingly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Change &lt;code&gt;ankitects/anki&lt;/code&gt; for the repo you need. &lt;/li&gt;
&lt;li&gt;Change &lt;code&gt;amd64&lt;/code&gt; for the file name you need. In my case, the Linux files in the Anki repo have &lt;code&gt;amd64&lt;/code&gt; in their name. You could use &lt;code&gt;deb&lt;/code&gt;, &lt;code&gt;dmg&lt;/code&gt;, etc.&lt;/li&gt;
&lt;li&gt;Change &lt;code&gt;Anki.tar.bz&lt;/code&gt; for the name of the file you want. This is useful when the file name includes the version. I use this for running other commands as a next step, for example, uncompressing the file. &lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>bash</category>
      <category>github</category>
      <category>latest</category>
      <category>script</category>
    </item>
    <item>
      <title>Desktop integration for Tinkerwell (or any AppImage)</title>
      <dc:creator>Alfonso Strotgen</dc:creator>
      <pubDate>Sat, 16 May 2020 23:07:05 +0000</pubDate>
      <link>https://dev.to/strotgen/integrate-tinkerwell-or-any-appimage-into-the-ubuntu-desktop-le9</link>
      <guid>https://dev.to/strotgen/integrate-tinkerwell-or-any-appimage-into-the-ubuntu-desktop-le9</guid>
      <description>&lt;p&gt;If you use Laravel you've probably heard of &lt;a href="https://tinkerwell.app/" rel="noopener noreferrer"&gt;Tinkerwell&lt;/a&gt;. If that is not the case, Tinkerwell is the &lt;code&gt;php artisan tinker&lt;/code&gt; on steroids: a powerful REPL that runs your code within local and remote PHP applications, allowing you to tinker with them.&lt;/p&gt;

&lt;h3&gt;
  
  
  What are AppImage packages
&lt;/h3&gt;

&lt;p&gt;The Linux version of Tinkerwell is distributed in an AppImage package format. If you have not heard of this format before, you just have to know that it is a universal software package format that tries to be distribution-agnostic, i.e. you can use it in most (if not all) modern Linux distributions. &lt;/p&gt;

&lt;p&gt;The disadvantages of AppImage packages are that, firstly, you have to give them permission to run, and secondly, every time you want to run them, you have to navigate to the folder where you downloaded the file. That is certainly the case for me when I need to run Tinkerwell. &lt;/p&gt;

&lt;h3&gt;
  
  
  Integrate AppImages in your system with AppImageLauncher
&lt;/h3&gt;

&lt;p&gt;AppImageLauncher solves these problems. After installation, it will let you execute AppImages with just one click (without having to make them executable). But most interestingly, it will easily (and optionally) integrate the application with your system, creating shortcuts in the application launcher and on the desktop.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fb8re5g2uqlwyguy1alp3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fb8re5g2uqlwyguy1alp3.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use the folllowing commands to install AppImageLauncher in Ubuntu or go the &lt;a href="https://github.com/TheAssassin/AppImageLauncher/" rel="noopener noreferrer"&gt;repo&lt;/a&gt; to find more installing options.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;add-apt-repository ppa:appimagelauncher-team/stable
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt update
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;appimagelauncher
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After installing, just execute your desired AppImage file and choose the option to integrate. &lt;/p&gt;

</description>
      <category>laravel</category>
      <category>appimage</category>
      <category>ubuntu</category>
      <category>tinker</category>
    </item>
  </channel>
</rss>
