Skip to content

Instantly share code, notes, and snippets.

View razenxc's full-sized avatar
🌙
I'm never gonna be the one for you, I'm never gonna save the world from you

Alexey razenxc

🌙
I'm never gonna be the one for you, I'm never gonna save the world from you
View GitHub Profile
@razenxc
razenxc / getGSFAndroidID.sh
Last active December 3, 2023 15:14
Get Google Services Framework Android ID
# root access and sqlite3 required
su -c 'sqlite3 /data/*/*/*/gservices.db "select * from main where name = \"android_id\";"'
@razenxc
razenxc / dice.py
Created April 12, 2023 19:23
Dice cog command for the Disnake python library that works with the discord API
import random
import disnake
from disnake.ext import commands
class Dice(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.slash_command(description="Rolls a dice.")
@commands.cooldown(1, 15, commands.BucketType.user)
@razenxc
razenxc / main.py
Created April 12, 2023 07:27
MicroPython - Simple weather display on the oled screen - ESP8266
#==========================================================#
# You need to install micropython to use this code #
# To upload the code to the board, you can use Thonny IDE #
#----------------------------------------------------------#
# Setting up an IDE to connect to the board #
# Tools>Options...>Interpreter>Change LocalPython on #
# MicroPython (ESP8266) or your other microcontroller> #
# Bellow select PORT or leave as is #
#----------------------------------------------------------#
# Screen connection pinout to Node MCU v3 ESP8266 #