This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* genRedeemCode($length) | |
* | |
* Returns a random $length (default 7) | |
* characters to use a code for user to redeem a badge | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Backup up Script | |
# by Brian Carpenter | |
# | |
#see bottom of file for 'main code' | |
D=`date +%F` | |
SERVER="test" |