Skip to content

Instantly share code, notes, and snippets.

@xeldrago
xeldrago / BgRm-Python.py
Created October 31, 2022 16:41
This is a Background remover for images
from rembg import remove
from PIL import Image
input_path='YourImageName.jpg'
output_path='YourImageName.png'
Bg_of_image=Image.open(input_path)
output=remove(Bg_of_image)
output.save(output_path)
@xeldrago
xeldrago / WiFiPasswordFinder.py
Created August 1, 2021 07:08
yo guys, simple useful piece of code to find your lost or forgotten password of your wifi
import os #you'll need os module for running commands into your command prompt or jus open command prompt and type the below command
#that is what this code does lol command is "netsh wlan show profile {name of network} key=clear" -- hafun!!
net_id=input("type the network name connected to your device\n")
os.system(f"netsh wlan show profile {net_id} key=clear") #the command i said
print("now from the output, look for key content, that is your lost or forgotten password")
@xeldrago
xeldrago / imgToSketch.py
Created July 21, 2021 14:25
a piece of code to change your images to sketch, hafun
import cv2
image=cv2.imread("TheImage.jpg")
gray_image=cv2.cvtColor( image, cv2.COLOR_BGR2GRAY)
inverted = 255-gray_image
blur = cv2.GaussianBlur(inverted, (21, 21), 0)
invertedblur = 255-blur
sketch = cv2.divide(gray_image, invertedblur, scale=256.0)
cv2.imwrite("WhatYouWantSketched.png", sketch)
cv2.imshow("Image", sketch)
try:
users = {'createLogin' : [],'createPassw' : []}
status = ""
def displayMenu():
global status
global users
status = input("are u known y/n? press q to get out---")
if status == "y":
try:
users = {}
status = ""
def displayMenu():
global status
global users
status = input("are u known y/n? press q to get out---")
if status == "y":
@xeldrago
xeldrago / blocks.c
Last active May 4, 2020 11:51
blocks tutorial
#include<stdio.h>
void sayhello(){
printf("Hello World");
}
int main(){
int num;
char* number;
do{
printf("\njust say some number: ");