Posts

SSH Setup Batch Script #batchscript #tools

 @echo off echo Checking if running as administrator... net session >nul 2>&1 if %errorLevel% neq 0 (     echo Please run this script as Administrator.     pause     exit /b ) echo Installing OpenSSH Server... dism /Online /Add-Capability /CapabilityName:OpenSSH.Server~~~~0.0.1.0 echo Starting SSH service... net start sshd echo Enabling SSH service to start automatically... sc config sshd start=auto echo Allowing SSH through Windows Firewall... netsh advfirewall firewall add rule name="OpenSSH" dir=in action=allow protocol=TCP localport=22 echo Checking SSH service status... sc query sshd echo SSH setup completed successfully. pause exit

Code beautify Websites

https://dev.to/estheragbaje/6-awesome-tools-that-turn-code-snippets-to-images-54fo

Add variable to env in zshrc and print

Image
  import os a = getenv('EMAIL_ADDRESS') print(a) #You will get your email address.

Install `code-server` on your Android device using Termux

 To install `code-server` on your Android device using Termux, you need to follow a few steps to set up the environment, install dependencies, and run `code-server`. Here’s a step-by-step guide: ### Step-by-Step Guide to Install `code-server` in Termux on Android #### Step 1: Install Termux 1. **Download Termux** from the [Google Play Store](https://play.google.com/store/apps/details?id=com.termux) or from [F-Droid](https://f-droid.org/packages/com.termux/). 2. **Open Termux** once installed. #### Step 2: Update and Upgrade Packages 1. **Update and upgrade packages**:     ```sh     pkg update && pkg upgrade -y     ``` #### Step 3: Install Dependencies 1. **Install required packages**:     ```sh     pkg install wget nodejs openssh -y     ``` #### Step 4: Install `code-server` 1. **Download the latest release of `code-server`**:     ```sh     wget https://github.com/coder/code-server/releases/down...

Create a code server in raspberry pi/your own pc/your own kali machine access it from anywhere from lan to wan #coding

 Step :1 Download  Code-Server Link-  Releases · coder/code-server (github.com) For raspberry pi install f letter included there. Step :2 run the code-server Step:3 change the file for password for to add machine ip rather than private 127. ip to access it on network  for no password write none.

get pass get pass - to hide the character of password while input using python

 import getpass password = getpass.getpass("Enter your password: ") print("Password entered:", password)