Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Avijit Das Noyon isitavi

🎯
Focusing
View GitHub Profile
View Prometheus
============================================================================================
Step1) Creating a Prometheus user and group
============================================================================================
useradd -m -s /bin/false prometheus
id prometheus
============================================================================================
Step 2) Creating configuration directories for Prometheus
============================================================================================
mkdir /etc/prometheus
View Useradd.txt
1. sudo useradd -m -s /bin/bash test
2. sudo usermod -a -G sudo test
3. pwd (If the direcotry is on /home/test)
touch .ssh
4. cd .ssh/
touch id_rsa
5. chgrp test /home/test/.ssh/id_rsa
chmod 640 /home/test/.ssh/id_rsa
6. sudo chown test -R /home
View Useradd.txt
1. sudo useradd -m -s /bin/bash test
2. sudo usermod -a -G sudo test
3. pwd (If the direcotry is on /home/test)
touch .ssh
4. cd .ssh/
touch id_rsa
5. chgrp test /home/test/.ssh/id_rsa
chmod 640 /home/test/.ssh/id_rsa
6. sudo chown test -R /home
View Dockerfile
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y nginx
RUN apt-get update
COPY nginx.conf /etc/nginx/nginx.conf
View sql.txt
Select Stdt.name
FROM Students Stdt,
Friends Frnd,Packages Pkg1,Packages Pkg2
Where Pkg2.Salary > Pkg1.Salary
and Pkg2.ID = Frnd.Friend_ID and Pkg1.ID = Stdt.ID and Stdt.ID = Frnd.ID
Order by Pkg2.Salary;
@isitavi
isitavi / commands.txt
Created Dec 6, 2018
addUser-Problem3
View commands.txt
1. sudo useradd -m -s /bin/bash test
2. sudo usermod -a -G sudo test
3. pwd (If the direcotry is on /home/test)
touch .ssh
4. cd .ssh/
touch id_rsa
5. chgrp test /home/test/.ssh/id_rsa
chmod 640 /home/test/.ssh/id_rsa
6. sudo chown test -R /home
@isitavi
isitavi / index.html
Created Dec 6, 2018
parseLogs-Problem2
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<title>Document</title>
</head>
@isitavi
isitavi / webdev_online_resources.md
Created Jul 16, 2018 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
View webdev_online_resources.md