<?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: sadasdkjoiwck</title>
    <description>The latest articles on DEV Community by sadasdkjoiwck (@asdflkjh).</description>
    <link>https://dev.to/asdflkjh</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%2F385865%2Fe13d0461-92ec-454f-b50a-879fa7066866.jpg</url>
      <title>DEV Community: sadasdkjoiwck</title>
      <link>https://dev.to/asdflkjh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/asdflkjh"/>
    <language>en</language>
    <item>
      <title>Rename osx to macos</title>
      <dc:creator>sadasdkjoiwck</dc:creator>
      <pubDate>Tue, 07 Dec 2021 18:34:41 +0000</pubDate>
      <link>https://dev.to/asdflkjh/rename-osx-to-macos-318h</link>
      <guid>https://dev.to/asdflkjh/rename-osx-to-macos-318h</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;The &lt;code&gt;osx&lt;/code&gt; plugin is deprecated and has been renamed to &lt;code&gt;macos&lt;/code&gt;. Please update your .zshrc to use the &lt;code&gt;macos&lt;/code&gt; plugin instead.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Confused what to change ?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Open your terminal&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;nano ~/.zshrc&lt;/code&gt; hit return&lt;/li&gt;
&lt;li&gt;Search for plugins&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example,&lt;/p&gt;

&lt;p&gt;&lt;code&gt;plugins=(git colored-man-pages colorize pip python brew osx)&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Change it to&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;plugins=(git colored-man-pages colorize pip python brew macos)&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Replace &lt;code&gt;osx&lt;/code&gt; to &lt;code&gt;macos&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Ctrl&lt;/code&gt; + &lt;code&gt;o&lt;/code&gt; and &lt;code&gt;Ctrl&lt;/code&gt; + &lt;code&gt;x&lt;/code&gt; hit return&lt;/li&gt;
&lt;li&gt;Close terminal and reopen&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Cover image by &lt;a href="https://www.forgeskiphire.co.uk/blog/how-to-properly-wipe-and-dispose-of-office-computers-and-laptops/"&gt;forgeskiphire&lt;/a&gt;&lt;/p&gt;

</description>
      <category>osx</category>
      <category>macos</category>
      <category>ohmyzsh</category>
      <category>zsh</category>
    </item>
    <item>
      <title>Django on AMI</title>
      <dc:creator>sadasdkjoiwck</dc:creator>
      <pubDate>Tue, 13 Oct 2020 19:49:14 +0000</pubDate>
      <link>https://dev.to/asdflkjh/django-on-ami-2ehn</link>
      <guid>https://dev.to/asdflkjh/django-on-ami-2ehn</guid>
      <description>&lt;p&gt;If you're using AMI then there are few things to take note before proceeding.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AMI have yum as package manager.&lt;/li&gt;
&lt;li&gt;AMI Linux 2 has &lt;a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/amazon-linux-ami-basics.html#extras-library"&gt;amazon-linux-extras&lt;/a&gt; which are available as &lt;strong&gt;topics&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Setup the environment
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo yum update -y

sudo yum install gcc

cat /var/run/yum.pid

ps -p 3633

ps -ef | grep 3633

kill -9 3633

sudo amazon-linux-extras install python3

curl -O https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py
python3 -m pip install --upgrade pip

yum search pip
sudo yum install python3-pip

python3 -m venv /path/to/new/virtual/environment

sudo pip3 install virtualenv

sudo amazon-linux-extras install nginx1

mkdir project-name
cd project-name

virtualenv env
. env/bin/activate

pip3 install django

pip3 install uwsgi

django-admin --version

uwsgi --socket /opt/uwsgi/sock/yt_demo.sock --wsgi-file /home/ec2-user/project/testsite/testsite/wsgi.py

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

&lt;/div&gt;



&lt;p&gt;Note: I have taken help from multiple source and prepared this article. And all source deserves to receive the credits.&lt;/p&gt;

