<?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: Limon Safayet</title>
    <description>The latest articles on DEV Community by Limon Safayet (@limonsafayet).</description>
    <link>https://dev.to/limonsafayet</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%2F517978%2Fb78ca1c8-0e52-4d1f-af19-c9deb436bfcd.jpg</url>
      <title>DEV Community: Limon Safayet</title>
      <link>https://dev.to/limonsafayet</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/limonsafayet"/>
    <language>en</language>
    <item>
      <title>How to see branch name on terminal in ubuntu 22.04</title>
      <dc:creator>Limon Safayet</dc:creator>
      <pubDate>Sat, 02 Sep 2023 04:48:45 +0000</pubDate>
      <link>https://dev.to/limonsafayet/how-to-see-branch-name-on-terminal-in-ubuntu-2204-54j5</link>
      <guid>https://dev.to/limonsafayet/how-to-see-branch-name-on-terminal-in-ubuntu-2204-54j5</guid>
      <description>&lt;p&gt;To see the current branch name in the terminal when you are working with Git repositories in Ubuntu 22.04, you can use a combination of commands and customizing your shell prompt. Here's a step-by-step guide on how to do this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Check if Git is Installed:&lt;/strong&gt;
Make sure you have Git installed on your Ubuntu system. You can do this by running the following command:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   git &lt;span class="nt"&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If Git is not installed, you can install it using &lt;code&gt;apt&lt;/code&gt;:&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;apt update
   &lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Install a Git Prompt Tool (Optional):&lt;/strong&gt;
