Skip to content

Instantly share code, notes, and snippets.

View praveen-webartisan's full-sized avatar
🎯
Focusing

Praveen praveen-webartisan

🎯
Focusing
View GitHub Profile
@praveen-webartisan
praveen-webartisan / customSSHCommand.sh
Last active March 22, 2024 15:33
Custom SSH Command: Customize SSH command in Bash script to access Nodes easily
#!/bin/bash
# To Run this file as a Command, Create ~/.bash_aliases file and put the following:
# alias ssh='/path to customSSHCommand.sh ssh'
# alias sftp='/path to customSSHCommand.sh sftp'
type="$1"
provider="$2"
if [ -z "$type" ] || [ -z "$provider" ]
@praveen-webartisan
praveen-webartisan / AESEncryption.java
Last active July 7, 2021 16:20
(AES) Encrypting Folder in Java
import java.io.*;
import java.nio.file.Files;
import java.nio.file.StandardOpenOption;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
import java.util.zip.ZipOutputStream;
import javax.crypto.Cipher;
@praveen-webartisan
praveen-webartisan / aesEncryption.py
Created July 1, 2021 18:10
(AES) Encrypting Folder in Python
from Crypto.Cipher import AES
from Crypto import Random
import os
import time
import sys
import argparse
from pathlib import Path
import colorama
from termcolor import colored
import shutil