Git-Notes

VIM prompt “:” :wq → save & quit :q! → quit without saving GitHub Token Location + Brew Installaiotn commands (One Time): Token Setup: GitHub → Profile Icon → Settings → Developer settings → Personal access tokens → Tokens Modern One (Not Classic). Use this when it asked you the password. commands for homebrew + git brew install git brew --version # Run these commands in your terminal to add Homebrew to your PATH: echo >> /Users/fewsteps/.zprofile echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/fewsteps/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)" GitHub Workflow for Multiple Users and Devices — Complete Command Guide git pull origin main # 1. Get latest project (always do this first) git checkout -b my-feature-branch # 2. Create your own branch (give your branch a unique name) # (edit code normally) # 3. Make changes to your files git add . # 4. Stage and commit your changes git commit -m "my update" git push origin my-feature-branch # 5. Push your branch to GitHub # 6. Go to GitHub website # → Open Pull Request → Merge branch into main (No terminal command — you click buttons on GitHub) git checkout main # 7. After the PR is merged, update your local main # git pull origin main # beginning of thask Future Modifications Workflow After a branch is merged, create a new branch for any new changes. ...

November 6, 2025 · Few Steps

Hugo: All Hugo Tips And Tricks

🧩 Step 1: Install Hugo (Extended Version) Open your terminal and run and Make sure it says extended — required for themes using SCSS. brew upgrade hugo # Update Hugo git submodule update --remote --merge # Update theme brew install hugo # install hugo version # verify version hugo v0.133.1+extended darwin/arm64 ... # Expected output: hugo new site . --format yaml # Create a New Hugo Site in root folder hugo new _index.md # create new phome page hugo new contact.md # create other pages # ---------------------------------------- # Add .gitignore first # ---------------------------------------- touch .gitignore # Create a .gitignore file nano .gitignore # Open it in the terminal editor (nano) to add entries git add . git commit -m "Initial Hugo site" git remote add origin https://github.com/yourname/mycoursesite.git git push origin main # install theme: Papermod/Zen rm -rf themes/hugo-profile # delete old theme git submodule add https://github.com/gurusabarish/hugo-profile.git themes/hugo-profile hugo server # Run locally hugo server -D # Debug mode Run the local development server: hug build # Build the project rm -rf themes/PaperMod # Delete the old theme folder git clone https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod @ Clone the latest PaperMod from GitHub grep version themes/PaperMod/theme.toml # Check the version Add Standalone HTML Page in Hugo # Put your HTML file inside the static folder static/your-folder/index.html # Hugo copies this directly to the site # Access the page in the browser /your-folder/ # URL automatically loads index.html # Link to the page from your site <a href="/your-folder/">Open Page</a> # Simple link to the static page [MarkDown Formattted](/foldername/) Sample .gitignore file .DS_Store Thumbs.db .hugo_build.lock hugo_stats.json public/ resources/ node_modules/ .vscode/ .firebase/ hugo.yaml file content PaperMod Ref: https://github.com/adityatelange/hugo-PaperMod/wiki/Installation Zen Ref: Sample content of the pages: --- title: "Home" draft: false --- Deploy to Netlify Go to https://app.netlify.com → Click “Add New Site → Import from GitHub” → Select your repository. Then click Deploy. At the root of your project, create netlify.toml and add: [build] command = "hugo --gc --minify" publish = "public" [build.environment] HUGO_VERSION = "0.152.2" HUGO_ENV = "production" HUGO_EXTENDED = "true" HUGO_ENABLEGITINFO = "true" [context.production.environment] HUGO_ENV = "production" [context.deploy-preview.environment] HUGO_ENV = "staging" Firebase Hosting/Deploy: hugo npm install -g firebase-tools firebase login firebase init #configure whatever needed hugo firebase deploy Suggestion for modification Hugo Commnity 1) Edit the .gitignore file in the root of your project. It should look something like this: .DS_Store .hugo_build.lock hugo_stats.json node_modules/ public/ resources/ 2) Remove the public directory (and other cruft) from source control and push changes: git rm -rf public/ git rm .hugo_build.lock git rm .DS_Store git add -A && git commit -m "Cleanup repo" && git push Add and Display Images in Hugo PaperMod Place image inside static folder: static/images/myImage.png means: we can reference it in markdown as: /images/myImage.png Add Image as Page Cover front matter (top section) This displays the image at the top of the post as a cover/banner. cover: image: "/images/myImage.png" alt: "macOS 26 Course" caption: "Ultimate macOS 26 Tahoe Course" hidden: false Add Image Inside Page Content use Hugo figure shortcode: Don’t leave a space between {{ and <figure. {{< figure src="/images/myImage.png" alt=“altText” caption=“captionText” width=“300px” >}} ...

November 6, 2025 · Few Steps

Java