There are various tools and scripts available that can help you display Git branch information in your terminal prompt. One popular option is "git-prompt." You can install it using &lt;code&gt;apt&lt;/code&gt;:
&lt;/li&gt;
&lt;/ol&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;apt &lt;span class="nb"&gt;install &lt;/span&gt;git-extras
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Configure Your Shell Prompt:&lt;/strong&gt;
You can customize your shell prompt to include the current Git branch. To do this, you need to edit your shell configuration file (e.g., &lt;code&gt;~/.bashrc&lt;/code&gt; for Bash or &lt;code&gt;~/.zshrc&lt;/code&gt; for Zsh) and add the following lines:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For Bash (default Ubuntu shell):&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="c"&gt;# Add the following to your ~/.bashrc file&lt;/span&gt;
   parse_git_branch&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
       git branch 2&amp;gt; /dev/null | &lt;span class="nb"&gt;sed&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="s1"&gt;'/^[^*]/d'&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="s1"&gt;'s/* \(.*\)/ (\1)/'&lt;/span&gt;
   &lt;span class="o"&gt;}&lt;/span&gt;

   &lt;span class="nv"&gt;PS1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\[\0&lt;/span&gt;&lt;span class="s2"&gt;33[01;32m&lt;/span&gt;&lt;span class="se"&gt;\]\u&lt;/span&gt;&lt;span class="s2"&gt;@&lt;/span&gt;&lt;span class="se"&gt;\h\[\0&lt;/span&gt;&lt;span class="s2"&gt;33[00m&lt;/span&gt;&lt;span class="se"&gt;\]&lt;/span&gt;&lt;span class="s2"&gt;:&lt;/span&gt;&lt;span class="se"&gt;\[\0&lt;/span&gt;&lt;span class="s2"&gt;33[01;34m&lt;/span&gt;&lt;span class="se"&gt;\]\w\[\0&lt;/span&gt;&lt;span class="s2"&gt;33[00m&lt;/span&gt;&lt;span class="se"&gt;\]\$&lt;/span&gt;&lt;span class="s2"&gt;(parse_git_branch)&lt;/span&gt;&lt;span class="se"&gt;\$&lt;/span&gt;&lt;span class="s2"&gt; "&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For Zsh:&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="c"&gt;# Add the following to your ~/.zshrc file&lt;/span&gt;
   parse_git_branch&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
       git branch 2&amp;gt; /dev/null | &lt;span class="nb"&gt;sed&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="s1"&gt;'/^[^*]/d'&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="s1"&gt;'s/* \(.*\)/ (\1)/'&lt;/span&gt;
   &lt;span class="o"&gt;}&lt;/span&gt;

   &lt;span class="nv"&gt;PROMPT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'%n@%m:%~$(parse_git_branch) %# '&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Reload the Shell Configuration:&lt;/strong&gt;
After making changes to your shell configuration file, you need to either open a new terminal or run the following command to apply the changes to your current terminal session:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;source&lt;/span&gt; ~/.bashrc  &lt;span class="c"&gt;# For Bash&lt;/span&gt;
   &lt;span class="nb"&gt;source&lt;/span&gt; ~/.zshrc   &lt;span class="c"&gt;# For Zsh&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, when you navigate to a Git repository in your terminal, the current branch name should be displayed in your prompt. If you're using a different shell or prefer a different prompt style, you can adjust the customization accordingly.&lt;/p&gt;

</description>
      <category>git</category>
      <category>terminal</category>
      <category>ubuntu</category>
    </item>
    <item>
      <title>Assess your networking and security Skills</title>
      <dc:creator>Limon Safayet</dc:creator>
      <pubDate>Thu, 17 Jun 2021 11:52:20 +0000</pubDate>
      <link>https://dev.to/limonsafayet/assess-your-networking-and-security-skills-44cn</link>
      <guid>https://dev.to/limonsafayet/assess-your-networking-and-security-skills-44cn</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PAu8JYyZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vgbux79np94k6nx70ij6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PAu8JYyZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vgbux79np94k6nx70ij6.png" alt="Assess your networking and security Skills"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Are you a networking guy? Do you want to brush your networking skills?
&lt;/h3&gt;

&lt;p&gt;Network security is the practice of preventing and protecting against unauthorized intrusion into corporate networks. As a philosophy, it complements endpoint security, which focuses on individual devices; network security instead focuses on how those devices interact, and on the connective tissue between them. &lt;/p&gt;

&lt;p&gt;According to the SANS institute Network security is the process of taking physical and software preventative measures to protect the underlying networking infrastructure from unauthorized access, misuse, malfunction, modification, destruction, or improper disclosure, thereby creating a secure platform for computers, users, and programs to perform their permitted critical functions within a secure environment. &lt;/p&gt;

&lt;p&gt;A brief network security consists of Three layers, Protection, Detection, and Reaction. This is a kind of defense-in-depth strategy. But a system should not rely on a single line of the defense system, rather it should have multiple defense strategies lined up. &lt;/p&gt;

&lt;p&gt;So how can you test your network and security skills, there are some perfect websites to validate your skills and prove yourself as a network and security expert.&lt;/p&gt;

&lt;p&gt;You can visit &lt;a href="https://www.freetechexams.com/"&gt;Free Tech Exams&lt;/a&gt; website and attend CompTIA, A+, Network+, and Security+ Practice Test and Exam. They also provide certification on completion of your test. Each segment is consisting of 10 tests you can practice to.&lt;/p&gt;

&lt;p&gt;Another one you can visit &lt;a href="https://www.certiology.com/tutorials/networking-tutorials.html"&gt;Certiology's computer networking tutorials&lt;/a&gt;. This website provides free computer networking tutorials, notes, and study guides.  Also, you can give quizzes to analyzing your networking skills from here. Most importantly there is a career help section on this website. There you will find many tips and tricks regarding your career. Also, there are sample resumes and cover letters. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.tutorialology.com/computer-networking/"&gt;Free resource to learn computer networking basics on tutorialology&lt;/a&gt; is one more website. Here you will find Computer Networking Tutorials in three sections. First, you will get The Open System Interconnection (OSI) model layers tutorials. Then Network Topology tutorials lastly TCP/IP tutorials in total fifty-eight tutorials on this website. Good luck with becoming a network expert. &lt;/p&gt;

</description>
      <category>networking</category>
      <category>security</category>
      <category>skills</category>
      <category>techexam</category>
    </item>
    <item>
      <title>Check if a string contains Zalgo text</title>
      <dc:creator>Limon Safayet</dc:creator>
      <pubDate>Fri, 20 Nov 2020 17:26:32 +0000</pubDate>
      <link>https://dev.to/limonsafayet/check-if-a-string-contains-zalgo-text-10lg</link>
      <guid>https://dev.to/limonsafayet/check-if-a-string-contains-zalgo-text-10lg</guid>
      <description>&lt;h1&gt;
  
  
  What is Zalgo Text?
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://www.calculatorology.com/zalgo-text/"&gt;Zalgo Text&lt;/a&gt; typically falls in the CC and CD Unicode ranges. Writings are going through irregular moves and these alterations are making them exceptionally prevalent. Nearly every week, we meet with a modern fashion of content. But a few of the content styles are profoundly acknowledged and utilized over the web. Memes are prevalent to utilize extraordinarily styled writings. A few styles make them appealing while a few make them see revolting, but their topic is arranged sometime recently utilizing them. In this way, a few meme-makers utilize peculiar content styles fair to form their meme scary. Among those weird styles, Zalgo text style is one of them.&lt;/p&gt;

&lt;h1&gt;
  
  
  How Zalgo text generator works
&lt;/h1&gt;

&lt;p&gt;The &lt;a href="https://zalgotext.mobi"&gt;Zalgo text generator&lt;/a&gt; adds symbols on top, beneath and in the middle of your text. Putting stuff in the middle is discouraged, because some browsers and system that are not as good with symbols, are going to turn some letters into squares then.&lt;/p&gt;

&lt;h1&gt;
  
  
  How to find is a string contains Zalgo text
&lt;/h1&gt;

&lt;p&gt;Zalgo text is made from a multitude of Unicode diacritic marks. For that reason if anyone need to check if a string contains Zalgo text using this &lt;strong&gt;/[\xCC\xCD]/&lt;/strong&gt; regular expression you can check it. This is a example in JavaScript.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if ( str.match('/[\xCC\xCD]/') ) {
    alert('This is a Zalgo text');
 }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is in Python&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import re

#Check if the string contains Zalgo text:

txt = "H̛̛͠ȩl̨̀͞l̨̨͘ơ̧ W͠͡͠or̶͜ld̀"
x = re.search("/[\xCC\xCD]/", txt)

if x:
  print("YES! This string contains Zalgo text!")
else:
  print("No match")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is in PHP&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php
$str = "H̛̛͠ȩl̨̀͞l̨̨͘ơ̧ W͠͡͠or̶͜ld̀";
$pattern = "/[\xCC\xCD]/";
echo preg_match($pattern, $str); // Outputs 1
?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is in C#&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public bool IsZalgoText(String str)  
    {  
        Regex objNaturalPattern = new Regex("/[\xCC\xCD]/");  
        if(objNotNaturalPattern.IsMatch(str)){
          return true;
        } 
        else{
          return false;
        }
    }  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Thanks and Happy Codding :)&lt;/p&gt;

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