Skip to main content

Posts

Showing posts from July, 2023

httpd

to install httpd : yum install httpd to check version of httpd installed : httpd -version config location:  /etc/httpd/conf/httpd.conf /var/www/html/index.html (we need to add this file) Logs: log var/log/httpd how to start service systemctl start httpd how to check status of httpd service systemctl status httpd to check status firewall of the server systemctl status firewalld.service to stop firewall of the server systemctl stop firewalld.service

zoomit windows app

 Shortcuts ZoomIt offers a number of shortcuts which can extend its usage greatly. SHORTCUTS Function Shortcut Begin Zoom In Mode Ctrl+1 Zoom In Up Key Zoom Out Down Key Begin Drawing (While zoomed) Left-Click Begin Drawing (While not zoomed) Ctrl+2 Red Pen Color R Blue Pen Color B Yellow Pen Color Y Green Pen Color G Show Meeting Timer Ctrl + 3 Live Zoom Mode Ctrl + 4 Zoom In (Live mode) Ctrl + Up Zoom Out (Live mode) Ctrl + Down

yarn

 yarn help -------------- ... Accessing the list of commands yarn help --------------- ... Starting a new project yarn init ------------------- ... Installing all the dependencies yarn yarn install ------------- ... Adding a dependency yarn add [package] yarn add [package]@[version] yarn add [package]@[tag] ------------------ ... Adding a dependency to different categories of dependencies yarn add [package] --dev  # dev dependencies yarn add [package] --peer # peer dependencies ---------------------- ... Upgrading a dependency yarn up [package] yarn up [package]@[version] yarn up [package]@[tag] --------------- ... Removing a dependency yarn remove [package] ---------------------- ... Upgrading Yarn itself yarn set version latest yarn set version from sources

vsce

VS Code extensions   vsce login < PUBLISHER ID > then type your PUBLISHER TOKEN vsce package vsce publish

vim

     #  vim new-file.txt     i          => to insert in writing mode      :wq        => to write and quit i.e, save

sql

 ********* tables ******** users products states posts comments ********************* SELECT * FROM users SELECT * FROM users LIMIT 5 SELECT * FROM users LIMIT 5 OFFSET 2 SELECT * FROM users ORDER by users.user_email DESC SELECT user_login FROM users  SELECT user_login, user_email FROM users SELECT user_login FROM users ORDER by users.user_email DESC SELECT * FROM products WHERE price = 11.99 SELECT * FROM products WHERE price < 9.99 SELECT * FROM products WHERE book_name = "WILD" SELECT * FROM products WHERE author LIKE "%Miller%" INSERT INTO states (state,drink,year,image) VALUES ("New Jersey","Vodka",2018,"vodka.jpg") DELETE FROM `states` WHERE states.id = 33 SELECT * FROM `states` WHERE state = "Delaware" UPDATE states SET drink = "Chocolate Oat Milk" WHERE state = "Delaware" DELETE FROM states WHERE state ="floraida" INSERT INTO `facebook_users` (`ID`, `name`, `email`, `password`) VALU...

npm

 // To set default value npm set init.author.email "email@gmail.com" npm set init.author.name "Sonu Kumar Kushwaha" npm set init.license "MIT" ---------------------------- // To publish own package npm login npm publish

netlify

 https://app.netlify.com/start/deploy?repository=https://github.com/gatsbyjs/gatsby-starter-hello-world https://app.netlify.com/start/deploy?repository=<link to repo>

heroku

 heroku login  heroku create <project name> git push heroku main heroku open

GitHub CLI

 gh gh --version gh auth login gh repo clone flyingsonu122/C-Programming gh repo view --web

Git Commands

 git status ................or clone from github git clone <URL> .................or create a new repository on the command line echo "# react" >> README.md git init git add README.md git add .                // to add all  git commit -m "first commit" git branch -M main git remote add origin https://github.com/flyingsonu122/react.git git push -u origin main ...................or push an existing repository from the command line git remote add origin https://github.com/flyingsonu122/react.git git branch -M main git push -u origin main git remote -v git checkout -b patch-1 git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git git pull https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git BRANCH_NAME

