Skip to content

Instantly share code, notes, and snippets.

@timss
timss / python-daemon_apscheduler.py
Last active April 4, 2020 04:50
A combination of python-daemon and APScheduler
#!/usr/bin/env python
import apscheduler.scheduler
import daemon.runner
import os.path
import sys
import time
class Core():
def __init__(self):
@timss
timss / python273_install.sh
Last active November 18, 2022 05:33
Python 2.7.3 altinstall script for CentOS 5
#!/bin/bash
#---------------------------------------#
# Python 2.7.3 Install on CentOS 5 #
# https://gist.github.com/timss/5122008 #
# #
# Installs to /usr/local/{bin,lib} #
# Seperate from system default #
# /usr/bin/python(2.4) #
#---------------------------------------#