Skip to content

Instantly share code, notes, and snippets.

View SaicharanKandukuri's full-sized avatar
🐧
Busy with job

Zman | サ イ チャラン SaicharanKandukuri

🐧
Busy with job
View GitHub Profile
@SaicharanKandukuri
SaicharanKandukuri / null and 0 relation.js
Last active November 5, 2022 12:37
[null & 0 in javascript] code to show how strange relation between null & 0 works in javascript
/*
CODE to show how relation between null ( an object ) & 0 ( a Number ) works in JavaScript
code below is not fully implemented according to algorithm in ECMA-262 only the part where values of null & 0 satisfies are covered
REFER: https://262.ecma-international.org/5.1
(C) saicharankandukuri 2022
*/
const LOG = (buff) => console.log(buff);

Complexity => Medium

GitHub

  • To be able to use Git command line
  • Understand git system & logics ( how git is intended to use )
  • Creating a github profile
  • understanding github UI
  • how learning GitHub impacts standards of a person ( which later helps in industries )
  • Creating a repository
@SaicharanKandukuri
SaicharanKandukuri / termux proot options.txt
Created August 31, 2022 03:43
all the options used for running a linux distro with proot
proot \
-b /system \ # std mountpoint to /system => system root of android
-b /sys \ # std mountpoint to /sys => linux start /sys
-b /vendor \ # std mountpoint to /vendor => for libs ( which wont used in proot )
-b /proc \ # std linux proc mountpoint
-b /dev \ # std linux dev mountpoint
-b /dev/urandom:/dev/random \ # urandom mountpoint
-b /proc/self/fd/1:/dev/stdout \ # stdout mountpoint
-b /proc/self/fd/2:/dev/stderr \ # stderr mountpoint
-b /proc/self/fd/0:/dev/stdin \ # stdin mountpoint
@SaicharanKandukuri
SaicharanKandukuri / gdsc.ascii
Created August 19, 2022 03:13
google developer logo in ascii made with jp2a
                         ';ccc:,               .;::::'.                        
                     ..;c

Pumis research notes

a little effort to display my attendence in terminal 🤏 this process includes understanding how pumis works with the help of proxies and recreating requests

⚠️: this research is done only in authorised spaces of site. ( also iam 0 in aspx )

  • so pumis made with asp.net (Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3930.0)
  • and its performs SSR most of the the time so its hard to get raw data ( site always returns always xhtml )
@SaicharanKandukuri
SaicharanKandukuri / restore.sh
Created June 2, 2022 02:49
A test script to restore udroid distros
#!/bin/bash
# Udroid restore utilty test
#
# Not ready yet!
#
TERMUX_STORAGE_PREFIX="/data/data/com.termux"
file=$1
@SaicharanKandukuri
SaicharanKandukuri / ceasercypher.cpp
Last active June 2, 2022 02:52
My version of ceaser cypher in c++ with just alphabets with both upper & lower case
#include <iostream>
/*
(C) SaicharanKandukuri <[email protected]> 2022
please try not to copy paste this in your class 👌
*/
#define SHIFT 3 // hardoced ( XD )
using namespace std;
string ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; // ALPHABETS for encryption
@SaicharanKandukuri
SaicharanKandukuri / clz.sh
Created April 7, 2022 07:02
A Script for compressing folders with lz4
#!/usr/bin/env bash
# Usage: bash clz.sh foldername filenametocompress
target=$2
target_source=$1
tar \
--exclude="${target_source}"${0} \
--exclude="${target_source}${target}.tar.lz" \
--exclude-caches-all \

This is how error looks like

Limiting TX power to 30 (30 - 0) dBm as advertised by ...

Symptoms

  • you can't load any website
  • pinging 1.1.1.1 hardly gets 30% packet loss
  • Bandwidth is shows almost 20% in actual

Solution

@SaicharanKandukuri
SaicharanKandukuri / compressing_linux_distro.md
Last active June 10, 2023 09:12
tarball linux from with tar ( proot & chroot )

inside a chroot

using tar with arguments -cvpzf where

  • c for compress
  • v user verbose ( it basically prints out all files to console thar are being compressed )
  • z use gzip as compression format
  • f file were all compression should go

we need to say tar not to compress any device specific directories like /dev, /sys,/proc & /run we can use --exclude for that