<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hivel Krasniqi on Medium]]></title>
        <description><![CDATA[Stories by Hivel Krasniqi on Medium]]></description>
        <link>https://medium.com/@hivelkrasniqi?source=rss-8ea1ea5138ee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*inRLpGcHU1idhrtX92BOkQ.png</url>
            <title>Stories by Hivel Krasniqi on Medium</title>
            <link>https://medium.com/@hivelkrasniqi?source=rss-8ea1ea5138ee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 04:01:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hivelkrasniqi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Forgotten Jenkins Admin User/Password]]></title>
            <link>https://blog.devgenius.io/forgotten-jenkins-admin-user-password-d7de780fa5bb?source=rss-8ea1ea5138ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7de780fa5bb</guid>
            <category><![CDATA[passwords]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[jenkins]]></category>
            <dc:creator><![CDATA[Hivel Krasniqi]]></dc:creator>
            <pubDate>Fri, 21 Oct 2022 14:09:35 GMT</pubDate>
            <atom:updated>2022-10-26T18:08:03.194Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CTN3tyVOEGBhKomo" /><figcaption>Photo by <a href="https://unsplash.com/@thetonik_co?utm_source=medium&amp;utm_medium=referral">Tonik</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you have forgotten the Jenkins admin user or password and can’t login to a Jenkins user interface (UI) as an administrator, Jenkins doesn’t provide a straightforward way to reset the Admin account password. <br>You can connect to the Jenkins server via SSH and reset the Jenkins admin password.</p><p>The simplest solution is to altogether disable security in /var/lib/jenkins/config.xml file.</p><p>So we will follow these steps:</p><ol><li>Connect with ssh to your Jenkins server.</li><li>Let&#39;s see the config.xml file</li></ol><pre>$ cd /var/lib/jenkins<br>$ ls</pre><blockquote>Important: You will see config.xml file, you have to make a copy of a Jenkins config file.</blockquote><p>3. Make a backup copy of a Jenkins config file.</p><pre>$ cp /var/lib/jenkins/config.xml /var/lib/jenkins/config.xml.back<br>$ ls</pre><blockquote>Check your config.xml.back file with ls command.</blockquote><p>4. Open the config file /var/lib/jenkins/config.xml to disable the security:</p><pre>$ sudo vi /var/lib/jenkins/config.xml</pre><p>Press i to enter <strong>vim</strong> insert mode. Modify the value between the &lt;useSecurity&gt; tags and set the value to false</p><blockquote>In config.xml file &lt;useSecurity&gt;true&lt;/useSecurity&gt; will be change with &lt;useSecurity&gt;false&lt;/useSecurity&gt;</blockquote><p>Save your changes by pressing ESC and then enter wq to write your changes and then exit the editor.</p><p>5. Restart the Jenkins service:</p><pre>$ systemctl restart jenkins</pre><blockquote>After restarting you can check the Jenkins service is running with sudo systemctl status jenkins command.</blockquote><p>Go to the Jenkins UI, won’t be asked for any credentials this time because you will be logged in as an anonymous user to the Jenkins</p><p>And reset the admin password:</p><ol><li>Navigate to &quot;Manage Jenkins&quot; -&gt; &quot;Security&quot; -&gt; &quot;Configure Global Security&quot; -&gt; &quot;Authentication&quot;</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u4jAO0kxY5V5YSmWYh0MtA.png" /></figure><p>2. Select the &quot;Security Realm&quot; (e.g. &quot;Jenkins’ own user database&quot;) and click on &quot;Save&quot;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F0QuEuNWAxJ4-9nHWOrY9A.png" /></figure><p>3. Go to &quot;Dashboard&quot;-&gt;&quot;People&quot; -&gt; Click on a username for which you want to change the password (e.g. admin) -&gt; &quot;Configure&quot; -&gt; Enter a new password in the &quot;Password&quot; and &quot;Confirm password&quot; fields and click on &quot;Save&quot;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*p-osyfsych6ocZpMFrkC2g.png" /></figure><p>Once the admin password is reset, restore the previous /var/lib/jenkins/config.xml file and restart Jenkins:</p><pre>$ mv /var/lib/jenkins/config.xml.back /var/lib/jenkins/config.xml<br>$ systemctl restart jenkins</pre><h3>Thanks for Reading!</h3><p><em>If you like my work and want to support me…</em></p><ol><li><em>The BEST way is to follow me on Medium </em><a href="https://hivelkrasniqi.medium.com/"><em>here</em></a><em>.</em></li><li><em>Feel free to give claps, or write comments so I know how helpful this post was for you.</em></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7de780fa5bb" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/forgotten-jenkins-admin-user-password-d7de780fa5bb">Forgotten Jenkins Admin User/Password</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VSCode Extensions for DevOps]]></title>
            <link>https://blog.devgenius.io/vscode-extensions-for-devops-8a766e454266?source=rss-8ea1ea5138ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a766e454266</guid>
            <category><![CDATA[extension]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Hivel Krasniqi]]></dc:creator>
            <pubDate>Mon, 15 Aug 2022 15:11:17 GMT</pubDate>
            <atom:updated>2022-08-17T05:39:18.533Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jhANpg_JnsShUmzw" /><figcaption>Photo by <a href="https://unsplash.com/@writecodenow?utm_source=medium&amp;utm_medium=referral">Boitumelo Phetla</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Hello everyone. In this article, I added my extensions which I have used as a DevOps Engineer.</p><h3>Cloud</h3><p><a href="https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.aws-toolkit-vscode"><strong>AWS Toolkit</strong></a></p><p><em>The Toolkit for VS Code is an open-source extension for the Visual Studio Code (VS Code) editor. This extension makes it easier for developers to develop, debug locally, and deploy serverless applications that use Amazon Web Services (AWS).</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=kddejong.vscode-cfn-lint"><strong>CloudFormation Linter</strong></a></p><p><em>VS Code CloudFormation Linter uses cfn-lint to lint your CloudFormation templates.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=dannysteenman.cloudformation-yaml-snippets"><strong>CloudFormation Snippets</strong></a></p><p><em>This extension adds snippets for all the AWS CloudFormation resources into Visual Studio Code.</em></p><h3>Tools</h3><p><a href="https://marketplace.visualstudio.com/items?itemName=redhat.ansible"><strong>Ansible</strong></a></p><p><em>This extension adds language support for Ansible to Visual Studio Code and OpenVSX compatible editors by leveraging ansible-language-server.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=HashiCorp.terraform"><strong>HashiCorp Terraform</strong></a></p><p><em>The HashiCorp Terraform Visual Studio Code (VS Code) extension with the Terraform Language Server adds editing features for Terraform files such as syntax highlighting, IntelliSense, code navigation, code formatting, module explorer and much more!</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker"><strong>Docker</strong></a></p><p><em>Docker is the go-to plugin extension on Visual Studio Code for anything Docker-related. This extension lets you easily build, manage, and deploy containerized apps and provides single-click debugging. You can easily edit and generate docker files with Docker.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=ms-kubernetes-tools.vscode-kubernetes-tools"><strong>Kubernetes</strong></a></p><p><em>An absolute recommendation to anyone using kubernetes, especially if you are just starting with it as it is a much better learning curve than having to learn the CLI commands.</em></p><h3>Productivity</h3><p><a href="https://marketplace.visualstudio.com/items?itemName=hilleer.yaml-plus-json"><strong>YAML&amp;JSON</strong></a></p><p><em>Easily convert YAML to JSON or vice versa. Conversion can be done by each individual file or by all files in a folder.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml"><strong>YAML</strong></a></p><p><em>YAML can be tricky to set up. One stray space or incorrect tab can result in an invalid YAML file. The YAML plugin is maintained by Red Hat and acts as a validation tool.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh"><strong>Remote-SSH</strong></a></p><p><em>This extension lets you use a remote server as your development environment. Your connection remains secure via SSH, and with Remote — SSH, you can do it right inside VS Code.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers"><strong>Remote Containers</strong></a></p><p><em>The Remote — Containers extension lets you use a </em><a href="https://docker.com/"><em>Docker container</em></a><em> as a full-featured development environment. Whether you deploy to containers or not.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=GitLab.gitlab-workflow"><strong>GitLab Workflow</strong></a></p><p><em>This extension integrates GitLab into Visual Studio Code.</em></p><h3>Aesthetics Productivity Workflow</h3><p><a href="https://marketplace.visualstudio.com/items?itemName=vscode-icons-team.vscode-icons"><strong>Vscode Icons</strong></a></p><p><em>Vscode-icons supports globalization and comes with the ability to customize with your icon packs, automatically detects your projects, and allows for custom configurations.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments"><strong>Better Comments</strong></a></p><p><em>Better Comments takes it to the next level by allowing you to highlight your comments based on different types of annotations.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=jeremyrajan.file-script-runner"><strong>File Script runner</strong></a></p><p><em>Adds capability to run a global command via built in terminal for a particular file. What it does is, prepending the command with the file name.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance"><strong>Pylance</strong></a></p><p><em>Pylance is an extension that works alongside Python in Visual Studio Code to provide performant language support. Under the hood, Pylance is powered by Pyright, Microsoft’s static type checking tool. Using Pyright, helping you write better code faster.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=cstrap.flask-snippets"><strong>Flask Snippets</strong></a></p><p><em>Flask snippets collections. It is usefull when you use flask on Python.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=run-at-scale.terraform-doc-snippets"><strong>Terraform doc snippets</strong></a></p><p><em>A vscode extension that yanks resource and data source documentation from Terraform provider repos and transforms them into structured VS Code snippets. Over 9000 snippets included.</em></p><h3>Versioning, and Collaboration</h3><p><a href="https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory"><strong>Git History</strong></a></p><p><em>Git History is a VS Code plugin extension that lets you look at the history and search for commits, messages, branches, files, and authors with ease. In addition to this, it lets you cherry-pick commits, compare files, soft and hard resets, revert, merge and rebase with a few simple clicks and commands.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=formulahendry.docker-explorer"><strong>Docker Explorer</strong></a></p><p><em>Docker is a fantastic idea but keeping on top of all your images, hubs, and registries can be complicated. Docker Explorer makes it easier and directly connects to Azure Container Registry for live management.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack"><strong>Remote Development</strong></a></p><p><em>You’ve got a container. Remote development lets you connect, develop and deploy environments. Developed and released by Microsoft, this plugin is in the active development phase and supports WSL, SSH, and containers connection for remote app development.</em></p><h3>Formatting and Linting</h3><p><a href="https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments"><strong>Better Comments</strong></a></p><p><em>Better Comments takes comments to the next level by allowing you to highlight your comments based on different types of annotations.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one"><strong>Markdown All in One</strong></a></p><p><em>To the clear documentation and images, making this a really convenient and easy to learn productivity tool when writing README docs in Markdown for example.</em></p><h3>Language-specific</h3><p><a href="https://marketplace.visualstudio.com/items?itemName=ms-python.python"><strong>Python</strong></a></p><p><em>The Python plugin for VS Code is a rich support that includes Pylance IntelliSense, linting, debugging, code navigation, code formatting, refactoring, and variable explorer.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell"><strong>PowerShell</strong></a></p><p><em>This extension provides rich PowerShell language support for </em><a href="https://github.com/Microsoft/vscode"><em>Visual Studio Code</em></a><em> (VS Code). Now you can write and debug PowerShell scripts using the excellent IDE-like interface that Visual Studio Code provides.</em></p><h4>Thanks for Reading!</h4><p><em>If you like my work and want to support me…</em></p><ol><li><em>The BEST way is following me on Medium </em><a href="https://hivelkrasniqi.medium.com/"><em>here</em></a><em>.</em></li><li><em>Feel free to give claps, or writing comments so I know how helpful this post was for you.</em></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a766e454266" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/vscode-extensions-for-devops-8a766e454266">VSCode Extensions for DevOps</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Subnetting]]></title>
            <link>https://hivelkrasniqi.medium.com/subnetting-7f6eaf9574f7?source=rss-8ea1ea5138ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f6eaf9574f7</guid>
            <category><![CDATA[network]]></category>
            <category><![CDATA[ip]]></category>
            <category><![CDATA[subnet]]></category>
            <dc:creator><![CDATA[Hivel Krasniqi]]></dc:creator>
            <pubDate>Sat, 13 Aug 2022 23:07:37 GMT</pubDate>
            <atom:updated>2022-08-13T23:07:37.291Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*bdmcSgPfjlEJeUMQ4Q5kTQ.png" /></figure><h4>What is Subnetting?</h4><p>The process of taking an extensive network and splitting into smaller networks is known as subnetting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*bdmcSgPfjlEJeUMQ4Q5kTQ.png" /></figure><p><strong>Why to use subnetting?</strong><br>● Reduced Network Traffic<br>● Optimized Network Performance<br>● Simplified Management. Easier to identify and isolate network problems</p><h4>What is Octet?</h4><p>Before you understand Subnets you need to understand Octet.<br>Devices using TCP/IP infrastructure have IP addresses. IP addresses are 32 bits and consist of 4 octets. This structure is called IPv4. The octet expression here is each 8-bit block. For example, each field separated by dots in 192.168.1.3 is an octet. The binary equivalent of this IP address shown in the decimal number system is 110000000.10101000.00000001.00000011. As you can see, each octet contains 8 bits.</p><h4>IP Adress Classes</h4><p>Another feature we need to know before switching to subnetting: We need to know why we use IP blocks and their contents. There are 5 IP address classes.</p><pre>Class A: 1.0.0.0–126.255.255.255 (0–127)</pre><pre>Class B: 128.0.0.0–191.255.255.255 (128–191)</pre><pre>Class C: 192.0.0.0–223.255.255.255 (192–223)</pre><pre>Class D: 224.0.0.0–239.255.255.255 (224–239)</pre><pre>Class E: 240.0.0.0–254.255.255.255 (240–255)</pre><p><em>Class D addresses are used for multicast operations, and class E addresses are used for research purposes.</em></p><blockquote><em>If your IP is </em><strong><em>192</em></strong><em>.0.2.30, it is Class C so Subnet Mask is 255.255.255.0</em></blockquote><blockquote><em>For IP </em><strong><em>130</em></strong><em>.0.0.30, it Class B so Subnet Mask is 255.255.0.0</em></blockquote><blockquote>Default subnet mask information by classes:</blockquote><blockquote>Class A: 255.0.0.0 — Over <strong>16 million</strong> host identifiers</blockquote><blockquote>Class B: 255.255.0.0–<strong>65,535</strong> host identifiers</blockquote><blockquote>Class C: 255.255.255.0–<strong>254</strong> host identifiers</blockquote><h4>Subnetting</h4><p>The subnet mask determines the size of the subnet and how many IPs it will have. The subnet mask should be chosen according to the number of users and the desired number of IPs.</p><p>The class address that represents the computers on the same subnet is called the Network ID. These addresses cannot be assigned to any device as IP and are the first addresses of subnets created.</p><p>Addresses used to represent all addresses on any network are called Broadcast Addresses. These addresses, like the network address, cannot be assigned as an IP address to any computer on the network and are the last addresses of the subnets created.</p><p>The following example shows the separation of the network prefix and the host identifier from an address:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WKwZsiXWRXLiVU5StPsIFA.png" /></figure><blockquote>If you do not know the concepts of Subnet, please read the concepts section at the bottom of the article.</blockquote><p>The following diagram modifies the above example by moving 2 bits from the host part to the network prefix to form four smaller subnets each one quarter of the previous size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yx9EVNnn6WzFFsJM05wigQ.png" /></figure><ol><li>Bits of 1 in a subnet mask represent the network address portion of the IP address, and bits of 0 represent the host portion of the IP address.</li><li>The network address is found when the subnet mask and the IP address are logically AND.</li><li>“2^n-2” gives the number of hosts . 2^n gives the number of subnets.</li></ol><pre>Question 1:</pre><pre>What is the maximum number of IP addresses that can be assigned to hosts on a local subnet that uses the 255.255.255.224 subnet mask?</pre><pre>Answer 1:</pre><pre>255 →11111111(2⁷+2⁶+2⁵+2⁴+2³+2²+2¹+2⁰)</pre><pre>224 →11100000(2⁷+2⁶+2⁵)</pre><pre>Subnet mask → 11111111.11111111.11111111.11100000</pre><pre>3 bits on and 5 bits off. This provides 8 subnets(2³), each with 30 hosts(2⁵ -2).</pre><pre>Question 2:</pre><pre>If an Ethernet port on a router were assigned an IP address of 172.16.112.1/25, what would be the valid subnet address of this host?</pre><pre><strong>A.</strong>172.16.112.0 <strong>B.</strong>172.16.0.0 <strong>C.</strong>172.16.96.0 <strong>D.</strong>172.16.255.0</pre><pre>Answer 2: Answer is A. Used with a Class B network.<br>Subnet mask-&gt; 11111111.11111111.11111111.10000000<br>The third and fourth octets are used for subnetting with a total of 9 subnet bits. Since there is only 1 bit in the fourth octet, the bit is either off or on-which is a value of 0 or 128. The host in the question is in the 0 subnet, which has a broadcast address of 127 since 128 is the next subnet.</pre><h4>Concepts</h4><p><strong>IP Address:</strong></p><p>It is a unique string of characters that identifies each computer using the Internet Protocol to communicate over a network. You can find out your IP address by searching “what is my ip address” into Google.</p><p>Important difference between IPv4 and IPv6</p><ol><li>Example of IPv4: 66.94.29.13<strong> / </strong>Example of IPv6: 2001:0000:3238:DFE1:0063:0000:0000:FEF</li><li>IPv4 has a 32-bit address length / IPv6 has a 128-bit address length</li><li>Address representation of IPv4 is in decimal / Address Representation of IPv6 is in hexadecimal.</li><li>IPv4’s IP addresses are divided into five different classes. Class A , Class B, Class C , Class D , Class E. / IPv6 does not have any classes of IP address.</li></ol><p><strong>Subnet mask:</strong></p><p>Subnet classes are made unique by the number of bits their IP addresses have dedicated to a network and the number of bits dedicated to hosts. They each have a default subnet mask. Classes can be identified by the number in the first octet of their address.</p><p><strong>Network prefix:</strong></p><p>It cannot be given to a device as an IP address. It is the part used as a representation of a group of IP blocks. While calculating the Network ID, the IP address and subnet mask information in the 10 system are written one under the other and put into the AND operation. The result is the Network ID value.</p><p><strong>Host identifier:</strong></p><p>The Host ID is the portion of an IP address that uniquely identifies a host on a given TCP/IP network. You find the host ID by logically NANDing the binary form of the IP address with the binary form of the subnet mask for the network.</p><p><strong>CIDR:</strong></p><p>CIDR, which stands for Classless Inter-Domain Routing, is an IP addressing scheme that improves the allocation of IP addresses. It replaces the old system based on classes A, B, and C. This scheme also helped greatly extend the life of IPv4 as well as slow the growth of routing tables.</p><p><strong>Default gateways:</strong></p><p>When a host wants to communicate with another device, it performs a comparison process using the defined subnet mask with the destination IP address and its own IP address.</p><p>Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f6eaf9574f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elastic Block Store (EBS) Volumes]]></title>
            <link>https://hivelkrasniqi.medium.com/elastic-block-store-ebs-volumes-a6d65747cf25?source=rss-8ea1ea5138ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6d65747cf25</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ebs-volume]]></category>
            <dc:creator><![CDATA[Hivel Krasniqi]]></dc:creator>
            <pubDate>Tue, 07 Jun 2022 18:04:22 GMT</pubDate>
            <atom:updated>2022-06-07T18:04:22.352Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NjbxhJlk9cV2g4x-" /></figure><p>There are three types of storage on AWS;</p><ul><li>Block-based Storage: Instance Store and <strong>Elastic Block Store (EBS)</strong></li><li>Object-based Storage: Simple Storage Service (S3)</li><li>File-based Storage: Elastic File System (EFS)</li></ul><p>EBS →Persistent, durable, low-latency block-level storage volumes for EC2 instances.</p><p>S3 →Economics, pay as you go. No upfront investment, no commitment. Secure, durable, and scalable object storage infrastructure.</p><p>EFS → Simple, scalable, shared file storage service for Amazon EC2 instances. Reduce time to market. Focus on your business, not your infrastructure.</p><p>We’ll focus on the EBS for this article.</p><h4>What is Volumes?</h4><p>An Amazon EBS volume is a durable, block-level storage device that you can attach to your instances. After you attach a volume to an instance, you can use it as you would use a physical hard drive. EBS volumes are flexible.</p><p>You can use EBS volumes as primary storage for data that requires frequent updates, such as the system drive for an instance or storage for a database application.</p><blockquote>You can attach multiple EBS volumes to a single instance. The volume and instance must be in the same Availability Zone.</blockquote><ul><li>Volumes are durable storage devices (virtual) that can be attached to EC2 instances.</li><li>They are location in which the associated machine stores its data or loads its applications.</li><li>There are two volume types in the block storage category. These are Instance Store (Ephemeral) and <strong>Elastic Block Store (EBS)</strong>.</li></ul><h3>Block-based Storage</h3><h4>Instance Store and Elastic Block Store</h4><h4>Instance Store</h4><p>Instance Store is located on disks that are physically attached to the host computer.</p><p>You can specify instance store for an instance only when you launch it.<br><strong> The data in an instance store persists only during the lifetime of its associated instance.</strong><br>Data in the instance store is lost under these situations:</p><ul><li><strong>The underlying disk drive fails</strong></li><li><strong>The instance hibernates</strong></li><li><strong>The instance stops</strong></li><li><strong>The instance terminates</strong></li></ul><blockquote>That is why we usually choose EBS.</blockquote><h4>Elastic Block Store (EBS)</h4><p>Elastic Block Store is connected to the on the network, hypervisor and accessible to each machine associated with the hypervisor.</p><ul><li><strong>EBS volumes are flexible.</strong></li><li><strong>EBS volumes persist independently from the running life of an EC2 instance.</strong></li><li><strong>You can attach multiple EBS volumes to a single instance. The volume and instance must be in the same Availability Zone.</strong></li><li><strong>You can use Multi-Attach to mount a volume to multiple instances at the same time.(Considerations and limitations)</strong></li></ul><p><strong><em>EC2 INSTANCE STORE </em>VS ELASTIC BLOCK STORE</strong></p><ul><li><em>Direct connect to one instance </em>X <strong>Connect to different instances (</strong>strong side<strong>)</strong></li><li><em>Non-persistent data storage </em>X <strong>Persistent data storage (</strong>strong side<strong>)</strong></li><li><em>No replication</em> X <strong>Replicates data in the same AZ (</strong>strong side<strong>)</strong></li><li><em>Snapshots are not available</em> X <strong>Snapshots are available (</strong>strong side<strong>)</strong></li><li><em>Both SSD and HDD Backed</em> X Both SSD and HDD Backed</li></ul><h4>EBS Volumes</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F_kyoIS1M5JTAbNIXOPvGA.jpeg" /></figure><p>There are 6 types of volumes in 2 categories for the different use cases.</p><p>1-HDD-backed volumes are used for large streaming workloads where throughput is a better performance measure than IOPS.</p><blockquote>Throughput is that how much data can be written to a disc in 1 second.</blockquote><p>ST1 is for big data, data warehouse, log processing etc. A low-cost HDD designed for frequently accessed, throughput-intensive workloads.</p><p>SC1 is for throughput-oriented storage for data that is infrequently accessed. The lowest-cost HDD design for less frequently accessed workloads.</p><p>2-SSD-backed volumes are used for frequent read/write operations where the dominant performance attribute is IOPS.</p><blockquote>IOPS is that the number of transactions in 1 second. It is needed where continuous read-write operations are made.</blockquote><p>If you need high performance, you should use IOPS(IO2, IO3). Provides high performance for mission-critical, low-latency, or high-throughput workloads.</p><p>If you need medium performance, you should use GP2, GP3. You can use for Development and test environments. Provides a balance of price and performance.</p><blockquote>In Summary, <strong>EBS volumes are flexible, persist independently from the running life of an EC2 instance. You can attach multiple EBS volumes to a single instance. The volume and instance must be in the same Availability Zone. You can use Multi-Attach to mount a volume to multiple instances at the same time.(Considerations and limitations)</strong></blockquote><blockquote>Elastic Block Store; Connect to different instances, Persistent data storage, Replicates data in the same AZ, Snapshots are available</blockquote><blockquote>There are 2 types of elastic block storage.</blockquote><blockquote>1- HDD (ST1, SC1)</blockquote><blockquote>ST1 is for big data, data warehouse, log processing etc.<br>SC1 is for less frequently accessed workloads.</blockquote><blockquote>2- SSD (IOPS(IO2, IO3), GP2, GP3)</blockquote><blockquote>2–1 IOPS(IO2, IO3). Provides high performance for mission-critical, low-latency, or high-throughput workloads.<br>2–2 GP2, GP3. When you need medium performance. You can use for Development and test environments.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6d65747cf25" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting an AWS Billing Alarm to monitor your estimated AWS charges]]></title>
            <link>https://hivelkrasniqi.medium.com/setting-an-aws-billing-alarm-to-monitor-your-estimated-aws-charges-6af349ac5d5?source=rss-8ea1ea5138ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/6af349ac5d5</guid>
            <category><![CDATA[aws-cloudwatch]]></category>
            <dc:creator><![CDATA[Hivel Krasniqi]]></dc:creator>
            <pubDate>Fri, 03 Jun 2022 15:15:06 GMT</pubDate>
            <atom:updated>2022-06-03T15:15:06.780Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5sD3uHwt2w3DbId5" /></figure><p>Although we use a free account, there are some limitations to the free policy due to the free tier features. Therefore, setting up a billing alarm will allow us to be aware of any unintended charges.</p><h4>Enabling billing alerts</h4><ol><li>Enter AWS Console as a root user.</li><li>Write <strong>‘Billing’ on the </strong>search bar.</li><li>On the left hand side you will see <strong>Billing Preferences</strong> under <strong>Preferences. </strong>Choose<strong> Billing Preferences.</strong></li></ol><p><em>3.1 Choose </em><strong><em>Receive PDF Invoice By Email </em></strong><em>box . So you will receive the usage in pdf format as an e-mail.</em></p><p><em>3.2 Choose </em><strong><em>Receive Free Tier Usage Alerts </em></strong><em>box. Turn on this feature to receive email alerts when your AWS service usage is approaching, or has exceeded, the AWS Free Tier usage limits. If you wish to receive these alerts at an email address that is not the primary email address associated with this account, please specify the email address below.</em></p><p><em>3.3 In the Email Address section, your e-mail address will appear, this is the e-mail address we used when registering. You can edit this and use another e-mail address for alarms.</em></p><p><em>3.4 Choose </em><strong><em>Receive Billing Alerts </em></strong><em>box. Turn on this feature to monitor your AWS usage charges and recurring fees automatically, making it easier to track and manage your spending on AWS. You can set up billing alerts to receive email notifications when your charges reach a specified threshold.</em></p><p><em>3.5 ChooseSave Preferences. At the top centre of the screen you will see the ‘Preferences saved’ pop-up.</em></p><h3>Creating a billing alarm</h3><p>We can access this section both from Cloudwatch Service or from the page where we set billing alarm by clicking Manage Billing Access.</p><p>On the left hand side menu; Choose CloudWatch →Alarms →Billing</p><blockquote>Important: If necessary, change the Region to US East (N. Virginia). Billing metric data is stored in this Region and represents worldwide charges.</blockquote><ol><li>In the navigation pane, choose <strong>Create Alarm</strong></li><li><strong>Specify metric and conditions:</strong></li></ol><p>In the Conditions section, we write Static more than <strong>5$.</strong></p><p>3. <strong>Configure Actions: </strong>In this section we will choose what to do when it is greater than 5$.</p><p><em>3.1 Alarm state trigger: Choose </em><strong><em>In Alarm</em></strong></p><blockquote>Note: It is enough to receive notification only in case of In alarm.</blockquote><p><em>3.2 Select an SNS Topic: </em><strong><em>Create a new topic</em></strong></p><p><em>3.3 Name: </em><strong><em>write a name(like BillingTopic)</em></strong></p><p><em>3.4 Email end points that will receive the notification: </em><strong><em>Write here your mail adres</em></strong></p><p><em>3.5 </em><strong><em>Create Topic</em></strong></p><p><em>Than we will see Billing Topic under Topics in the SNS service.</em></p><p><em>Go to your mailbox and confirm the mail address in the received mail.</em></p><p>4. <strong>Add Name and description: </strong>Let’s make naming and explanation in this section</p><p>5. <strong>Preview and create: </strong>Choose<strong> </strong>Create alarm button.</p><p><strong>Now we have an alarm.</strong></p><p>Extra resources:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FpXTxmXhRZV4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DpXTxmXhRZV4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FpXTxmXhRZV4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8908db862b6095d8a4db12c7da2f9fd/href">https://medium.com/media/f8908db862b6095d8a4db12c7da2f9fd/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F_CWKK0sypkE%3Fstart%3D61%26feature%3Doembed%26start%3D61&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D_CWKK0sypkE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F_CWKK0sypkE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2faac5a9d7e2103717ce5f1c5fcdb523/href">https://medium.com/media/2faac5a9d7e2103717ce5f1c5fcdb523/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6af349ac5d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GitHub: Push your first file to new repo]]></title>
            <link>https://hivelkrasniqi.medium.com/github-push-your-first-file-to-new-repo-7854837f3f4b?source=rss-8ea1ea5138ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/7854837f3f4b</guid>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Hivel Krasniqi]]></dc:creator>
            <pubDate>Mon, 30 May 2022 19:08:13 GMT</pubDate>
            <atom:updated>2022-05-30T19:08:13.076Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NFnJqusIhrS7CowP" /></figure><p>We created new repo in my previous <a href="https://hivelkrasniqi.medium.com/create-a-repository-on-github-f0f31f6cbdd8">post</a>, now we will push a file for the first time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DlxUmZwDLCiR5SKhDydu9w.png" /><figcaption>My test repo for this post</figcaption></figure><ol><li>Firstly enter your github account and open your repo.</li><li>Open your terminal, go to your file.</li></ol><p>For example I have a test file(Name: PAFNR) on my Desktop for use this post. And there is a .md file(<strong>Markdown/.md</strong> is a plain-text <strong>file</strong> format.) inside of PAFNR file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q0TVWScSJhsGtbgvVOLJaw.png" /><figcaption>You should see on terminal your file</figcaption></figure><p>3.Write `<strong><em>git init`</em></strong> command on your terminal and enter. You will create a .git file in your file.</p><p><em>Terminal gives an info like that : Initialized empty Git repository in `../Desktop/PAFNR/.git/`</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6tXMgFIn47CZ_9Qbx7_0yQ.png" /><figcaption>.git file can be hidden. Write the google ‘showing hidden files on Mac / Windows / Linux’</figcaption></figure><p>4. Write `<strong><em>git add .</em></strong>` It adds / stages all of the files in the current directory.</p><blockquote>To view the git status enter `<strong><em>git status</em></strong>` and you will see your file as red. Which means that your file is not staged yet.</blockquote><p>5. Enter `<strong><em>git commit -m “Write here your message”`.</em></strong></p><p>6. In your terminal/command line, type `<strong><em>git remote add origin https…</em></strong>`</p><blockquote>You will get <em>https…</em> part from your github repo, click code and you will see HTTPS as screenshoot.</blockquote><p>`<strong><em>git remote add origin </em></strong><a href="https://github.com/Hvlkrs/TestMedium.git"><strong><em>https://github.com/Hvlkrs/TestMedium.git</em></strong></a>`</p><p>Connects local repository to remote one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bb7z3uoYrE0JnntuPdRP8Q.png" /></figure><p>7. Push your branch to Github; `<strong><em>git push -u origin main</em></strong>`</p><p>8. Go back to the folder/repository screen on Github that you just left, and refresh it, and you should see your files there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HG5qjObUgxGMQRQpVzUznA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7854837f3f4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create a repository on GitHub]]></title>
            <link>https://hivelkrasniqi.medium.com/create-a-repository-on-github-f0f31f6cbdd8?source=rss-8ea1ea5138ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0f31f6cbdd8</guid>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Hivel Krasniqi]]></dc:creator>
            <pubDate>Mon, 30 May 2022 13:19:41 GMT</pubDate>
            <atom:updated>2022-05-30T13:19:41.434Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tLzybgHuF34DKxS0" /><figcaption>Photo by <a href="https://unsplash.com/@pankajpatel?utm_source=medium&amp;utm_medium=referral">Pankaj Patel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>You can store a project in GitHub repositories. You can share your code with your teammates or other people. And you can see and use people’s code.</p><h4>How can i create a repo?</h4><p>Enter you Github account, on your dashboard you will see your Repositories. Click the New button(It is a green button). You will see a page like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lRR24LFFDbRQ1EkX5NiQYQ.png" /></figure><p><strong>1-</strong>You should type a short, memorable name for your repository. For example, if you push your java projects you can write “My-JavaProjects”.</p><p><strong>2-</strong>Optionally, add a description of your repository. For example, “My repository for java projects.”</p><p><strong>3-</strong>Choose a repository visibility. (Public or Private)</p><blockquote>Public : Anyone on the internet can see this repository. You choose who can commit.</blockquote><blockquote>Private : You choose who can see and commit to this repository.</blockquote><p><strong>4-</strong>Click Add README file.</p><blockquote>This is where you can write a long description for your project. People can read your README file and understand your repo more easily.</blockquote><p><strong>5-</strong>Add .gitignore, optional</p><p>I do not but if you need you can add <a href="https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files">.gitignore</a>.</p><blockquote>“You can create a <em>.gitignore</em> file in your repository’s root directory to tell Git which files and directories to ignore when you make a commit. To share the ignore rules with other users who clone the repository, commit the <em>.gitignore</em> file in to your repository.”</blockquote><p><strong>6-</strong>Choose a<a href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository"> license</a>, optional</p><p>I do not but if you need you can add a license. A license tells others what they can and can’t do with your code.</p><blockquote>“Public repositories on GitHub are often used to share open source software. For your repository to truly be open source, you’ll need to license it so that others are free to use, change, and distribute the software.”</blockquote><p>Click the <strong>CREATE REPOSITORY. </strong>Now your repo is ready to use. You can start to push your files from your local.</p><p>Enjoy your repo. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0f31f6cbdd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Github Token and how can we create it?]]></title>
            <link>https://hivelkrasniqi.medium.com/what-is-github-token-and-how-can-we-create-it-7982e0124221?source=rss-8ea1ea5138ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/7982e0124221</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[token]]></category>
            <dc:creator><![CDATA[Hivel Krasniqi]]></dc:creator>
            <pubDate>Fri, 13 May 2022 14:39:15 GMT</pubDate>
            <atom:updated>2022-05-25T21:39:18.967Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tlYTWx4w5trz_wE8" /></figure><p>Github Tokens are an alternative to using passwords for authentication to GitHub when using the GitHub API or the command line.</p><blockquote>Note: It is very important to protect your token. So when you generate your token, copy and save in a private file. I am using <a href="https://bitwarden.com/">Bitwarden</a> to protect all my passwords.</blockquote><p><strong>Creating a token:</strong></p><p>1.Verify your email address, if it hasn’t been verified yet.</p><p>2.In the upper-right corner of any page, click your profile photo, then click Settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*z5PLq6ucGEaWn1Qek9huqQ.png" /></figure><p>3.In the left sidebar, click Developer settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rS4FYZQgTSZWCEP8GVP-Og.png" /></figure><p>4.In the left sidebar, click Personal access tokens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IzSIFeG7iiw9X6ylNFE1bQ.png" /></figure><p>5.Click Generate new token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vt8Op1UimYZCHR9-qxISCQ.png" /></figure><p>6.Give your token a descriptive name.</p><p>7.To give your token an expiration, select the Expiration drop-down menu, then click a default or use the calendar picker. (I suggest 90 days)</p><p>8.Select the scopes, or permissions, you’d like to grant this token. To use your token to access repositories from the command line, select repo. (you can select all)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X7yUsjkNCAPilXC_U1ig5Q.png" /></figure><p>9.Click Generate token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XAp1oHZoYMkPSOkughf5XQ.png" /></figure><p>Completed, now you can use your token in your projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7982e0124221" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS EC2 Launch Instance(Elastic Compute Cloud).]]></title>
            <link>https://hivelkrasniqi.medium.com/aws-ec2-launch-instance-elastic-compute-cloud-16d20c12c557?source=rss-8ea1ea5138ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/16d20c12c557</guid>
            <category><![CDATA[ec2-instance]]></category>
            <category><![CDATA[clarusway]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ec2]]></category>
            <dc:creator><![CDATA[Hivel Krasniqi]]></dc:creator>
            <pubDate>Thu, 12 May 2022 15:45:53 GMT</pubDate>
            <atom:updated>2022-05-12T17:41:24.648Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>AWS EC2</strong> enables users to create, edit, and manage an instance (virtual machine) on AWS.</p><p>Follow these steps <strong>AWS Console→EC2-&gt;EC2 Dashboard</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uxacf6GLM_Nd-blJEOL7MA.png" /></figure><blockquote>Note: Firstly you need to create an AWS account.</blockquote><p>You will see many functions. You can use multiple services on AWS very easily.</p><p>You can create multiple instances in EC2. For <strong>efficient use</strong> of AWS EC2, you can use <strong>Stop instance, Start instance, Reboot instance, Hibernate instance, Terminate instance options in Instances→Instance State.</strong></p><p>Launching an instance (virtual machine) in AWS EC2.</p><p>Creating an instance on AWS is quite simple. You can create it using the following steps.</p><p><strong><em>1-Open the AWS Management Console and select the EC2 service.</em></strong></p><p><strong><em>2-In the EC2 dashboard, click Instances and select Launch Instances.</em></strong></p><p><strong><em>3-Fill in the Name field and leave the Instance Type i t2.micro.</em></strong></p><p><strong><em>4-If there is no key that we created previously, we first create a new key by selecting Create new key pair. Select the key pair we created</em></strong></p><p><strong><em>5-Select the Launch instance</em></strong></p><p>And completed the process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lrB-31ShMCBvKd665hpnNg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16d20c12c557" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git ve GitHub nedir, ne gibi faydalar sunar?]]></title>
            <link>https://hivelkrasniqi.medium.com/git-ve-github-nedir-ne-gibi-faydalar-sunar-9534b7247dc5?source=rss-8ea1ea5138ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/9534b7247dc5</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Hivel Krasniqi]]></dc:creator>
            <pubDate>Tue, 04 Jan 2022 11:35:17 GMT</pubDate>
            <atom:updated>2022-01-04T18:42:20.805Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ati1FXpRLjst2oYp" /><figcaption>Photo by <a href="https://unsplash.com/@synkevych?utm_source=medium&amp;utm_medium=referral">Roman Synkevych</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Git nedir?</h3><p>Git bir yazılım versiyon kontrol sistemidir. Bugün dünyada açık ara en yaygın kullanılan modern sürüm kontrol sistemi Git’tir. Git, orijinal olarak 2005 yılında Linux işletim sistemi çekirdeğinin ünlü geliştiricisi Linus Torvalds tarafından geliştirilen bir açık kaynak projesidir.</p><p>Dağıtılmış mimarisi ile Git, bir DVCS (Dağıtılmış Sürüm Kontrol Sistemi) örneğidir. CVS veya Subversion (SVN olarak da bilinir) gibi daha önce popüler olan versiyon kontrol sistemlerinde yaygın olduğu gibi, yazılımın tam sürüm geçmişine tek bir yerde sahip olmak yerine, Git’te geliştiricinin çalışan her kopyası, aynı zamanda tam sürümü içeren bir havuzdur. Tüm geçmişi ve değişiklikleri içerir. Yani her yazılan kod belirli bir düzenlemeden sonra güncellenerek ya da eklenerek tekrar yazılır. Git sayesinde daha önce yazmış olduğumuz kodlara erişebilmekteyiz.</p><h4>Git bize ne gibi faydalar sunuyor?</h4><ol><li>Öncelikle ilk yararı bu sistemler versiyon numaralarını otomatik bir şekilde kendi tanımlamamıza göre yükseltir. Versiyon bir projede her bir değişikliğin bir diğerinin üzerine eklenmesiyle artar. Bir yazılım projesinin versiyonu genelde 1.0.0 ile baslar ve artar. Bu numaralandırmada her bir kısım genel ortak anlayışa göre “major.minor.patch” olarak farklı şeyleri ifade eder. Yani bir yazılım projesinde bir hata düzeltilir ise patch (üçüncü kısım) artar, 1.0.0 olan versiyon 1.0.1 seklinde olur. Eğer projede yapılan değişiklikler küçük değişiklikler ise minor(ikinci kısım) artar 1.0.1 olan versiyon 1.1.1 şeklinde olur. Yapılan değişikler büyük değişiklikler ise major(ilk kısım) artar yani 1.1.1 olan versiyon 2.1.1 olur.</li><li>Ikinci olarak projemizin bir bütün veya parça parça halinde geçmişini tutar. Yani kodumuzun geçmişteki haline gidebiliriz. Bir problem olursa kodumuzu geriye alıp kurtarabiliriz.</li><li>Ekiplerde her yazılımcının kendi bilgisayarındeki git sayesinde her yazılımcının kendine ait bir versiyon kontrol ağacı bulunur. Yazılımcılar kendi bilgisayarındaki kontrol sistemine doğrudan kodları gönderir, bazı noktalara geri döner, kodları değiştirir, değişiklikleri görüp, en güncel versiyonu da genel olarak tutulan bir git deposu(repository)’na gönderir(<a href="http://github.com/"><strong>GitHub</strong></a><strong>’a).</strong></li><li>Bir projede aynı kod dosyasında, aynı anda birden fazla yazılımcı çalışabilir. Bu yapılan değişiklikler bir araya geldiğinde aynı dosyada iki farklı paralel versiyon var demektir. Bu durumda iki dosyanın birleştirilme işlemi (merge) ciddi bir problemdir, çünkü bu değişiklik yapılan yerde iki dosyada da farklı satırlar tespit edilmeli, eksik yerler birbirine eklenmeli ve yazılımcıların oluşturduğu değişiklikleri de içeren tek bir dosya yapılmalı. Ama bu değişikliklerde var olan kodda yazılımcılar ekleme, değiştirme, veya silme gibi işlemler yapmış olabilir, bu noktada çok uzun bir kod dosyası ile çalışılıyor ise içinden çıkılamaz bir durum olur. Kimin yaptığı değişikliğe göre tek bir dosya oluşturulacak derken ciddi bir karmaşa olur. Versiyonlama sistemleri(git v.b.) bu değişiklikleri birleştirme, gerektiğinde uyarma, geri alma gibi özellikleri sayesinde bu karmaşayı içinden çıkılabilir hale getirebilir.</li><li>Yazılımcının kaynak kodunda değişiklikler yaptığını, gelecek 2.0 sürümü için bir özellik eklediğini varsayalım. Ardından ikinci bir özellik üzerinde çalışıyor. Bunlar sürüm geçmişine ayrı görevler olarak kaydedilir. Sonra eski sürümdeki bir hatayı düzeltmek için aynı yazılımın 1.5.5 dalına geçiyor. Yazılımcı, sürüm 2.0 hazır olmadan önce 1.5.5 sürümü için bir hata düzeltmesi sunabilir. Bundan sonra, yazılımcı Branch 2.0&#39;a dönebilir ve bu sürüm için yeni özellikler üzerinde çalışabilir.</li><li>Tüm bunlar internet erişimi olmadanda gerçekleşebilir. Değişiklikler uzak depoya gönderilmeye hazır olduğunda, yazılımcı tek bir komutla tüm değişiklikleri aynı anda gönderebilir.</li></ol><h4>Bilmeniz gereken basit ve temel terimler</h4><pre><strong>git clone</strong></pre><p><em>Uzak bir depodan(git repositorysinden) yerel depoya projenin son halini klonlamamızı sağla</em>r.</p><pre><strong>git commit</strong></pre><p><em>Yerel bir depoda yapmış olduğunuz değişiklikleri yorum mesajı ile kaydeder.</em></p><pre><strong>git pull</strong></pre><p><em>Uzak bir depodan kendi yerel depomuza kodları çeker.</em></p><pre><strong>git status</strong></pre><p><em>Pull ettiğimiz son commite göre şu anda yaptığımız değişikliklerin hangi dosyalarda olduğunu gösterir.</em></p><pre><strong>git diff -classname-</strong></pre><p><em>Hangi satırlarda değişiklik yaptığımızı görmemizi sağlar.</em></p><pre><strong>git checkout</strong></pre><p><em>Yaptığımız değişiklikleri en son atılan commite döndürür.</em></p><pre><strong>git push</strong></pre><p><em>Uzak bir depoya yorum mesajı ile yapmış olduğunuz işlemleri gönderir.</em></p><pre><strong>git tag</strong></pre><p><em>Kodlar ile ilgili etiket bırakmak için kullanılır. (Örn. Yapılacaklar, hata, geliştirilecek)</em></p><pre><strong>git add</strong></pre><p><em>Oluşturmuş olduğunuz veya değiştirdiğiniz dosyaları yerel depo içerisine ekler.</em></p><p>Günlük olarak kullanma ihtimalinizin yüksek olduğu git komutlarına <a href="https://bitbucket.org/BitPusher16/dotfiles/raw/49a01d929dcaebcca68bbb1859b4ac1aea93b073/refs/git/git_examples.sh"><strong>buradan</strong></a> erişebilirsiniz.</p><h4>GitHub Nedir?</h4><p>Github ve git birbirinden çok farklı şeylerdir. Kısaca git demek github demek değildir yani biri diğerinin kısaltması değildir.</p><blockquote>Github bir depolama servisi iken git ise versiyonlama, diğer adı ile sürüm kontrol sistemidir. Github depolama servisine git versiyonlama servisini kullanarak kodlarınızı gönderip, alabilirsiniz. Nedir depolama servisi, üzerinde çalışılan projelerin herhangi bir programlama dili ile yazılmış kaynak kodlarının saklandığı sunuculardır. Bir kod yazarsınız, bu kodu github sunucularına yüklersiniz ve github size bir erişim linki verir. bu link üzerinden internet erişiminin olduğu her yerde siz veya başka yazılımcılar bu kodu görebilir, bilgisayarına indirebilir ve değiştirebilir.</blockquote><p>Git ile versiyonlamasını yaptığımız kodu github serverlarına atmak zorunda değiliz ister github a atarız, ister amazon code commit, ister gitlab, ister bitbucket. Bunlar gibi birçok servis var.</p><p>Ama birçok yazılımcı github tercih ediyor çünkü en kalabalık grup burada. Ayrıca web ara yüzüne de herkes çok alıştı, ve gerçekten çok kullanışlı bir ara yüz sunuyor. Ayrica github artık geliştiriciler arasında bir facebook gibi oldu diyebiliriz, kimin ne bildiği, kimin ne yazdığı burada ve birçok şirket de ise alım süreçlerinde geliştiricilerin github profillerini görmek istiyor.</p><h4>Github sözlüğü:</h4><p><strong>Repository<br></strong>Bir repository GitHub’da bir proje olarak anlaşılabilir. Bir yazılım projesinin dosyaları bir havuzda saklanır. Gizli veya diğer kullanıcılara açık repo oluşturabilirsiniz.</p><p><strong>Branch<br></strong>Bir repositoryde birkaç yazılım sürümü olabilir. Proje oluşturduktan sonra, çalışmanın herhangi bir yerinde bir branch (dal) oluşturabilir ve çalışmanızın o noktadan sonraki kısmını siz veya başkasının o branch üzerinden yürütmesini sağlayabilirsiniz. Branch açtığınızda projenize ait bir kayıt oluşturulur ve o kopya yeni branch (dal) üzerinden devam eder. Sonrasında bu açılan bir veya daha fazla branch tekrar ana gövdeye bağlanarak bütünleşebilir.</p><p><strong>Origin <br></strong>Çalışmanın ana dalı origin ( kaynak) olarak ifade edilir. Aktif olan bir branch da origin olabilir. İlk oluşturulan Branch, <strong>Master</strong> olarak ifade edilir, Origin genelde ilk oluşturulan Branch’tir.</p><p><strong>Commit <br></strong>Revizyon olarak da anlaşılabilir. Geliştiriciler programladıkları değişiklikleri kaydederlerse, projeye eklediğiniz bu yeni kodları da içeren çalışmanın GitHub’ ta ki kopyasına da iletilmesi için öncelikle “<strong>Commit”</strong> işlemini gerçekleştirmeniz gerek. Bu işlev çalışmanızın GitHub bulut sistemine gönderilmek üzere paketlenmesini sağlar.</p><p><strong>Ignore <br></strong>Commit işlemi yaparken çalıştığınız bazı dosyaların paketlenip gönderilmesini istemeyebilirsiniz. Özetle pakete dahil olması istenmeyen dosyalar, ignore edilerek git tarafından göz ardı edilmesi sağlanır.</p><p><strong>Clone <br></strong>Clone GitHub bulut sisteminde bulunan belirli bir program veya kod dizisini kopyalayıp, bilgisayarınıza veya hesabınıza indirmeye yarar.</p><p><strong>Push <br></strong>Commit işlemiyle paketlenen yeni çalışmanın GitHub sunucusuna Push edilmesi ( İtilmesi) yani gönderilmesi işlemini ifade eder.</p><p><strong>Pull-Request</strong> <br>Bir geliştirici bir hatayı düzelttiyse veya bir havuza yeni bir işlev eklediyse, değişikliğinin orijinal projeye akmasını ister. Bu nedenle geliştiriciler, orijinal projenin geliştiricisine, değişikliklerinin kabul edilmesini isteyen bir çekme isteği gönderir.</p><p><strong>Pull</strong> <br>Başkalarınca yapılan değişikliklerin kendi bilgisayarınız veya sunucudaki ana dosya versiyonuna dahil etmek (çekmek) işlemidir.</p><p><strong>Issues <br></strong>Sorun veya gelişme ile ilgili bilgilendirme açmak denebilir. Projeye dahil olanlar issues açıldığı zaman isterse konuya dahil olup durumun gerektirdiği işlemi yapar ve issues kapatılabilir.</p><p><strong>Merge <br></strong>Merge bir branch’ta yapılan bir değişikliğin diğer şubelerde de kullanılır hale gelmesi için birleştirilmesi işlemidir. Bu işlem Pull request ile veya birkaç kod yardımıyla yapılabilir.</p><p><strong>Conflict <br></strong>Birkaç farklı branch’ta yapılan çalışmalar paketlenip gönderilirken bazen iki dosyanın birbirleriyle çelişmesiyle sonuçlanabilir. Bu olaya conflict denir.</p><p><strong>Fork</strong> <br>Tüm genel Git projeleri bir açık kaynak lisansı altında olduğundan, herkes ayrıca fork adı verilen bir havuzun kendi şubesini başlatabilir. Orada herkes özel olarak geliştirebilir ve sonunda kendi versiyonunu orijinal projeye geri döndürebilir (bir çekme talebi yapabilir) — veya sadece bağımsız bir varyantı dağıtabilir.</p><blockquote>Aşağıdaki bağlantıda Github için bir kopya kağıdı bulabilirsiniz:</blockquote><p><a href="https://training.github.com/downloads/tr/github-git-cheat-sheet/">GitHub Git Başvuru Sayfası</a></p><blockquote>Açık kaynak kodlu git öğrenme oyunu:</blockquote><p><a href="https://ohmygit.org/">Oh My Git!</a></p><blockquote>Git için eğlenceli bir öğrenme sistemi:</blockquote><p><a href="https://learngitbranching.js.org/">Learn Git Branching</a></p><blockquote>Git için basit bir rehber:</blockquote><p><a href="http://rogerdudler.github.io/git-guide/index.tr.html">git - basit rehber</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9534b7247dc5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>