Mac Java Installation Steps Download and Install Java Check installed JDKs /usr/libexec/java_home -V [for Mac] java -version [for Windows] Open .zshrc and set JAVA_HOME vi ~/.zshrc [using terminal] export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home [add this] esc → :wq [Save and exit] Save and reload shell config in terminal source ~/.zshrc Check Java HOME is setup properly from terminal echo $JAVA_HOME Windows Java Installation Steps Download and Install Java Check installed JDKs java -version [for Windows] Set JAVA_HOME Environment Variable Open System Properties → Advanced → Environment Variables Under System variables, click New and add: Variable name: JAVA_HOME Variable value: C:\Program Files\Java\jdk-17 [or your JDK path] Click OK to save Update PATH Variable In the same Environment Variables window, select Path → Edit → New, then add: %JAVA_HOME%\bin Click OK to save and close Verify Configuration in Command Prompt java -version echo %JAVA_HOME% Class-level/Instance variables/field + Local Variable public class Car { String brand; // Class-level/Instance variables/field (each Car object has its own copy) int year; static int wheels = 4; //Static variable (shared by ALL Car objects) public Car(String brand, int year) { // Constructor (sets instance variables) this.brand = brand; this.year = year; } public void displayInfo() { // Method with a local variable String info = "Car Brand: " + brand + ", Year: " + year + ", Wheels: " + wheels; // Local variable (exists only while this method runs) System.out.println(info); } public static void main(String[] args) { Car myCar = new Car("Toyota", 2022); // Local variable in main() myCar.displayInfo(); // Calling instance method using the object System.out.println("All cars have " + Car.wheels + " wheels."); // Accessing static variable Car anotherCar = new Car("Honda", 2020); // Creating another car to show that static variable is shared anotherCar.displayInfo(); } } When to use static You’d only make it static if the method doesn’t depend on any specific object’s data. For example: public static void showWheelsInfo() { System.out.println(“All cars have " + wheels + " wheels.”); } This one is static because it only uses the wheels variable — which is also static — and doesn’t need to know about a specific Car object.

November 6, 2025 · Few Steps

Selenium

https://practicetestautomation.com/practice-test-login/ Comparison Differnt Versions of Selenium // Selenium 2, 3 (Manual driver setup) System.setProperty("webdriver.chrome.driver", "C:\\drivers\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); // Selenium 4.0 – 4.5 (Using external WebDriverManager) import io.github.bonigarcia.wdm.WebDriverManager; WebDriverManager.chromedriver().setup(); WebDriver driver = new ChromeDriver(); // Selenium 4.6+ to 4.38 (Built-in Selenium Manager — current) WebDriver driver = new ChromeDriver(); // No setup needed Best Practices // Window management driver.manage().window().maximize(); // Cookies driver.get("https://www.google.com"); driver.manage().addCookie(new Cookie("TestCookie", "12345")); // Timeouts — Best Practice driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10)); // for element search driver.manage().timeouts().pageLoadTimeout(Duration.ofSeconds(20)); // for full page load driver.manage().timeouts().scriptTimeout(Duration.ofSeconds(10)); // for JS scripts // Example: delete old cookies at start driver.manage().deleteAllCookies(); driver.manage() – Overview Category Common Methods Purpose Window maximize(), minimize(), fullscreen(), setSize(), setPosition() Control browser window Cookies getCookies(), addCookie(), deleteAllCookies() Manage session cookies Timeouts implicitlyWait(), pageLoadTimeout(), scriptTimeout() Control how Selenium waits for operations Timeouts — driver.manage().timeouts() Method Description implicitlyWait(Duration time) Wait for elements to appear pageLoadTimeout(Duration time) Max time to wait for page to load scriptTimeout(Duration time) Max time for asynchronous scripts (JS) Sample Test Case You are a Selenium Java expert. I need to automate a simple task: ...

November 6, 2025 · Few Steps

Useful Prompts

Title Creation: You are an SEO specialist. I will give you a text, and you will generate SEO-friendly, high-CPC YouTube video title based on it. Do not include any explanation — only the titles. Do not use any “-” or “:”; instead, use “|” if needed in the title. I have the following content: [paste your content here]. Give me 15–20 strong, catchy, and clickable YouTube title ideas for it. Make them short, punchy, and designed to get high clicks. Do NOT change the content — just create title ideas. Also, suggest optional thumbnail text ideas after the titles Presentation Slide Step 1: Using Grok: Provide a clear, detailed, and beginner-friendly explanation of [how to build a credit score] fast. The explanation should be easy for anyone to understand, with step-by-step guidance and practical examples. Write in a natural, human-like style so the output does not appear to be generated by AI." Step 2: Here is my YouTube title and content. DO NOT change the title. ...

November 6, 2025 · Few Steps

Bookmarks

RevealDeck: https://ifewsteps-revealdeck.web.app Windows Activation, windows-keys

Create the Login page for hugo website testing

You want a fake login page inside your Hugo site (Papermod theme) so that you can teach QA automation with Java + Selenium using selectors like ID, name, CSS, XPath, etc. The login page should work like this: Page name: test.md Contains a form: username, password, Login button Valid credentials: username: fewsteps password: password If correct → redirect to login-success page If wrong → show an error message on the same page ...

Tutorials home

Hugo, Hugo Extra(For QA Login Site) For QA: Git Java Selenium Practice Site: Solution 1, Solution 2 Prompt MacOS Email Chain YopMail - Udemy For Admin Use Only [hugo server -D ] Bookmarks All bookmarks, YouTube: DreamCar, KnowSense01 Exercise: bigmuscles, Simplyyyeasy Presentation CSV to Slide Note: “I” for all menus Data to Presentation Exercises: Squat Publishers identifyy[If you want privacy and keep it simple: Use “Few Steps” in ARTIST, WRITER, RECORD LABEL, PUBLISHER. If you want legal accuracy and plan to register with PROs: Use your real name in the WRITER and possibly PUBLISHER fields, and use “Few Steps” as ARTIST and RECORD LABEL] 🎥 YouTube Stop-Motion Tutorials with Software -[best] (https://www.youtube.com/shorts/2bgipx-EANY) ...