<?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: Max White</title>
    <description>The latest articles on DEV Community by Max White (@maxwhite20062003).</description>
    <link>https://dev.to/maxwhite20062003</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%2F292185%2F5e7f41c6-feef-4502-b4af-f66e23d59032.jpg</url>
      <title>DEV Community: Max White</title>
      <link>https://dev.to/maxwhite20062003</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/maxwhite20062003"/>
    <language>en</language>
    <item>
      <title>Mirroring a GitLab repository into a GitHub repository</title>
      <dc:creator>Max White</dc:creator>
      <pubDate>Sat, 14 Dec 2019 19:40:09 +0000</pubDate>
      <link>https://dev.to/maxwhite20062003/mirroring-a-gitlab-repository-into-a-github-repository-3n9i</link>
      <guid>https://dev.to/maxwhite20062003/mirroring-a-gitlab-repository-into-a-github-repository-3n9i</guid>
      <description>&lt;p&gt;Using GitLab's native "Repository Mirroring" function, we can make changes to a GitLab repository that will also be made to a GitHub repository! And of course, vice versa.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why would I do that?
&lt;/h2&gt;

&lt;p&gt;For two reasons:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Due to the popularity of GitHub, there are many more integrations with it than with GitLab.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Due to GitHub's popularity, your project is more likely to be found there than on GitLab.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Think of it this way, if I haven't convinced you to use both GitHub and GitLab simultaneously:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You work in the comfort of GitLab, and when you're done, your work gets sent to GitHub automatically, without you having to remember to do anything!&lt;/p&gt;
&lt;/blockquote&gt;



&lt;blockquote&gt;
&lt;p&gt;When your GitLab project goes to GitHub, it is more likely that it will be seen by your potential users in addition to enjoying Github integrations!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How can I do that?
&lt;/h2&gt;

&lt;p&gt;It's simple! Just watch this is vídeo: &lt;a href="https://www.youtube.com/watch?v=ovs-HS0JgqY"&gt;Learn about GitLab Mirroring - YouTube&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's not mine, but it taught me how to use it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Thanks for reading and a fun fact: You known the red fox likes the white wolf?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>gitlab</category>
      <category>github</category>
    </item>
    <item>
      <title>How to link your GitLab account to StackEdit?</title>
      <dc:creator>Max White</dc:creator>
      <pubDate>Sat, 14 Dec 2019 16:02:08 +0000</pubDate>
      <link>https://dev.to/maxwhite20062003/how-to-link-your-gitlab-account-to-stackedit-2pkc</link>
      <guid>https://dev.to/maxwhite20062003/how-to-link-your-gitlab-account-to-stackedit-2pkc</guid>
      <description>&lt;p&gt;First. Go to the &lt;a href="https://stackedit.io/"&gt;StackEdit&lt;/a&gt; and click in "Start Writing".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HMCWBnrK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/rnkgsn6mzsc1ayxsf3xm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HMCWBnrK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/rnkgsn6mzsc1ayxsf3xm.png" alt="Step 1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After waiting for StackEdit to load, this should be waiting for you.&lt;/p&gt;

&lt;p&gt;Just click "Skip" because we don't need a tutorial on how StackEdit works for now.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9sl88iUo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/5rxk70ms1zrruz2qe32h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9sl88iUo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/5rxk70ms1zrruz2qe32h.png" alt="Step 2"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then go to the StackEdit logo located at the top right and click on it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--IEn6JsLQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/faatv62mjmt24xsqry1d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--IEn6JsLQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/faatv62mjmt24xsqry1d.png" alt="Step 3"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This should appear to you.&lt;/p&gt;

&lt;p&gt;Just click on "Workspaces". We'll talk about "Sign in with Google" later in this post.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rPnV2V_u--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/8fhuvl9cmv3ifmlfendl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rPnV2V_u--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/8fhuvl9cmv3ifmlfendl.png" alt="Step 4"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click in "Add a &lt;strong&gt;GitLab&lt;/strong&gt; workspace".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--B-dh3oY7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/8xvhtnoqry6tqlv9fkrh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B-dh3oY7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/8xvhtnoqry6tqlv9fkrh.png" alt="Step 5"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This should appears to you.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--s6GEOEne--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/4ju6dc5ciqcr1jugbc9z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--s6GEOEne--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/4ju6dc5ciqcr1jugbc9z.png" alt="Step 6"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, you need go to the &lt;a href="https://gitlab.com/"&gt;GitLab&lt;/a&gt;. There, click in your profile icon on top right corner.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Top right corner is the latest fashion trend! 😉&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Fp4-sTx---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ch3ohle527oq2slzgv3b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Fp4-sTx---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ch3ohle527oq2slzgv3b.png" alt="Step 7"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This should appears to you.&lt;/p&gt;

&lt;p&gt;Just click in "Settings".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6bWcFiLm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/jcmav6c4moxyjj19tlmg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6bWcFiLm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/jcmav6c4moxyjj19tlmg.png" alt="step 8"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This should appears to you.&lt;/p&gt;