&lt;p&gt;Credits,&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;python3 installation on Amazon linux 2 answer on &lt;a href="https://stackoverflow.com/a/48314242/8826621"&gt;stackoverflow&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;how to fix yum lock from other &lt;a href="https://www.golinuxcloud.com/another-app-is-currently-holding-the-yum-lock/"&gt;blog&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;how to upgrade sqlite to latest version on &lt;a href="https://stackoverflow.com/a/57149324/8826621"&gt;stackoverflow&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;pip installed package location explanation on &lt;a href="https://stackoverflow.com/a/29980912/8826621"&gt;stackoverflow&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;how to run simple django application by &lt;a href="https://www.digitalocean.com/community/tutorials/how-to-install-django-and-set-up-a-development-environment-on-ubuntu-16-04"&gt;digital ocean&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;how to install mariadb &lt;a href="https://techviewleo.com/how-to-install-mariadb-server-on-amazon-linux/"&gt;blog&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;troubleshoot mariadb uninstall &lt;a href="https://stackoverflow.com/a/33394008/8826621"&gt;stackoverflow&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;mariadb pid troubleshoot &lt;a href="https://www.ryadel.com/en/linux-mysql-mariadb-pid-file-folder-fix/"&gt;blog&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;mariadb official &lt;a href="https://mariadb.com/kb/en/systemd/#interacting-with-the-mariadb-server-process"&gt;documentation&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;migrate database with mariadb for django troubleshoot from &lt;a href="https://stackoverflow.com/a/56312295/8826621"&gt;stackoverflow&lt;/a&gt; and other &lt;a href="https://django.programmingpedia.net/en/knowledge-base/46902357/error-loading-mysqldb-module--did-you-install-mysqlclient-or-mysql-python--"&gt;blog&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;get uwsgi and nginx working together &lt;a href="https://stackoverflow.com/questions/22071681/permission-denied-nginx-and-uwsgi-socket"&gt;stackoverflow&lt;/a&gt; and digital ocean &lt;a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-uwsgi-and-nginx-to-serve-python-apps-on-centos-7"&gt;blog&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;make old migration clean ups &lt;a href="https://simpleisbetterthancomplex.com/tutorial/2016/07/26/how-to-reset-migrations.html"&gt;blog&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;uwsgi, nginx on centos &lt;a href="https://hostpresto.com/community/tutorials/how-to-serve-python-apps-using-uwsgi-and-nginx-on-centos-7/"&gt;blog&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Wordpress on AWS EC2 ubuntu</title>
      <dc:creator>sadasdkjoiwck</dc:creator>
      <pubDate>Tue, 13 Oct 2020 19:48:12 +0000</pubDate>
      <link>https://dev.to/asdflkjh/wordpress-on-aws-ec2-ubuntu-3ade</link>
      <guid>https://dev.to/asdflkjh/wordpress-on-aws-ec2-ubuntu-3ade</guid>
      <description>&lt;p&gt;sudo apt update -y&lt;br&gt;
sudo apt upgrade -y&lt;/p&gt;

&lt;p&gt;sudo apt-get install apache2&lt;br&gt;
sudo systemctl start apche2&lt;br&gt;
sudo systemctl status apche2&lt;br&gt;
sudo systemctl enable apache2&lt;br&gt;
sudo apt-get install mariadb-server mariadb-client -y&lt;/p&gt;

&lt;p&gt;sudo systemctl start mariadb&lt;br&gt;
sudo systemctl status mariadb&lt;/p&gt;

&lt;p&gt;sudo mysql_secure_installation&lt;/p&gt;

&lt;p&gt;sudo systemctl restart mariadb&lt;/p&gt;

&lt;p&gt;sudo apt-get install php php-mysql php-gd php-cli php-common -y&lt;/p&gt;

&lt;p&gt;sudo apt-get install wget unzip -y&lt;/p&gt;

&lt;p&gt;sudo wget &lt;a href="https://wordpress.org/latest.zip"&gt;https://wordpress.org/latest.zip&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;sudo unzip latest.zip&lt;/p&gt;

