Skip to content

Instantly share code, notes, and snippets.

View Raks-coder's full-sized avatar
:octocat:
Developer | Gamer

Rakshit Malhotra Raks-coder

:octocat:
Developer | Gamer
View GitHub Profile
@Raks-coder
Raks-coder / eml_parser.py
Created February 10, 2023 20:40 — forked from amirasaran/eml_parser.py
Simple Python EML Parser - extract Attachements, HTML, PlainText
import re
from email import parser, message
from email.header import decode_header
class EmlParser(object):
def __init__(self, email: bytes):
self.parsed = parser.BytesParser().parsebytes(email)
def file_name_extractor(self, text):
@Raks-coder
Raks-coder / mongo.yaml
Created July 23, 2021 10:13
A sample yaml file to show use of docker-compose
version: '3'
services:
# my-app:
# image: ${docker-registry}/my-app:1.0
# ports:
# - 3000:3000
mongodb:
image: mongo
ports:
- 27017:27017
pragma solidity 0.5.1;
contract MyContract
{
mapping(address=>uint256)public balances;
event Purchase(
address indexed _buyer,
uint256 _amount);