Posts

Showing posts from July, 2024

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)