Skip to content

Instantly share code, notes, and snippets.

View psywhale's full-sized avatar
🏒
Building a TUI python with ORM via SQLAlchemy.

Brian Carpenter psywhale

🏒
Building a TUI python with ORM via SQLAlchemy.
View GitHub Profile
#!/bin/bash
#USAGE:
# /etc/skel has the user home directory setup /home/[user]
# run this script and pipe the output to whereever your apache sites are configured
# create the virtualenv in /home/[user]/venv
# activate it
# pip install -r requirements.txt
# upload your django project
# update the WSGIScriptalias line below to point to wsgi.py
<?php
/**
* genRedeemCode($length)
*
* Returns a random $length (default 7)
* characters to use a code for user to redeem a badge
*
*/
@psywhale
psywhale / backup.sh
Last active April 17, 2019 17:11
Backup script for my servers
#!/bin/bash
# Backup up Script
# by Brian Carpenter
#
#see bottom of file for 'main code'
D=`date +%F`
SERVER="test"