Skip to content

Instantly share code, notes, and snippets.

@greyltc
greyltc / launch-GRD.sh
Last active May 19, 2024 09:10
configures then activates gnome-remote-desktop from the command line
#!/usr/bin/env bash
# run this on the remote terminal machine, as auser with sudo powers, probably through a remote ssh shell
# this will overwrite all the settings it touches
# the name of the user to run these commands as
TARGET_USER=jane
# we need an inlocked desktop session. we can either start a new autologin one or unlock an existing one
@radzhome
radzhome / json_schema_to_django_model.py
Last active May 9, 2024 20:16
Converts json schema to django models.py
"""
Json Schema to Django Model
"""
import json
import argparse
import logging
import os
def determine_model_name(model_id=None, filename=None):
#-*- coding: utf-8 -*-
import re
import time
import email
from getpass import getpass
from threading import (
Thread,
Event
)