&lt;p&gt;Click in "Applications".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--apsH3xY5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/vq4dqbz1kahv8z92m25q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--apsH3xY5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/vq4dqbz1kahv8z92m25q.png" alt="Step 9"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Under "Add new application", in "Name", well, type a name for your application. Something like "StackEdit" (duh) is fine. I will type "StackEdit2" because I already made this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Udvo2cFj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/oijveq3xtm0lyrx5tjfo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Udvo2cFj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/oijveq3xtm0lyrx5tjfo.png" alt="Step 10"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In "Redirect URI", type &lt;code&gt;https://stackedit.io/oauth2/callback&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LQR7v7SW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/vvno1tsypj8bgmnvhiq8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LQR7v7SW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/vvno1tsypj8bgmnvhiq8.png" alt="Step 11"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Why? 🤨&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Well, StackEdit said this was your Redirect URI.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Where? 🤨&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Here.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CGxBZlWv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/hizan5ifphoz2w0o2gvm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CGxBZlWv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/hizan5ifphoz2w0o2gvm.png" alt="Step 11-Why"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then, check the box "api".&lt;/p&gt;

&lt;p&gt;Of course, you can check all the boxes you want.&lt;/p&gt;

&lt;p&gt;This is not gonna break StackEdit.&lt;/p&gt;

&lt;p&gt;But StackEdit will only need the "api" box. &lt;/p&gt;

&lt;p&gt;And checking checkboxes beyond the "api" box is dangerous.&lt;/p&gt;

&lt;p&gt;Because that will give more permission than StackEdit needs.&lt;/p&gt;

&lt;p&gt;And then, if a bad person ends up having access to your application ID and all, they can do much more than simply commit to one of your repositories.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Like I said, It is recommended that you only check the "api" checkbox.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oc2BCCxf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/5olbaf3d7mh9a4ydcz82.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oc2BCCxf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/5olbaf3d7mh9a4ydcz82.png" alt="Step 12"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, scroll down unitl the "Save application" button, and click on him.&lt;/p&gt;

&lt;p&gt;As you see, I already have a application called "StackEdit" so this is why I called this "StackEdit2", like I said before.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--r6RnVWul--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/udb9sl2j5faexj68h1ol.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--r6RnVWul--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/udb9sl2j5faexj68h1ol.png" alt="Step 13"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This should appears...&lt;/p&gt;

&lt;p&gt;Copy the "Application ID" code from GitLab to the "Application ID" field in the StackEdit.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wgzTTql3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/qsbrtxhgqpf4y08hktn8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wgzTTql3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/qsbrtxhgqpf4y08hktn8.png" alt="Step 14"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NU2v9D5q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/fxmxee1656j27zsszi9z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NU2v9D5q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/fxmxee1656j27zsszi9z.png" alt="Step 15"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Wait, why don't cover up your code? This is dangerous?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Yes it is. But I will delete the app after doing this tutorial, so I think it's okay as it won't be valid anymore.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If you say 😐&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now you will get the URL of the page where the Application ID was and paste it into the "GitLab URL" field.&lt;/p&gt;

&lt;p&gt;I'm not gonna give you guys a screenshot, because my tabs are... A little... Private... 😅&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Your dirty furry 😏&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It's something like: &lt;code&gt;https://gitlab.com/oauth/applications/146425&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uELb2EdL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/hto2h195oz34gk0emztq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uELb2EdL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/hto2h195oz34gk0emztq.png" alt="Step 16"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now click in the "OK" button. When you click the "OK" button, it will open a page like this...&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6tsnrL6p--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/dm6bejits09qh3ybcbk5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6tsnrL6p--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/dm6bejits09qh3ybcbk5.png" alt="Step 18"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Just click in "Authorize" button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Cl9lhJp9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/bl36cl6e5jrnbj2oxf4y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Cl9lhJp9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/bl36cl6e5jrnbj2oxf4y.png" alt="Step 19"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ta-dah! Now everything is set up! It will return to StackEdit and ask for a repository name. Now. Every time you edit or create a Markdown file within StackEdit, it will be committed into the repository you have chosen.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Didn't you say you would explain about "Sign in with Google"? 😶&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Oh! Yes! Of course! It's simple!&lt;/p&gt;

&lt;p&gt;"Signing in with Google" will cause StackEdit to store your credentials and create a workspace for you. That way, you don't have to "do everything you do here" every time you restart StackEdit or delete your cookies. However, the Google workspace cannot be accessed from anywhere other than StackEdit. Unlike GitLab, where you can access your files both from the GitLab repository you choose, as well as from StackEdit.&lt;/p&gt;

&lt;p&gt;That's it!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Thanks for reading and a fun fact: You known the red fox likes the white wolf?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>gitlab</category>
      <category>stackedit</category>
    </item>
  </channel>
</rss>
