Skip to content

Instantly share code, notes, and snippets.

View 0x4ka5h's full-sized avatar
⚙️
In work

Akash Thota 0x4ka5h

⚙️
In work
View GitHub Profile
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@0x4ka5h
0x4ka5h / cloudStartup.sh
Last active February 9, 2024 16:48
cloudConnectingwithDE10Nano
cd ~
apt update
$(git clone https://github.com/intel-iot-devkit/terasic-de10-nano-kit.git)
cd /home/root/terasic-de10-nano-kit/azure-de10nano-document/sensor-aggregation-reference-design-for-azure/sw/software-code/modules/RfsModule
$(python3.7 -m pip install -r ./requirements.txt)
export IOTHUB_DEVICE_SECURITY_TYPE="DPS"
@0x4ka5h
0x4ka5h / image_restoration_for_medical_field_images.ipynb
Created May 28, 2021 09:34
image_restoration_for_medical_field_images.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@0x4ka5h
0x4ka5h / vgg16_implementation_for_snake_detection.ipynb
Created May 28, 2021 08:25
VGG16_implementation_for_SNAKE_detection.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@0x4ka5h
0x4ka5h / snake_detection_using_gradcam.ipynb
Created May 28, 2021 08:23
snake_detection_using_gradcam.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@0x4ka5h
0x4ka5h / data_preprocessing_for_restoration.ipynb
Last active June 5, 2021 14:24
data_preprocessing_for_restoration.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@0x4ka5h
0x4ka5h / hide_text_in_image.py
Last active May 28, 2021 08:28
Stegnography
from PIL import Image,ImageFont,ImageDraw
import textwrap
import pytesseract
def decode_image(file_location="/home/g00g1y_5p4/Desktop/images/encoded_sample.png"):
"""Decodes the hidden message in an image
file_location: the location of the image file to decode. By default is the provided encoded image in the images folder
"""
encoded_image = Image.open(file_location)
red_channel = encoded_image.split()[0]
@0x4ka5h
0x4ka5h / html2pdf.py
Last active December 9, 2019 09:57
convert html to pdf
import pdfkit
path=input("Enter path of the html file: ")
pdfkit.from_file(path, 'out.pdf')