Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Chandan Kumar Mandal chankruze

🎯
Focusing
View GitHub Profile
View disable_defender.md

How to turn off Windows Defender in Windows 10/11 permanently

Step 1. Boot into safe mode

Click on Windows Start and search for msconfig. Run System Configuration as administrator.

image

You can also start the program Run. Type msconfig and click on OK.

View task.md

Using JS, convert:

[ "OR", ["<", "a", "b"], [ "AND", ["==", "c", "d"], ["!=", "e", "f"] ] ]
// To:
a < b OR (c == d AND e != f)
View xor.c
/*
Author: chankruze (chankruze@gmail.com)
Created: Wed Mar 09 2022 10:06:36 GMT+0530 (India Standard Time)
Copyright (c) geekofia 2022 and beyond
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
View rgb2hex.js
const rgb2hex = (...args) => {
const hexColour = (c) => {
if (c < 256) return Math.abs(c).toString(16).padStart(2, "0");
return 0;
}
let hex = "#";
args.forEach(val => hex += hexColour(val))
return hex
}
@chankruze
chankruze / urlretrieve.py
Created Jun 25, 2021 — forked from xflr6/urlretrieve.py
Replacement for urllib.urlretrieve(url, filename) using the requests library
View urlretrieve.py
# urlretrieve.py - implement urllib.urlretrieve(url, filename) with requests
import contextlib
import urllib
import requests
def urlretrieve(url, filename):
with contextlib.closing(requests.get(url, stream=True)) as r:
r.raise_for_status()
View add_heroku_remote.md
git remote add heroku git@heroku.com:<project_name>.git
git keys:add
View wifi-adb
#!/bin/bash
if [ $# -eq 0 ]
then
adb connect $(ip route show | grep "default via" | cut -d" " -f3)
else
adb connect $1
fi
View k.md

These are a few of my favourite things!

7A3B00

6000C7

67C700

42FFFC

View message.md

Hey check out this super secret message I made, using a cool ROT13 cipher I found online !

Lb, fb unir lbh orra cynlvat gung arj Zrfbcrgf tnzr? Gubfr arj Zrtnybalpuvqr naq Oenqlcbqvqnr gurl nqqrq ner cerggl pbby. Npghnyyl, V jbhyq tb nf sne nf fnlvat gung vg vf abj zl yvsr'f qrnerfg nzovgvba gb bognva n "UzrxmfmnxqExaftYazefqd"!