<?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: slashtechno</title>
    <description>The latest articles on DEV Community by slashtechno (@slashtechno).</description>
    <link>https://dev.to/slashtechno</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%2F727723%2F40c57912-2630-482c-82dd-894d5a0e51a4.png</url>
      <title>DEV Community: slashtechno</title>
      <link>https://dev.to/slashtechno</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/slashtechno"/>
    <language>en</language>
    <item>
      <title>Self-hosting a Matrix Server With Synapse</title>
      <dc:creator>slashtechno</dc:creator>
      <pubDate>Sun, 24 Sep 2023 21:24:59 +0000</pubDate>
      <link>https://dev.to/slashtechno/self-hosting-a-matrix-server-with-synapse-4bh7</link>
      <guid>https://dev.to/slashtechno/self-hosting-a-matrix-server-with-synapse-4bh7</guid>
      <description>&lt;p&gt;Matrix is a versatile protocol for communication. Similar to ActivityPub, which Mastodon uses, Matrix supports federation. Thus, by self-hosting, you're using your own server whilst also being able to use your own domain.  &lt;/p&gt;

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

&lt;p&gt;Assuming Docker is installed, the first step is to generate the configuration file.&lt;br&gt;&lt;br&gt;
The following command will generate a configuration file in &lt;code&gt;./synapse-data&lt;/code&gt;. Change &lt;code&gt;matrix.example.com&lt;/code&gt; to the domain that will be used. If you're running in Powershell, replace &lt;code&gt;\&lt;/code&gt; with &lt;code&gt;^&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker run -it --rm \
    -v $(pwd)/synapse-data:/data \
    -e SYNAPSE_SERVER_NAME=matrix.example.com \
    -e SYNAPSE_REPORT_STATS=no \
    matrixdotorg/synapse:latest generate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Configuration
&lt;/h3&gt;

&lt;p&gt;Running the server now would result in a problem; registration and federation are not currently set up.  &lt;/p&gt;

&lt;h4&gt;
  
  
  Registration
&lt;/h4&gt;

&lt;p&gt;By default, registration is disabled. To &lt;a href="https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#enable_registration_without_verification" rel="noopener noreferrer"&gt;enable&lt;/a&gt; it, edit &lt;code&gt;./synapse-data/homeserver.yaml&lt;/code&gt; and add the following:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;enable_registration: true
enable_registration_without_verification: true

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

&lt;/div&gt;



&lt;p&gt;However, this is not recommended as this can lead to spam. Instead, some verification method should be used if registration is to be enabled. Using reCAPTCHA is one option. The Synapse documentation has a &lt;a href="https://matrix-org.github.io/synapse/latest/CAPTCHA_SETUP.html" rel="noopener noreferrer"&gt;tutorial&lt;/a&gt; regarding this.  &lt;/p&gt;

&lt;h4&gt;
  
  
  Federation
&lt;/h4&gt;

