Skip to content

Instantly share code, notes, and snippets.

View Nikusharoot's full-sized avatar
🐧

Nika Janjghava Nikusharoot

🐧
View GitHub Profile
sudo apt-get install wget apt-transport-https gnupg lsb-release -y
wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --dearmor | sudo tee /usr/share/keyrings/trivy.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/trivy.list
sudo apt-get update
sudo apt-get install trivy -y
sudo vi /etc/nginx/sites-available/mrcloudbook.online
Paste in the following configuration block, which is similar to the default, but updated for our new directory and domain name:
Paste the below (replace your domain)
upstream jenkins{
server 127.0.0.1:8080;
}
server{
listen 80;
Prequesites :
4 cpus max and min used 2 in this video
20 gb storage
java 8
Aws account
==> sudo apt update #update packages
Now, install the Java OpenJDK 8 via the apt command below. Input Y when asked to confirm the installation and press ENTER to proceed.
==> sudo apt install openjdk-8-jdk # install java8
prerequisites for JFrog
small or medium instance t2 ytpe
2cpus
8081 and 8082 and ssh ports
openjdk 11
==> $ sudo apt update
First of all add the GPG key by entering the following command.
==> sudo apt install default-jre
@Nikusharoot
Nikusharoot / veracode_stages.jenkins
Created March 18, 2024 19:13
let's scan code,generate report and delete uploaded code using API.
pipeline {
agent any
stages {
stage('Veracode Scan') {
steps {
// Use Veracode plugin or API to scan code
script {
// Example API call to upload and scan code
sh 'curl -u "username:password" -F "file=@path/to/code.zip" https://analysiscenter.veracode.com/api/5.0/uploadandscan.do'
}
@Nikusharoot
Nikusharoot / uninstall.sh
Created September 4, 2023 22:19
Fully remove iRedMail for Ubuntu server
#!/bin/bash
# Step 1: Stop All Services
echo "Stopping all services..."
sudo systemctl stop postfix
sudo systemctl stop dovecot
sudo systemctl stop apache2
sudo systemctl stop nginx
sudo systemctl stop mysql
# Add other services to stop here
@Nikusharoot
Nikusharoot / Exploitation.md
Created August 15, 2023 11:20 — forked from yezz123/Exploitation.md
Pentesting-Exploitation
@Nikusharoot
Nikusharoot / jenkins_backup_cli.sh
Created April 30, 2023 22:55
backupp jenkins from server
#!/bin/bash -xe
#
# jenkins backup scripts
# https://github.com/sue445/jenkins-backup-script
#
# Usage: ./jenkins-backup.sh /path/to/jenkins_home /path/to/destination/archive.tar.gz
readonly JENKINS_HOME="$1"
readonly DEST_FILE="$2"
@Nikusharoot
Nikusharoot / DockerRegistry.Inst
Last active April 29, 2023 00:38
all about docker registry mgmt
3 docker run -d -p 5000:5000 --restart=always --name my-registry registry:2
4 docker pull nginx:latest
5 docker image tag nginx:latest localhost:5000/nginx:latest
6 docker push localhost:5000/nginx:latest
7 docker pull httpd:latest
8 docker image tag httpd:latest localhost:5000/httpd:latest
9 docker push localhost:5000/httpd:latest
10 docker image prune -a
11 ls
12 docker images
@Nikusharoot
Nikusharoot / eof.sh
Created April 28, 2023 23:30
EOF-ის საშუალებით ფაილის შექმნა და მასში ტექტსტის შეტანა
cat > text.list <<-EOF
erti
ori
sami
EOF