Skip to content

Instantly share code, notes, and snippets.

View yvenkets's full-sized avatar
🏠
Working from home

Venketraman yvenkets

🏠
Working from home
View GitHub Profile
#/bin/bash
yum install gcc gcc-c++ bison flex libpcap-devel qt-devel gtk3-devel rpm-build libtool c-ares-devel qt5-qtbase-devel qt5-qtmultimedia-devel qt5-linguist desktop-file-utils
yum install wireshark wireshark-qt
yum install wireshark-gnome
@yvenkets
yvenkets / gist:4182b3e5f8edcd1ac2946899df08cd4b
Created October 17, 2023 08:23
Install-Java-Pyhton-Docker in Cent-Os-7
Update the os
yum update -y
install python 3
yum install -y python3
python3 --version
if python 1 or 2 installed set python 3 is default
@yvenkets
yvenkets / java17.txt
Created July 31, 2023 07:39
JDK.17-Installation
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm --no-check-certificate
rpm -ivh jdk-17_linux-x64_bin.rpm
java -version
update-alternatives --config java
#Select the Java vesion17 from the list
java -version
#!/usr/bin/env bash
wget --content-disposition https://nct.onlyoffice.com/sh/Xsy # Hello world image
wget http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.107-1.el7_6.noarch.rpm
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-19.03.5-3.el7.x86_64.rpm
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-cli-19.03.5-3.el7.x86_64.rpm
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-selinux-17.03.3.ce-1.el7.noarch.rpm
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
sudo systemctl restart network # Just for test purposes
sudo rpm -i container-selinux-2.107-1.el7_6.noarch.rpm
@yvenkets
yvenkets / encoded-20201212150102.txt
Created July 14, 2023 06:24 — forked from thegreatestminer/encoded-20201212150102.txt
MobaXTerm Professional x64 License Key [READ COMMENTS]
UEsDBBQAAAAIABNQjFGCf/GfLgAAACwAAAAHAAAAUHJvLmtleTMqdncpCXQOKDAp9woMzEo1MTVOrHAzTjTLME7VNs1LK8owTjQpcU8tcuLlAgBQSwECFAAUAAAACAATUIxRgn/xny4AAAAsAAAABwAAAAAAAAAAAAAAAAAAAAAAUHJvLmtleVBLBQYAAAAAAQABADUAAABTAAAAAAA=
@yvenkets
yvenkets / pk.txt
Created February 2, 2023 07:18 — forked from id4ehsan/pk.txt
Product keys
Product
GVLK
Office 2013 Professional Plus
YC7DK-G2NP3-2QQC3-J6H88-GVGXT
Office 2013 Standard
# Put this in nrpe.cfg on the remote host you're monitoring.
command[check_load]=/usr/local/nagios/libexec/check_load -w 5,4,3 -c 10,8,6
command[check_memory]=/usr/local/nagios/libexec/check_mem.pl -f -w 5 -c 2
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /
command[check_swap]=/usr/local/nagios/libexec/check_swap -w 20% -c 10%
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
@yvenkets
yvenkets / ubuntu_update_booting_kernel.md
Created November 13, 2022 18:10 — forked from chaiyujin/ubuntu_update_booting_kernel.md
Ubuntu: Install Kernel and Set GRUB Default Kernel

Ubuntu: Install Kernel and Set GRUB Default Kernel

Install Kernel

Install the default kernel:

sudo apt install linux-generic

Set GRUB Default Kernel

  1. Find entrance from /boot/grub/grub.cfg
    • Get the $menuentry_id_option:
#!/bin/bash
# IMPORTANT: Make sure your VM's network security rules allows access over TCP Port 80.
# This is required to pass the HTTP challenge.
# Download: curl -o setup.sh <raw URL of this gist>
# Enable execution: sudo chmod +x setup.sh
# Run: ./setup.sh -d "yourdomain.tld" -e "youremail@yourdomain.tld"
while getopts d:e: option
@yvenkets
yvenkets / zip_folders.bat
Created April 10, 2022 18:01
To Compress a bulk files and folders using 7 zip tool in command line.
7z a -t7z "c:\Downloads\%DATE:~7,2%-%DATE:~4,2%-%DATE:~10,4%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%.7z" "c:\Downloads \backup" -mx5