Skip to content

Instantly share code, notes, and snippets.

View ankit1057's full-sized avatar
:octocat:
Developing

Ankit ankit1057

:octocat:
Developing
  • Dhwani Rural Information Systems
  • Gurugram, India
  • 13:43 (UTC -12:00)
  • X @ankit1057
View GitHub Profile
@ankit1057
ankit1057 / stable-diffusion-webui-termux.md
Created October 9, 2024 06:36 — forked from nviet/stable-diffusion-webui-termux.md
Install stable-diffusion-webui on Termux (Android) + PRoot

Install stable-diffusion-webui on Termux (Android) + PRoot

This will guide you on installing AUTOMATIC1111/stable-diffusion-webui on Termux (Android) + PRoot Distro. Make sure that you have a high-end phone to actually make this usable. On my phone with 8GB RAM, launch the webui alone take at least ~ 2 GB RAM, thus making it impossible to load any model and process further.

1. Prerequisites

First you have to install Termux and install PRoot. Then install and login to Ubuntu in PRoot

2. Installing AUTOMATIC1111/stable-diffusion-webui

all the steps to optimize performance on Ubuntu 22.04, along with exception handling. This script will be combined into a single shell script for easy execution.

optimize_ubuntu_22.md

# Optimize Ubuntu 22.04 Performance

This guide provides a comprehensive set of steps to optimize performance on Ubuntu 22.04. The steps include disabling unnecessary services, optimizing I/O scheduler, disabling Transparent Huge Pages (THP), enabling write caching, optimizing swappiness and VFS cache pressure, disabling IPv6, optimizing file descriptors, enabling CPU frequency scaling, disabling unnecessary kernel modules, optimizing boot parameters, enabling preload, and optimizing system updates.

## Steps

Flutter and Android Development Interview Questions

Flutter Basics

  1. What is Flutter?

    • Simplified Answer: Flutter is an open-source UI software development kit created by Google for building natively compiled applications for mobile, web, and desktop from a single codebase.
  2. What are the key features of Flutter?

    • Simplified Answer: Key features include hot reload, widget-based architecture, high performance, and support for multiple platforms.
  3. Explain the difference between StatelessWidget and StatefulWidget.

Advanced Interview Plan for Flutter Developer with DSA and Practical Assignments

Introduction and Warm-up (5 minutes)

  • Introduce yourself and the team.
  • Briefly explain the interview process and what to expect.

Technical Questions (60 minutes)

  1. Advanced Flutter and Dart (15 minutes)
  • Q1: Discuss the performance implications of using setState frequently in a large Flutter application.

Android Interview Questions

1. What are the key building blocks of an Android application?

Answer: Activities, Services, Broadcast Receivers, Content Providers.

2. Describe the Android Activity lifecycle.

Answer: The Activity lifecycle includes states like onCreate, onStart, onResume, onPause, onStop, and onDestroy, managing UI and resources.

3. What are Intents in Android?

Answer: Intents are messages used for inter-component communication, starting activities or services.

@ankit1057
ankit1057 / resume.md
Last active March 7, 2024 12:51
Resume

Ankit

Contact Information

  • Location: Vill. P.O – Kheri Bura Dist.- Charkhi Dadri, Haryana, 127306
  • Mobile: +918306911057
  • Email: [email protected]
@ankit1057
ankit1057 / installPhp.sh
Created July 4, 2023 01:21
Install Lampp on termux
#!/bin/bash
# Update packages
apt update
apt upgrade -y
# Install Apache and PHP
apt install php-apache -y
# Install MySQL
@ankit1057
ankit1057 / install.md
Created June 18, 2023 12:21
Install Docker on Android no root

Docker run 20 instances of Alpine Linux with Tor and Chrome, each refreshing itself every 10 minutes, all on just 2GB of RAM. You can use this to supercharge your testing, browsing, or anything else you want to do with rootless Docker on Alpine Linux.

Using Termux, QEMU, Alpine virtualization, and the VMConsole app on Android, you'll build a powerful and secure local network for super fast builds - all without needing root access on your smartphone.

In this video tutorial, you'll learn how to:

  • Install Docker and Docker Compose on Alpine Linux

  • Clone, compose, and build the necessary repositories

@ankit1057
ankit1057 / InstallChocolateyPackages.ps1
Created February 9, 2023 06:50 — forked from ddieppa/InstallChocolateyPackages.ps1
My "must" chocolatey packages
function main {
Update-Windows-Configuration
Install-Utils
Install-Browsers
Install-Fonts