gatsby

  Gatsby    ( https://www.gatsbyjs.com/docs/quick-start/ ) ==================================== gatsby --version -------------- Install the Gatsby CLI npm install -g gatsby-cli ------------- Create a new site gatsby new gatsby-site https://github.com/gatsbyjs/gatsby-starter-hello-world ------------- Change directories into site folder cd gatsby-site ------------------- Start development server gatsby develop Gatsby will start a hot-reloading development environment accessible by default at http://localhost:8000. Try editing the home page in src/pages/index.js. Saved changes will live reload in the browser. --------------------- Create a production build gatsby build ------------------- Serve the production build locally gatsby serve Gatsby starts a local HTML server for testing your built site. Remember to build your site using gatsby build before using this command. ========================= deploy on netlify https://app.netlify.com/start/deploy?repository=https:/...

firebase

  firebase firebase --version npm i -g firebase-tools to create a website hosting to to the deploying directory firebase login firebase init firebase deploy

curl

 curl --version curl -V curl --help // see content curl < URL > curl https://www.google.com/ curl https://flyingsonu122.github.io/Diwali-Wishes/db.json // to see content with headers curl -i https://flyingsonu122.github.io/Diwali-Wishes/db.json // to onle header curl --head https://flyingsonu122.github.io/Diwali-Wishes/db.json curl -I https://flyingsonu122.github.io/Diwali-Wishes/db.json // to output in a file curl -o < FILE NAME > < URL > curl -o db.txt https://flyingsonu122.github.io/Diwali-Wishes/db.json // to download curl -O < URL > curl -O https://flyingsonu122.github.io/Diwali-Wishes/db.json curl -O https://curl.se/logo/curl-logo.svg curl -O https://user-images.githubusercontent.com/51280276/111374767-7c794880-86c3-11eb-9c74-f285fcd47827.png

cmd

 start . code . ------------------- ( print working directory ) pwd   ---------------- ( make directory ) mkdir <FOLDER NAME>   || md <FOLDER NAME>    -------------------- ( change directory ) cd || cd .   cd <FOLDER NAME> cd .. cd ~ cd / ----------------- ( Listing ) ls || ls . ls .. ls ~ ls / ls <FOLDER NAME> -------------- ( clear ) cls or clear ------------ ( copy ) cp < original FILE NAME > < duplicate FILE NAME > ------------------- ( move ) mv < FILE NAME > < FILE NAME > < FOLDER NAME > mv < FILE NAME > < FILE NAME > .. NOTE : mv command can be used for renaming a file mv < old FILE NAME > < new FILE NAME > mv < old FOLDER NAME > < new FOLDER NAME > ------------------- ( delete file ) rm < FILE NAME > -------------- ( delete folder ) rmdir < FOLDER  NAME > -------------- notepad <FILE NAME WITH EXTENSION> -------...

bash

 cat /etc/shells which bash cd desktop touch helloScript.sh ls -al chmod +x helloScript.sh ./helloScript.sh

Diploma in Computer Application

I have successfully completed a Diploma in Computer Application (DCA) from Wizard-Tech Computer Academy , gaining comprehensive knowledge and practical skills in various aspects of computer applications.

Bachelor's degree in Computer Application

I successfully completed my Bachelor's degree in Computer Application ( BCA ) from Lalit Narayan Mishra Institute of Economic Development and Social Change, Patna (LNMI) between June 2019 and July 2022. Visit LNMI website LNMI is an esteemed autonomous institute under the Government of Bihar, affiliated with Aryabhatta Knowledge University, Patna , and holds the approval of AICTE, Government of India.

Imperial Public School Hathwa

I attended Imperial Public School Hathwa, where I enrolled in the 9th grade in April 2015 and completed my 12th grade studies in March 2019. I successfully completed my secondary and senior secondary education at Imperial Public School Hathwa. During my time there, I had the privilege of being selected as the School Captain in my 11th grade, demonstrating my leadership abilities and commitment to the school community. See my school website IPShathwa

St. Paul's School Sasamusa

I successfully completed my primary education at St. Paul's School Sasamusa , which provided me with a strong foundation for my academic journey. The school played a crucial role in shaping my educational and personal development, setting me on the path to future achievements.

BITS Pilani

I am currently pursuing my M.Tech in Computing Systems and Infrastructure from BITS Pilani , commencing in June 2023. This program will equip me with advanced knowledge and expertise in the field of computing systems and infrastructure.