This file contains hidden or 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
# | |
# * * * * * command to be executed | |
# - - - - - | |
# | | | | | | |
# | | | | +- - - - day of week (0 - 6) (Sunday=0) | |
# | | | +- - - - - month (1 - 12) | |
# | | +- - - - - - day of month (1 - 31) | |
# | +- - - - - - - hour (0 - 23) | |
# +- - - - - - - - minute (0 - 59) | |
# |
This file contains hidden or 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 | |
# Script will output dumps for all databases using seperate files | |
# Derived from this post: http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/ | |
USER="root" | |
PASSWORD="SnM1073k" | |
HOST="localhost" | |
MYSQL="$(which mysql)" | |
MYSQLDUMP="$(which mysqldump)" | |
OUTPUT_DIR="/backups/files" |
This file contains hidden or 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
var http = require('http'), | |
httpProxy = require('http-proxy'); | |
// | |
// Create an instance of node-http-proxy | |
// | |
var proxy = new httpProxy.HttpProxy({ | |
target: { | |
host: 'localhost', | |
port: 8124 |
This file contains hidden or 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
rror: http response not OK: 403 | |
at IncomingMessage.module.exports.send (/home/deployer/production/memecube/node_modules/book-raven/node_modules/raven/lib/transports/http.js:41:27) | |
at IncomingMessage.EventEmitter.emit (events.js:126:20) | |
at IncomingMessage._emitEnd (http.js:366:10) | |
at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23) | |
at CleartextStream.socketOnData [as ondata] (http.js:1485:20) | |
at CleartextStream.CryptoStream._push (tls.js:544:27) | |
at SecurePair.cycle (tls.js:898:20) | |
at EncryptedStream.CryptoStream.write (tls.js:285:13) | |
at Socket.ondata (stream.js:38:26) |
This file contains hidden or 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
socket.on('authenticate', function(data) { | |
var room = ''; | |
socket.userId = data.userId; | |
connections[socket.userId] = socket; // Must be keyed on userId - that's the whole point | |
socket.room = room; | |
socket.join(room); | |
}); |
This file contains hidden or 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
Thank you! | |
Relevant parts of models: | |
class Event < ActiveRecord::Base | |
attr_accessible :meeting_id, | |
:session_name, | |
:description, | |
:event_type_id, | |
:start_date_time, |
This file contains hidden or 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
<%= simple_form_for([@meeting,@event], :html => {:class => 'form-horizontal' }) do |f| %> | |
<%= f.error_notification %> | |
<div class="form-inputs"> | |
<ul class="tabs"> | |
<li> | |
<input type="radio" checked name="tabs" id="tab1"> | |
<label class="tab-label" for="tab1">Basics</label> | |
<div id="tab-c1" class="tab-c animated fadeIn"> |
This file contains hidden or 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
<div class="nested-fields speaker-slot-fields"> | |
<div id="speaker_from_list"> | |
<%= f.association :speaker, :collection => current_organizer.org.speakers(:order => 'name') %> | |
| |
<%= link_to_remove_association f, { :class => "dIB vaM" } do %><i class="fui-cross"></i><% end %> | |
</div> | |
</div> |
This file contains hidden or 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
.color-cycle { | |
color: hsla(270,95%,69%,0.25) !important | |
} | |
@-webkit-keyframes colors { | |
0% { | |
color: hsla(270,95%,69%,0.25) | |
} | |
15% { |
This file contains hidden or 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
<center> | |
<table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;margin: 0;padding: 0;background-color: #363636;height: 100% !important;width: 100% !important;"> | |
<tbody><tr> | |
<td align="center" valign="top" id="bodyCell" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;margin: 0;padding: 0;border-top: 0;height: 100% !important;width: 100% !important;"> | |
<!-- BEGIN TEMPLATE // --> | |
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;"> | |
<tbody><tr> | |
<td align="center" valign="t |