&lt;p&gt;Federation allows Matrix servers to communicate. By default, it's expected that the server is run on port 8448 with TLS. However, in some scenarios, this may not be the configuration. For example, I run Synapse in Docker on port 8007. On the host, Nginx is installed with the following configuration, with a different hostname, in &lt;code&gt;/etc/nginx/sites-available/matrix-federation&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;server {
    listen 8008;
    location /.well-known/matrix/server {
        add_header Content-Type application/json;
        return 200 '{"m.server": "matrix.example.com:443"}';
    }
    location / {
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_pass http://localhost:8007;
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I use Cloudflare tunnel to proxy my Matrix subdomain, on port 443, to &lt;code&gt;&amp;lt;host IP&amp;gt;:8007&lt;/code&gt;. However, a similar Nginx config can be used for federation as well. Just make sure that &lt;code&gt;http://localhost:8007&lt;/code&gt; points to the Docker container and &lt;code&gt;matrix.example.com:443&lt;/code&gt; points to the address where Matrix can be accessed from outside your network.  &lt;/p&gt;

&lt;h3&gt;
  
  
  Running the Server
&lt;/h3&gt;

&lt;p&gt;The following command runs the server on port 8007. Note that you will need a client to use it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker run -d --name synapse \
    --name synapse \
    --restart unless-stopped \
    -itd \
    -v $(pwd)/synapse-data:/data \
    -p 8007:8008 \
    matrixdotorg/synapse:latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Useful links
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://cinny.in/" rel="noopener noreferrer"&gt;Cinny&lt;/a&gt; - A Matrix client&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/Awesome-Technologies/synapse-admin" rel="noopener noreferrer"&gt;synapse-admin&lt;/a&gt; - Manage your Synapse instance from a web based interface
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://hub.docker.com/r/matrixdotorg/synapse" rel="noopener noreferrer"&gt;matrixdotorg/synapse&lt;/a&gt; - The Synapse Docker image with a useful README&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://theselfhostingblog.com/posts/self-hosting-your-own-matrix-server-on-a-raspberry-pi/" rel="noopener noreferrer"&gt;Self hosting your own Matrix server on a Raspberry Pi&lt;/a&gt; - One of the tutorials I used
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://linuxhandbook.com/install-matrix-synapse-docker/" rel="noopener noreferrer"&gt;How to Install Matrix Synapse Homeserver Using Docker&lt;/a&gt; - One of the tutorials I used
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  One more thing
&lt;/h3&gt;

&lt;p&gt;This is a simple setup and configuration. This is similar to how I run my Synapse server (at the time of writing). However, it isn't necessarily the best configuration. &lt;/p&gt;

</description>
      <category>matrix</category>
      <category>selfhosted</category>
      <category>opensource</category>
      <category>cloud</category>
    </item>
    <item>
      <title>Test post from slashtechno/api-blogger</title>
      <dc:creator>slashtechno</dc:creator>
      <pubDate>Mon, 03 Oct 2022 00:46:04 +0000</pubDate>
      <link>https://dev.to/slashtechno/test-post-from-slashtechnoapi-blogger-4cnd</link>
      <guid>https://dev.to/slashtechno/test-post-from-slashtechnoapi-blogger-4cnd</guid>
      <description>&lt;h1&gt;
  
  
  Markdown: Syntax
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;  Overview

&lt;ul&gt;
&lt;li&gt;  Philosophy
&lt;/li&gt;
&lt;li&gt;  Inline HTML
&lt;/li&gt;
&lt;li&gt;  Automatic Escaping for Special Characters
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;  Block Elements

&lt;ul&gt;
&lt;li&gt;  Paragraphs and Line Breaks
&lt;/li&gt;
&lt;li&gt;  Headers
&lt;/li&gt;
&lt;li&gt;  Blockquotes
&lt;/li&gt;
&lt;li&gt;  Lists
&lt;/li&gt;
&lt;li&gt;  Code Blocks
&lt;/li&gt;
&lt;li&gt;  Horizontal Rules
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;  Span Elements

&lt;ul&gt;
&lt;li&gt;  Links
&lt;/li&gt;
&lt;li&gt;  Emphasis
&lt;/li&gt;
&lt;li&gt;  Code
&lt;/li&gt;
&lt;li&gt;  Images
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;  Miscellaneous

&lt;ul&gt;
&lt;li&gt;  Backslash Escapes
&lt;/li&gt;
&lt;li&gt;  Automatic Links
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This document is itself written using Markdown; you&lt;br&gt;
can &lt;a href="///projects/markdown/syntax.text"&gt;see the source for it by adding '.text' to the URL&lt;/a&gt;.&lt;/p&gt;


&lt;h2&gt;
  
  
  Overview
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Philosophy
&lt;/h3&gt;

&lt;p&gt;Markdown is intended to be as easy-to-read and easy-to-write as is feasible.&lt;/p&gt;

&lt;p&gt;Readability, however, is emphasized above all else. A Markdown-formatted&lt;br&gt;
document should be publishable as-is, as plain text, without looking&lt;br&gt;
like it's been marked up with tags or formatting instructions. While&lt;br&gt;
Markdown's syntax has been influenced by several existing text-to-HTML&lt;br&gt;
filters -- including &lt;a href="http://docutils.sourceforge.net/mirror/setext.html" rel="noopener noreferrer"&gt;Setext&lt;/a&gt;, &lt;a href="http://www.aaronsw.com/2002/atx/" rel="noopener noreferrer"&gt;atx&lt;/a&gt;, &lt;a href="http://textism.com/tools/textile/" rel="noopener noreferrer"&gt;Textile&lt;/a&gt;, &lt;a href="http://docutils.sourceforge.net/rst.html" rel="noopener noreferrer"&gt;reStructuredText&lt;/a&gt;,&lt;br&gt;
&lt;a href="http://www.triptico.com/software/grutatxt.html" rel="noopener noreferrer"&gt;Grutatext&lt;/a&gt;, and &lt;a href="http://ettext.taint.org/doc/" rel="noopener noreferrer"&gt;EtText&lt;/a&gt; -- the single biggest source of&lt;br&gt;
inspiration for Markdown's syntax is the format of plain text email.&lt;/p&gt;
&lt;h2&gt;
  
  
  Block Elements
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Paragraphs and Line Breaks
&lt;/h3&gt;

&lt;p&gt;A paragraph is simply one or more consecutive lines of text, separated&lt;br&gt;
by one or more blank lines. (A blank line is any line that looks like a&lt;br&gt;
blank line -- a line containing nothing but spaces or tabs is considered&lt;br&gt;
blank.) Normal paragraphs should not be indented with spaces or tabs.&lt;/p&gt;

&lt;p&gt;The implication of the "one or more consecutive lines of text" rule is&lt;br&gt;
that Markdown supports "hard-wrapped" text paragraphs. This differs&lt;br&gt;
significantly from most other text-to-HTML formatters (including Movable&lt;br&gt;
Type's "Convert Line Breaks" option) which translate every line break&lt;br&gt;
character in a paragraph into a &lt;code&gt;&amp;lt;br /&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;

&lt;p&gt;When you &lt;em&gt;do&lt;/em&gt; want to insert a &lt;code&gt;&amp;lt;br /&amp;gt;&lt;/code&gt; break tag using Markdown, you&lt;br&gt;
end a line with two or more spaces, then type return.&lt;/p&gt;
&lt;h3&gt;
  
  
  Headers
&lt;/h3&gt;

&lt;p&gt;Markdown supports two styles of headers, [Setext] [1] and [atx] [2].&lt;/p&gt;

&lt;p&gt;Optionally, you may "close" atx-style headers. This is purely&lt;br&gt;
cosmetic -- you can use this if you think it looks better. The&lt;br&gt;
closing hashes don't even need to match the number of hashes&lt;br&gt;
used to open the header. (The number of opening hashes&lt;br&gt;
determines the header level.)&lt;/p&gt;
&lt;h3&gt;
  
  
  Blockquotes
&lt;/h3&gt;

&lt;p&gt;Markdown uses email-style &lt;code&gt;&amp;gt;&lt;/code&gt; characters for blockquoting. If you're&lt;br&gt;
familiar with quoting passages of text in an email message, then you&lt;br&gt;
know how to create a blockquote in Markdown. It looks best if you hard&lt;br&gt;
wrap the text and put a &lt;code&gt;&amp;gt;&lt;/code&gt; before every line:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,&lt;br&gt;
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.&lt;br&gt;
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.&lt;/p&gt;

&lt;p&gt;Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse&lt;br&gt;
id sem consectetuer libero luctus adipiscing.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Markdown allows you to be lazy and only put the &lt;code&gt;&amp;gt;&lt;/code&gt; before the first&lt;br&gt;
line of a hard-wrapped paragraph:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,&lt;br&gt;
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.&lt;br&gt;
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.&lt;/p&gt;

&lt;p&gt;Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse&lt;br&gt;
id sem consectetuer libero luctus adipiscing.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by&lt;br&gt;
adding additional levels of &lt;code&gt;&amp;gt;&lt;/code&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This is the first level of quoting.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This is nested blockquote.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Back to the first level.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Blockquotes can contain other Markdown elements, including headers, lists,&lt;br&gt;
and code blocks:&lt;/p&gt;

&lt;blockquote&gt;
&lt;h2&gt;
  
  
  This is a header.
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;  This is the first list item.&lt;/li&gt;
&lt;li&gt;  This is the second list item.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here's some example code:&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;return shell_exec("echo $input | $markdown_script");
&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;

&lt;p&gt;Any decent text editor should make email-style quoting easy. For&lt;br&gt;
example, with BBEdit, you can make a selection and choose Increase&lt;br&gt;
Quote Level from the Text menu.&lt;/p&gt;
&lt;h3&gt;
  
  
  Lists
&lt;/h3&gt;

&lt;p&gt;Markdown supports ordered (numbered) and unordered (bulleted) lists.&lt;/p&gt;

&lt;p&gt;Unordered lists use asterisks, pluses, and hyphens -- interchangably&lt;br&gt;
-- as list markers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Red&lt;/li&gt;
&lt;li&gt;  Green&lt;/li&gt;
&lt;li&gt;  Blue&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;is equivalent to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Red&lt;/li&gt;
&lt;li&gt;  Green&lt;/li&gt;
&lt;li&gt;  Blue&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;  Red&lt;/li&gt;
&lt;li&gt;  Green&lt;/li&gt;
&lt;li&gt;  Blue&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ordered lists use numbers followed by periods:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Bird&lt;/li&gt;
&lt;li&gt; McHale&lt;/li&gt;
&lt;li&gt; Parish&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It's important to note that the actual numbers you use to mark the&lt;br&gt;
list have no effect on the HTML output Markdown produces. The HTML&lt;br&gt;
Markdown produces from the above list is:&lt;/p&gt;

&lt;p&gt;If you instead wrote the list in Markdown like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Bird&lt;/li&gt;
&lt;li&gt; McHale&lt;/li&gt;
&lt;li&gt; Parish&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;or even:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Bird&lt;/li&gt;
&lt;li&gt;McHale&lt;/li&gt;
&lt;li&gt;Parish&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;you'd get the exact same HTML output. The point is, if you want to,&lt;br&gt;
you can use ordinal numbers in your ordered Markdown lists, so that&lt;br&gt;
the numbers in your source match the numbers in your published HTML.&lt;br&gt;
But if you want to be lazy, you don't have to.&lt;/p&gt;

&lt;p&gt;To make lists look nice, you can wrap items with hanging indents:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
viverra nec, fringilla in, laoreet vitae, risus.&lt;/li&gt;
&lt;li&gt;  Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But if you want to be lazy, you don't have to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
viverra nec, fringilla in, laoreet vitae, risus.&lt;/li&gt;
&lt;li&gt;  Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;List items may consist of multiple paragraphs. Each subsequent&lt;br&gt;
paragraph in a list item must be indented by either 4 spaces&lt;br&gt;
or one tab:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;This is a list item with two paragraphs. Lorem ipsum dolor&lt;br&gt;
sit amet, consectetuer adipiscing elit. Aliquam hendrerit&lt;br&gt;
mi posuere lectus.&lt;/p&gt;

&lt;p&gt;Vestibulum enim wisi, viverra nec, fringilla in, laoreet&lt;br&gt;
vitae, risus. Donec sit amet nisl. Aliquam semper ipsum&lt;br&gt;
sit amet velit.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Suspendisse id sem consectetuer libero luctus adipiscing.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It looks nice if you indent every line of the subsequent&lt;br&gt;
paragraphs, but here again, Markdown will allow you to be&lt;br&gt;
lazy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;This is a list item with two paragraphs.&lt;/p&gt;

&lt;p&gt;This is the second paragraph in the list item. You're&lt;br&gt;
only required to indent the first line. Lorem ipsum dolor&lt;br&gt;
sit amet, consectetuer adipiscing elit.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Another item in the same list.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To put a blockquote within a list item, the blockquote's &lt;code&gt;&amp;gt;&lt;/code&gt;&lt;br&gt;
delimiters need to be indented:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;A list item with a blockquote:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This is a blockquote&lt;br&gt;
inside a list item.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To put a code block within a list item, the code block needs&lt;br&gt;
to be indented &lt;em&gt;twice&lt;/em&gt; -- 8 spaces or two tabs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;A list item with a code block:&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;code goes here&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Code Blocks
&lt;/h3&gt;

&lt;p&gt;Pre-formatted code blocks are used for writing about programming or&lt;br&gt;
markup source code. Rather than forming normal paragraphs, the lines&lt;br&gt;
of a code block are interpreted literally. Markdown wraps a code block&lt;br&gt;
in both &lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;code&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;

&lt;p&gt;To produce a code block in Markdown, simply indent every line of the&lt;br&gt;
block by at least 4 spaces or 1 tab.&lt;/p&gt;

&lt;p&gt;This is a normal paragraph:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;This is a code block.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Here is an example of AppleScript:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tell application "Foo"
    beep
end tell
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;A code block continues until it reaches a line that is not indented&lt;br&gt;
(or the end of the article).&lt;/p&gt;

&lt;p&gt;Within a code block, ampersands (&lt;code&gt;&amp;amp;&lt;/code&gt;) and angle brackets (&lt;code&gt;&amp;lt;&lt;/code&gt; and &lt;code&gt;&amp;gt;&lt;/code&gt;)&lt;br&gt;
are automatically converted into HTML entities. This makes it very&lt;br&gt;
easy to include example HTML source code using Markdown -- just paste&lt;br&gt;
it and indent it, and Markdown will handle the hassle of encoding the&lt;br&gt;
ampersands and angle brackets. For example, this:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div class="footer"&amp;gt;
    &amp;amp;copy; 2004 Foo Corporation
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Regular Markdown syntax is not processed within code blocks. E.g.,&lt;br&gt;
asterisks are just literal asterisks within a code block. This means&lt;br&gt;
it's also easy to use Markdown to write about Markdown's own syntax.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tell application "Foo"
    beep
end tell
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Span Elements
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Links
&lt;/h3&gt;

&lt;p&gt;Markdown supports two style of links: &lt;em&gt;inline&lt;/em&gt; and &lt;em&gt;reference&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;In both styles, the link text is delimited by [square brackets].&lt;/p&gt;

&lt;p&gt;To create an inline link, use a set of regular parentheses immediately&lt;br&gt;
after the link text's closing square bracket. Inside the parentheses,&lt;br&gt;
put the URL where you want the link to point, along with an &lt;em&gt;optional&lt;/em&gt;&lt;br&gt;
title for the link, surrounded in quotes. For example:&lt;/p&gt;

&lt;p&gt;This is &lt;a href="http://example.com/" rel="noopener noreferrer"&gt;an example&lt;/a&gt; inline link.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://example.net/" rel="noopener noreferrer"&gt;This link&lt;/a&gt; has no title attribute.&lt;/p&gt;

&lt;h3&gt;
  
  
  Emphasis
&lt;/h3&gt;

&lt;p&gt;Markdown treats asterisks (&lt;code&gt;*&lt;/code&gt;) and underscores (&lt;code&gt;_&lt;/code&gt;) as indicators of&lt;br&gt;
emphasis. Text wrapped with one &lt;code&gt;*&lt;/code&gt; or &lt;code&gt;_&lt;/code&gt; will be wrapped with an&lt;br&gt;
HTML &lt;code&gt;&amp;lt;em&amp;gt;&lt;/code&gt; tag; double &lt;code&gt;*&lt;/code&gt;'s or &lt;code&gt;_&lt;/code&gt;'s will be wrapped with an HTML&lt;br&gt;
&lt;code&gt;&amp;lt;strong&amp;gt;&lt;/code&gt; tag. E.g., this input:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;single asterisks&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;single underscores&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;double asterisks&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;double underscores&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Code
&lt;/h3&gt;

&lt;p&gt;To indicate a span of code, wrap it with backtick quotes (&lt;code&gt;`&lt;/code&gt;).&lt;br&gt;
Unlike a pre-formatted code block, a code span indicates code within a&lt;br&gt;
normal paragraph. For example:&lt;/p&gt;

&lt;p&gt;Use the &lt;code&gt;printf()&lt;/code&gt; function.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Easily Use SSL on Nginx With Certbot</title>
      <dc:creator>slashtechno</dc:creator>
      <pubDate>Thu, 18 Nov 2021 23:04:58 +0000</pubDate>
      <link>https://dev.to/slashtechno/ssl-on-nginx-using-certbot-24hi</link>
      <guid>https://dev.to/slashtechno/ssl-on-nginx-using-certbot-24hi</guid>
      <description>&lt;h3&gt;
  
  
  Install Certbot
&lt;/h3&gt;

&lt;h6&gt;
  
  
  Full instructions are &lt;a href="https://certbot.eff.org/instructions?ws=nginx&amp;amp;os=debian-10" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/h6&gt;

&lt;p&gt;To install Certbot, you should have Snap installed as well. For instructions, follow &lt;a href="https://snapcraft.io/docs/installing-snapd" rel="noopener noreferrer"&gt;this&lt;/a&gt; tutorial.&lt;br&gt;&lt;br&gt;
Then, update snap&lt;br&gt;
&lt;code&gt;sudo snap install core; sudo snap refresh core&lt;/code&gt;&lt;br&gt;
Finally in order to install Cerbot, run the follwing&lt;br&gt;
&lt;code&gt;sudo snap install --classic certbot&lt;/code&gt;&lt;br&gt;
&lt;code&gt;sudo ln -s /snap/bin/certbot /usr/bin/certbot&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Set up Nginx
&lt;/h3&gt;

&lt;p&gt;To use Certbot you should have &lt;code&gt;server_name&lt;/code&gt; in your Ngnix config. For example, this is a sample of how my Nginx config file looked like before Certbot.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="err"&gt;server&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="err"&gt;root&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;/home/pi/website;&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="err"&gt;server_name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;example.slashtechno.com;&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you have the config set up properly, restart nginx. On most systems it will be the following command.&lt;br&gt;
&lt;code&gt;sudo service nginx restart&lt;/code&gt;  &lt;/p&gt;

&lt;h3&gt;
  
  
  Using Certbot
&lt;/h3&gt;

&lt;h5&gt;
  
  
  Running Certbot for use with Nginx
&lt;/h5&gt;

&lt;p&gt;&lt;code&gt;sudo certbot --nginx&lt;/code&gt;  &lt;/p&gt;

&lt;h5&gt;
  
  
  Removing a certificate
&lt;/h5&gt;

&lt;p&gt;&lt;code&gt;sudo certbot delete&lt;/code&gt;&lt;/p&gt;

</description>
      <category>nginx</category>
      <category>linux</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Hello, world!</title>
      <dc:creator>slashtechno</dc:creator>
      <pubDate>Sat, 06 Nov 2021 12:57:49 +0000</pubDate>
      <link>https://dev.to/slashtechno/hello-world-5016</link>
      <guid>https://dev.to/slashtechno/hello-world-5016</guid>
      <description>&lt;p&gt;This is my first post on Dev.&lt;/p&gt;

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