Skip to content

Instantly share code, notes, and snippets.

View lgg's full-sized avatar
👑
Trying to make the world a better place

Fedor lgg

👑
Trying to make the world a better place
View GitHub Profile
@lgg
lgg / readme.md
Last active May 2, 2024 20:14
Keepass file format explained

Keepass file format explained

I’m currently working (I’m just at the beginning, and I’m quite slow) on a personal project that will use Keepass files (kdb and kdbx).
I tried to find some documentation about .kdb and .kdbx format, but I didn’t find anything, even in the Keepass official website. I you want to know how these file formats are structured, you must read Keepass’s source code. So I wrote this article that explains how Keepass file format are structured, maybe it will help someone.

@lgg
lgg / remote-desktop-guide.md
Last active April 27, 2024 21:45
Install Remote Desktop on Jetson Nano

Install remote desktop / remote control for Jetson Nano

Anydesk doesn't support and doesn't work on Jetson Nano (aarch64). So you will need to install VNC, the easiest and fastest is to install the X2Go server. NoMachine, TeamViewer, AnyDesk, OpenVino, VNC, RDP, XRDP, Remote access for Jetson Nano / Xavier.

Installation

  • sudo apt update
  • sudo apt upgrade
  • sudo apt install openssh-server vim git gcc g++ net-tools
  • sudo apt-get install xubuntu-desktop (select lightdm)
@lgg
lgg / README.md
Last active February 2, 2024 17:55
Telegram save all media from chat/user/channel

Quick tip. It is possible to download media with small python script.

Goto https://my.telegram.org and generate api id and api hash Install Telethon library with pip3 install telethon Run saveAllMedia.py (replace api_id, api_hash and username with your values).

If you need proxy install https://github.com/Anorov/PySocks pip install PySocks

This code downloads all media from the dialog with username user/chat/channel in current directory.

@lgg
lgg / gist:4343c02a153c63bf0aa2ffc41d441bb3
Created July 30, 2023 19:56 — forked from jdye64/gist:ca07e01ff3d8e93210c3
Convert .dav files in current directory to .mp4
#!/usr/bin/python
print "Converting all of the .dav files in this current directory into .mp4 files using ffmpeg"
import os
from subprocess import call
files = [f for f in os.listdir('.') if os.path.isfile(f)]
for f in files:
ext = f.split(".")[-1]
if ext == "dav" or ext == "DAV":
@lgg
lgg / solution.md
Last active July 5, 2023 13:41
JetBrains intellij idea + NVM + nodejs + WebStorm

NVM + WebStorm

If you get error:

run npm command gives error "/usr/bin/env: node: No such file or directory

in file watcher

Demo:

Spoiler warning

Spoiler text. Note that it's important to have a space after the summary tag. You should be able to write any markdown you want inside the <details> tag... just make sure you close <details> afterward.

console.log("I'm a code block!");
@lgg
lgg / readme-template.md
Created June 8, 2020 12:47
NeuroCore templates

!!! НЕ ЗАБУДЬТЕ ПЕРЕИМЕНОВАТЬ ДАННЫЙ ФАЙЛ В README.md !!!

Название проекта

Описание проекта

Описание

  • Что делает данный проект
  • Для чего он нужен
@lgg
lgg / agx_xavier_tips-and-tricks.md
Created September 10, 2022 14:54 — forked from andrewssobral/agx_xavier_tips-and-tricks.md
Tips and Tricks for Jetson AGX Xavier
@lgg
lgg / python-reverse-engineering.md
Created July 14, 2022 00:00 — forked from mate-h/python-reverse-engineering.md
Reverse Engineering Python executable

Reverse engineering

Obtained binaries from Discord server. The download link: https://drive.google.com/file/d/1xPP9R2VKmJ9jwNY_1xf1sVVHlxZIsLcg

Basic information about binaries. There are two main versions of the program in question: aimful-kucoin.exe and aimful-binance.exe. They are both Windows executables. From the FAQ section of the discord server, the following information is available:

In what language was this bot written?

  • Python.