Skip to content

Instantly share code, notes, and snippets.

@singingwolfboy
singingwolfboy / migrate-devstack.sh
Last active August 29, 2015 14:14
Open edX: Migrate Aspen to Birch RC2
# This script is for devstack
INTERACTIVE=true
while getopts "y" opt; do
case "$opt" in
y)
INTERACTIVE=false
esac
done
if [ "$INTERACTIVE" = true ] ; then
@carsongee
carsongee / update_libc.yml
Last active August 29, 2015 14:14
ansible play to update libc6 for GHOST and reboot serially. works for rhel and debian based distros
- name: Update libc6 and reboot
hosts: all
sudo: yes
# Comment out to apply to all servers
serial: 1
tasks:
- name: "Install packages and update cache"
apt: name="{{ item }}" state=latest update_cache=yes
with_items:
@carsongee
carsongee / course_git_backup.sh
Created January 20, 2015 14:50
course backup to git script for edx-platform
#!/bin/bash
# This script assumes that the git repository is already cloned
# App specifics
EDXAPP_USER="edxapp"
EDXAPP_VENV="/edx/app/edxapp/venvs/edxapp"
EDXAPP_DIR="/edx/app/edxapp/edx-platform"
# Git specifics
export GIT_KEY="/edx/app/course_git_backup/git_backup_deploy"