Skip to content

Instantly share code, notes, and snippets.

View jaglinux's full-sized avatar

Jagadish Krishnamoorthy jaglinux

View GitHub Profile
@jaglinux
jaglinux / deepseek.py
Last active January 26, 2025 15:23
Deepseek api
# Download this code and on your terminal, type the below commands. This is only required first time.
# pip3 install openai
# export DeepSeek_API_Key=<your DeepSeek API Key>
# Then run the below command to ask questions to deepseek model
# python3 deepseek.py
import os, sys
from openai import OpenAI
@jaglinux
jaglinux / evm_disassembler.py
Created December 26, 2022 09:27
Inspired from https://gist.github.com/ItsCuzzo/dbce3c4b2f60f8cf9d3d8ac17b248fee , EVM disassembler to decode selector from bytecode
opcodes = {
0x00: 'STOP',
0x01: 'ADD',
0x02: 'MUL',
0x03: 'SUB',
0x04: 'DIV',
0x05: 'SDIV',
0x06: 'MOD',
0x07: 'SMOD',
0x08: 'ADDMOD',