One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| #!/usr/bin/ruby | |
| # For an OO language, this is distinctly procedural. Should probably fix that. | |
| require 'json' | |
| details = Hash.new({}) | |
| capture_params = [ | |
| { :name => "title", :message => "Enter project name." }, | |
| { :name => "url", :message => "Enter the URL of the project repository." }, |
| ALTER DATABASE seek_production CHARACTER SET utf8 COLLATE utf8_unicode_ci; | |
| connect seek_production; | |
| ALTER TABLE activity_logs CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | |
| ALTER TABLE admin_defined_role_projects CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | |
| ALTER TABLE annotation_attributes CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | |
| ALTER TABLE annotation_value_seeds CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | |
| ALTER TABLE annotation_versions CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | |
| ALTER TABLE annotations CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; |
| #!/bin/bash -e | |
| # /usr/local/sbin/raspi-monitor | |
| # Script to enable and disable the HDMI signal of the Raspberry PI | |
| # Inspiration: http://www.raspberrypi.org/forums/viewtopic.php?t=16472&p=176258 | |
| CMD="$1" | |
| function on { | |
| /opt/vc/bin/tvservice --preferred |
| # Temporarily redirects STDOUT and STDERR to /dev/null | |
| # but does print exceptions should there occur any. | |
| # Call as: | |
| # suppress_output { puts 'never printed' } | |
| # | |
| def suppress_output | |
| original_stderr = $stderr.clone | |
| original_stdout = $stdout.clone | |
| $stderr.reopen(File.new('/dev/null', 'w')) | |
| $stdout.reopen(File.new('/dev/null', 'w')) |
| #!/bin/sh | |
| # Enable and disable HDMI output on the Raspberry Pi | |
| is_off () | |
| { | |
| tvservice -s | grep "TV is off" >/dev/null | |
| } | |
| case $1 in |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| task :environment do | |
| require './dj-sinatra' | |
| end | |
| namespace :jobs do | |
| desc "Clear the delayed_job queue." | |
| task :clear => :environment do | |
| Delayed::Job.delete_all | |
| end |