Skip to content

Instantly share code, notes, and snippets.

View daronco's full-sized avatar

Leonardo C. Daronco daronco

View GitHub Profile
MOODLE_HOME="/var/www/moodle"
MOODLE_DATA="/var/www/moodle/moodledata"
sudo mkdir -p $MOODLE_DATA/lang/pt_br
cd $MOODLE_HOME
sudo wget https://github.com/mconf/moodle-mod_bigbluebuttonbn/archive/v2.2-elos.zip
sudo unzip v2.2-elos.zip
sudo mv moodle-mod_bigbluebuttonbn-2.2-elos mod/bigbluebuttonbn
cp mod/bigbluebuttonbn/lang/pt_br/bigbluebuttonbn.php $MOODLE_DATA/lang/pt_br/bigbluebuttonbn.php
@daronco
daronco / restart_file_touched.rb
Created January 17, 2012 18:13 — forked from technicalpickles/restart_file_touched.rb
A custom condition for God that checks for change in a file (usually tmp/restart.txt)
module God
module Conditions
class RestartFileTouched < PollCondition
attr_accessor :restart_file
def initialize
super
end
def process_start_time
Time.parse(`ps -o lstart -p #{self.watch.pid} --no-heading`)