Skip to content

Instantly share code, notes, and snippets.

View Nivratti's full-sized avatar

Nivratti Boyane Nivratti

View GitHub Profile
@Nivratti
Nivratti / directory-structure-deep-learning
Last active April 10, 2025 08:46
Directory structure for deep learning projects
project_name/
├── data/ # All data-related directories and files
│ ├── raw/ # Original, immutable data dump
│ ├── processed/ # Data transformed for modeling, such as TFRecords or HDF5
│ ├── interim/ # Temporary processed datasets, possibly smaller or for prototyping
├── docs/ # Project documentation
│ ├── api/ # API reference
│ ├── design_docs/ # Design documents, architectural choices
@Nivratti
Nivratti / prevent-colab-random-disconnects.md
Last active June 25, 2021 10:40
Prevent Google Colab random disconnects

Run the following code in the console and it will prevent you from disconnecting.

  1. Ctrl+ Shift + i to open inspector view .
  2. Then go to console.
  3. Paste this below and press enter.
var startClickConnect = function startClickConnect(){
 var clickConnect = function clickConnect(){
@Nivratti
Nivratti / xrdp-setup.md
Last active February 13, 2022 07:32
Setup Remote Desktop (RDP) on Ubuntu 18.04

How to Install Xrdp Server (Remote Desktop) on Ubuntu 18.04

  1. Install Xfce package:
sudo apt update
sudo apt install -y xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils
  1. Installing Xrdp:
@Nivratti
Nivratti / postgres_manager.py
Created December 17, 2019 09:06 — forked from valferon/postgres_manager.py
Python script to take care of postgres backup and restore of data
#!/usr/bin/python3
import argparse
import logging
import subprocess
import os
import tempfile
from tempfile import mkstemp
import configparser
import gzip
@valferon
valferon / postgres_manager.py
Created March 29, 2018 02:35
Python script to take care of postgres backup and restore of data
#!/usr/bin/python3
import argparse
import logging
import subprocess
import os
import tempfile
from tempfile import mkstemp
import configparser
import gzip