Skip to content

Instantly share code, notes, and snippets.

View seyyedaliayati's full-sized avatar
💭
Coding...

Seyyed Ali Ayati seyyedaliayati

💭
Coding...
View GitHub Profile
@davydany
davydany / how-to-tmux-background-process.md
Last active May 15, 2024 16:54
Using TMUX for running processes after you log off

How to Run a Process in the Background with TMUX

There are times when you need to log off your Linux Desktop, and you want a process to run in the background. TMUX manages this very well.

For this example, let's suppose you're running a long running task like running rspecs on your project and it is 5pm, and you need to go home.

Run Your Process

@senko
senko / singleton.py
Created February 25, 2013 08:01
Singleton Django Model
# Written by Senko Rasic <senko.rasic@goodcode.io>
# Released into Public Domain. Use it as you like.
from django.db import models
class SingletonModel(models.Model):
"""Singleton Django Model
Ensures there's always only one entry in the database, and can fix the