&lt;p&gt;sudo cp -r wordpress/* /var/www/html/&lt;/p&gt;

&lt;p&gt;cd /var/www/html&lt;/p&gt;

&lt;p&gt;sudo chown www-data:www-data -R /var/www/html/&lt;/p&gt;

&lt;p&gt;sudo rm -rf index.html&lt;/p&gt;

&lt;p&gt;sudo mysql -u root -p&lt;/p&gt;

&lt;p&gt;create database wordpress;&lt;/p&gt;

&lt;p&gt;create user "wpadmin"@"%" identified by "wpadminpass";&lt;/p&gt;

&lt;p&gt;grant all privileges on wordpress.* to "wpadmin"@"%";&lt;/p&gt;

&lt;p&gt;exit&lt;/p&gt;

&lt;p&gt;insert those details on public web address on wordpress intallation and done.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>export and import mariadb database</title>
      <dc:creator>sadasdkjoiwck</dc:creator>
      <pubDate>Tue, 13 Oct 2020 19:47:41 +0000</pubDate>
      <link>https://dev.to/asdflkjh/export-and-import-mariadb-database-1hih</link>
      <guid>https://dev.to/asdflkjh/export-and-import-mariadb-database-1hih</guid>
      <description>&lt;p&gt;sudo mysql -u root -p&lt;/p&gt;

&lt;p&gt;use mysql;&lt;/p&gt;

&lt;p&gt;select user, password from user;&lt;/p&gt;

&lt;p&gt;show databases;&lt;/p&gt;

&lt;p&gt;exit;&lt;/p&gt;

&lt;p&gt;sudo mysqldump -u wpadmin -p wordpress &amp;gt; /home/ubuntu/try.sql&lt;/p&gt;

&lt;p&gt;head -n 5 try.sql&lt;/p&gt;

&lt;p&gt;ll -sha&lt;/p&gt;

&lt;p&gt;sudo mysql -u root -p&lt;/p&gt;

&lt;p&gt;create database new_database;&lt;/p&gt;

&lt;p&gt;exit;&lt;/p&gt;

&lt;p&gt;sudo mysql -u root -p new_database &amp;lt; try.sql&lt;/p&gt;

&lt;p&gt;sudo mysql -u root -p&lt;/p&gt;

&lt;p&gt;show databases;&lt;/p&gt;

&lt;p&gt;use new_database;&lt;/p&gt;

&lt;p&gt;show tables;&lt;/p&gt;

&lt;p&gt;describe wp_users;&lt;/p&gt;

&lt;p&gt;select user_login, user_pass, user_email from wp_users;&lt;/p&gt;

&lt;p&gt;exit;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Attach new EBS to your EC2 instance</title>
      <dc:creator>sadasdkjoiwck</dc:creator>
      <pubDate>Sat, 29 Aug 2020 20:01:17 +0000</pubDate>
      <link>https://dev.to/asdflkjh/attach-new-ebs-to-your-ec2-instance-3656</link>
      <guid>https://dev.to/asdflkjh/attach-new-ebs-to-your-ec2-instance-3656</guid>
      <description>&lt;p&gt;No long stories straight steps.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Click on volumes under Elastic Block Store in EC2 dashboard&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create new EBS drive&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use already running instance or create new EC2 instance.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Again from EC2 dashboard navigate to volumes under Elastic Block Store. Select your volume that you want to attach and from action click attach and select your ec2 instance.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;SSH into your EC2 instance&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;lsblk&lt;/code&gt; this will list all devices attached to your instance.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Try to identify new EBS volume name in the results&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check mountpoint column for that row and that should be empty and that's fine&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;sudo file -s /dev/xvdf&lt;/code&gt; &lt;strong&gt;replace xvdf with your volume&lt;/strong&gt; this command will result in &lt;code&gt;/dev/xvdf: data&lt;/code&gt; that means there is no file system associated with that drive. We have to format this newly created volume with some file system which is supported.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;sudo mkfs -t ext4 /dev/xvdf&lt;/code&gt; this will format that newly created volume in &lt;strong&gt;ext4&lt;/strong&gt; file system.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now we will create mount point where we will mount this new volume in our system. &lt;code&gt;sudo mkdir /data&lt;/code&gt; and then &lt;code&gt;sudo mount /dev/xvdf/ /data&lt;/code&gt; this will mount it to /data directory.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Make sure we have mounted successfully by &lt;code&gt;lsblk&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To mount this volume everytime we reboot run &lt;code&gt;sudo cp /etc/fstab /etc/fstab.orig&lt;/code&gt; and then &lt;code&gt;sudo nano /etc/fstab&lt;/code&gt; . Enter following statement at the end and save this file &lt;code&gt;/dev/xvdf /data ext4 defaults,nofail 0 2&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check if everything is on track by &lt;code&gt;sudo file -s /dev/xvdf&lt;/code&gt; and now you should see everything about this new volume.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check if it is mounting on every reboot by &lt;code&gt;cd /&lt;/code&gt; and &lt;code&gt;sudo umount /data&lt;/code&gt; will unmount and then &lt;code&gt;sudo mount -a&lt;/code&gt; will run the script to mount all volumes on reboot.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check back by &lt;code&gt;lsblk&lt;/code&gt; and everything should be mounted as expected.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;This post is written based on AWS documentation and please make sure you read all types of services and charges associated with them. You will be charged if you use any service out of their free tier. I am not responsible for your any types of issues and charges. Please use this post on your own understanding.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>mount</category>
      <category>linux</category>
      <category>ebs</category>
    </item>
    <item>
      <title>RESTful API</title>
      <dc:creator>sadasdkjoiwck</dc:creator>
      <pubDate>Sat, 15 Aug 2020 18:22:58 +0000</pubDate>
      <link>https://dev.to/asdflkjh/restful-api-b4i</link>
      <guid>https://dev.to/asdflkjh/restful-api-b4i</guid>
      <description>&lt;p&gt;Some open RESTful APIs to get you started with excitement. I think there should be enough excitement when we start learning something new to keep up the spirit.&lt;/p&gt;

&lt;p&gt;So if you're looking to learn what RESTful APIs are then first play with few open available RESTful APIs. Trust me it is really exciting to see how smooth it works.&lt;/p&gt;

&lt;p&gt;I am using Visual Studio Code extension 'REST Client' to make these requests and see headers but there are many good alternative and you should check them too. If you like to do everything in terminal than curl is obvious choice. Postman is also good for interactive client application.&lt;/p&gt;

&lt;h1&gt;
  
  
  NASA APIs
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;NASA&lt;/strong&gt; has &lt;a href="https://api.nasa.gov/"&gt;https://api.nasa.gov/&lt;/a&gt; API portal. Let's hear from them,&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Welcome to the NASA API portal. The objective of this site is to make NASA data, including imagery, eminently accessible to application developers. The api.nasa.gov catalog is growing.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You will have to get the API key if you're developing any application but let's just use their endpoints which do not require and you can learn more on NASA's API portal but here I am just diving straight to working.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;GET https://images-api.nasa.gov/search?description="Kalpana"&amp;amp;media_type=image&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Read documentation for this endpoint &lt;a href="https://images.nasa.gov/docs/images.nasa.gov_api_docs.pdf"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Kalpana Chawla&lt;/strong&gt; is my favorite Indian astronaut so I am requesting all data which has in description 'Kalpana' and media_type=image returns only those results which have images along with it. Exciting right.&lt;/p&gt;

&lt;h1&gt;
  
  
  GitHub APIs
&lt;/h1&gt;

&lt;p&gt;Now let's do something more interesting. We all have github account and so you must be knowing that github also have jobs portal. Good news is they have few APIs public and you can interact with them.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;GET https://jobs.github.com/positions.json?description=python&amp;amp;full_time=true&amp;amp;location=colorado&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Read more in their documentation &lt;a href="https://jobs.github.com/api"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here I am requesting all full time jobs in Colorado which has python in their description.&lt;/p&gt;

</description>
      <category>api</category>
      <category>nasa</category>
      <category>github</category>
      <category>public</category>
    </item>
    <item>
      <title>LaTeX documents</title>
      <dc:creator>sadasdkjoiwck</dc:creator>
      <pubDate>Sat, 08 Aug 2020 00:43:56 +0000</pubDate>
      <link>https://dev.to/asdflkjh/latex-documents-4cln</link>
      <guid>https://dev.to/asdflkjh/latex-documents-4cln</guid>
      <description>&lt;p&gt;We have been using word processor and many smart office systems that we starts thinking to response that yes I coded my resume.&lt;/p&gt;

&lt;p&gt;Yes I created my resume in LaTeX programming and you should try it. The LaTeX project says that&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;'You get what you see'.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You can read more about LaTeX and it's working but here I am going to provide you cheat sheet which I prepared when I wrote my first LaTeX document.&lt;/p&gt;

&lt;h2&gt;
  
  
  LaTeX document structure
&lt;/h2&gt;

&lt;p&gt;document class&lt;br&gt;
use packages&lt;br&gt;
definitions and macros&lt;br&gt;
title page content&lt;br&gt;
\begin document&lt;br&gt;
...&lt;br&gt;
...&lt;br&gt;
\end document&lt;/p&gt;

&lt;p&gt;and ignored extras&lt;/p&gt;

&lt;h2&gt;
  
  
  LaTeX command instructions
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;%&lt;/code&gt; for single line comment&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\begin{document} . . . \end{document}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\documentclass[10pt,a4paper,twoside]{article}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\usepackage[property_name]{package name}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\author{hello_vatsal}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\title{intro}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\begin{itemize} . . . \end{itemize}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\begin{enumerate} . . . \end{enumerate}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\&amp;amp; for &amp;amp;&lt;/code&gt; &lt;code&gt;\% for %&lt;/code&gt; for special characters use &lt;code&gt;\&lt;/code&gt; other examples are # { $ _ " '&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\t{00}&lt;/code&gt; &lt;code&gt;\AA&lt;/code&gt; &lt;code&gt;\0e&lt;/code&gt; &lt;code&gt;\day&lt;/code&gt; &lt;code&gt;\pound&lt;/code&gt; &lt;code&gt;\copyright&lt;/code&gt; &lt;code&gt;\pi&lt;/code&gt; &lt;code&gt;\Pi&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\date{specify}&lt;/code&gt; example &lt;code&gt;\date{\today}&lt;/code&gt; &lt;em&gt;but remember that \maketitle is required to use command \today&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Create your own environment commands by&lt;/em&gt; &lt;code&gt;\begin {command} . . . \end {command}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;To create new line break use&lt;/em&gt; &lt;code&gt;\\&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\section {give name}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\subsection {section name : number}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\subsection { : : }&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\tableofcontents&lt;/code&gt; &lt;em&gt;Make sure to use after maketitle command&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\newpage&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$...$&lt;/code&gt; to insert inline formulas&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$$...$$&lt;/code&gt; to insert center justified formulas&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\begin {array}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;^ {}&lt;/code&gt; for super scripts&lt;/p&gt;

&lt;p&gt;&lt;code&gt;- {}&lt;/code&gt; for sub scripts&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\begin {eqharray} enter equation here \end {eqharray}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\nonumbe&lt;/code&gt; use this in above statement to skip numbering of equation&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\begin {figure}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\begin {minipage}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\input {path}&lt;/code&gt; to import files&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\VSpace {-0.5cm}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\begin {aligh}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\begin {aligh*}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\begin {tabular} {# of col, alignment, vertical yes/no}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\hline&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\cline {column start - column end}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\begin {table}&lt;/code&gt; this contains tabular as child element&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\caption { }&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\label { }&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\textbf { }&lt;/code&gt; make bold face&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\textit { }&lt;/code&gt; make italics&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\textsc { }&lt;/code&gt; capitalize&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\textsf { }&lt;/code&gt; distinguished&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\textsl { }&lt;/code&gt; slant&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\texttt { }&lt;/code&gt; typewrite fonts&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\emph { }&lt;/code&gt; emphasize&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\color {color name}&lt;/code&gt; first import color package&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\tiny&lt;/code&gt;  SIZE&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\scriptsize&lt;/code&gt;  SIZE&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\footnotesize&lt;/code&gt;  SIZE&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\small&lt;/code&gt;  SIZE&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\normalsize&lt;/code&gt;  SIZE&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\large&lt;/code&gt;  SIZE&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\Large&lt;/code&gt;  SIZE&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\LARGE&lt;/code&gt;  SIZE&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\huge&lt;/code&gt;  SIZE&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\HUGE&lt;/code&gt;  SIZE&lt;/p&gt;

&lt;h3&gt;
  
  
  I'm planning to make this cheat sheet more readable and organized so it is easier to understand. Please share your views in comment below.
&lt;/h3&gt;

</description>
      <category>compilers</category>
      <category>latex</category>
      <category>coding</category>
      <category>cheatsheet</category>
    </item>
    <item>
      <title>PHP is still in the game</title>
      <dc:creator>sadasdkjoiwck</dc:creator>
      <pubDate>Wed, 05 Aug 2020 04:51:31 +0000</pubDate>
      <link>https://dev.to/asdflkjh/php-is-not-dead-5hej</link>
      <guid>https://dev.to/asdflkjh/php-is-not-dead-5hej</guid>
      <description>&lt;p&gt;We have so many options to choose from when it comes to choosing right technology stack for our application. There are even more frameworks and libraries supporting &lt;strong&gt;amazingly fast&lt;/strong&gt; development. So you might be thinking that php is dead and it cannot compete with this fast development than hold on please.&lt;/p&gt;

&lt;p&gt;There are many well known companies who are using php and its framework for tech stack. &lt;strong&gt;9GAG &amp;amp; BBC&lt;/strong&gt; still have php in their current tech stack.&lt;/p&gt;

&lt;p&gt;Still people choose &lt;strong&gt;WordPress&lt;/strong&gt; for to go solution for blog and simple websites. Taking about WordPress reminds me of famous tech blog &lt;a href="https://techcrunch.com/"&gt;Tech Crunch&lt;/a&gt; is still using WordPress.&lt;/p&gt;

&lt;p&gt;Php have super powerful &lt;a href="https://laravel.com/"&gt;Laravel&lt;/a&gt; framework. And yes php also have package manager like &lt;a href="https://www.npmjs.com/"&gt;npm&lt;/a&gt; which is &lt;a href="https://getcomposer.org/"&gt;composer&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you or your server are looking for alternative of Laravel then my friends php has everything. My next php framework is &lt;a href="https://codeigniter.com/"&gt;CodeIgniter&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It is super easy to setup and I'll be writing one more DEV post on how to setup CodeIgniter in few simple steps.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Uninstall Anaconda from MacOS Catalina</title>
      <dc:creator>sadasdkjoiwck</dc:creator>
      <pubDate>Fri, 31 Jul 2020 17:19:12 +0000</pubDate>
      <link>https://dev.to/asdflkjh/uninstall-anaconda-from-macos-catalina-34nc</link>
      <guid>https://dev.to/asdflkjh/uninstall-anaconda-from-macos-catalina-34nc</guid>
      <description>&lt;p&gt;After I updated my MacOS to latest version when I tried to follow uninstall steps listed on official anaconda document it didn’t work. I had to look through couple of articles on internet and finally one which worked for me is I am documenting here so you don’t have to go through all the same steps again. Enjoy !&lt;/p&gt;

&lt;p&gt;So when we upgrade our OS, zsh bash profile is not updated and so our conda commands don’t work. To solve this first we run following commands in terminal.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -L https://repo.anaconda.com/pkgs/misc/cpr-exec/cpr-0.1.1-osx-64.exe -o cpr &amp;amp;&amp;amp; chmod +x cpr ./cpr rehome ~/anaconda3

source ~/anaconda3/bin/activate

conda init zsh

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

&lt;/div&gt;



&lt;p&gt;So above command will activate your virtual environment and there you can use your conda command in your terminal. So now just following steps mentioned in official anaconda documentation will be pretty straight but remember there’s one important step so keep following me.&lt;/p&gt;

&lt;p&gt;Now official documentation ask you to install new package called  anaconda-clean which will basically help you to take easy backup before you uninstall completely. So to do that run this command.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda install anaconda-clean&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now to take backup just run that package which you just installed.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;anaconda-clean  —yes&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You’ll notice one new directory created name .anaconda_backup&lt;/p&gt;

&lt;p&gt;Now this is important step, you have to deactivate virtual environment before you delete anaconda directory so run following command.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda deactivate&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now you can remove anaconda directory by following command.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;rm -rf  ~/anaconda3&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Also you can choose to remove conda path from your bash profile so you’ll have fresh installation next time if you want. Run following command and put # to comment line or just delete what is mentioned next.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo nano ~/.bash_profile&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;#export PATH=“/Users/your_username/anaconda3/bin:$PATH”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DONE !! Congratulation you have completely uninstalled anaconda from your MacOS.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>anaconda</category>
      <category>python</category>
      <category>macos</category>
      <category>uninstall</category>
    </item>
    <item>
      <title>Setup Bitbucket for Mac OS</title>
      <dc:creator>sadasdkjoiwck</dc:creator>
      <pubDate>Wed, 29 Jul 2020 01:22:19 +0000</pubDate>
      <link>https://dev.to/asdflkjh/setup-bitbucket-for-mac-os-4g13</link>
      <guid>https://dev.to/asdflkjh/setup-bitbucket-for-mac-os-4g13</guid>
      <description>&lt;p&gt;Once you have created new repository on your bitbucket account and you're trying to clone project on local machine and you end up with error saying,&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Please make sure you have the correct access rights and the repository exists. Permission denied (publickey). fatal: Could not read from remote repository.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;We all hate errors&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  So follow these steps to get started quickly
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Go to terminal&lt;/li&gt;
&lt;li&gt;&lt;code&gt;cd ~/.ssh/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ssh-keygen -C username@domain.com&lt;/code&gt; and hit &lt;strong&gt;return&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Enter unique file name for that keypair&lt;/li&gt;
&lt;li&gt;Now you should be able to check if it's successful or not by &lt;code&gt;ls ~/.ssh/&lt;/code&gt; , try to look for unique keypair name that you entered while creating&lt;/li&gt;
&lt;li&gt;Now we don't want to enter password every time we're trying to access that keypair so add them into ssh agent by &lt;code&gt;eval &amp;lt;acute-key&amp;gt; ssh-agent &amp;lt;acute-key&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ssh-add --apple-use-keychain ~/.ssh/&amp;lt;private_key_file&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Also we want to keep this change every time computer restarts to add it into ssh config file &lt;code&gt;nano ~/.ssh/config&lt;/code&gt; then add following and exit
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Host *
  UseKeychain yes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Now we have to add public key to our bitbucket account so first copy the public key with
&lt;code&gt;pbcopy &amp;lt; ~/.ssh/&amp;lt;unique-key&amp;gt;.pub&lt;/code&gt;
So, for Mac OS users you have copied it into your clipboard.&lt;/li&gt;
&lt;li&gt;Now add that into your bitbucket ssh key and hit save&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Done !!&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Happy Programing :)&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>ssh</category>
      <category>bitbucket</category>
      <category>macos</category>
    </item>
  </channel>
</rss>
