Skip to content

Instantly share code, notes, and snippets.

View bewitchingme's full-sized avatar

RPC bewitchingme

  • Ottawa, ON, Canada
View GitHub Profile
RS="\[\033[0m\]" # reset
HC="\[\033[1m\]" # hicolor
UL="\[\033[4m\]" # underline
INV="\[\033[7m\]" # inverse background and foreground
FBLK="\[\033[30m\]" # foreground black
FRED="\[\033[31m\]" # foreground red
FLRD="\e[91mLight red]"
FGRN="\[\033[32m\]" # foreground green
FYEL="\[\033[33m\]" # foreground yellow
FBLE="\[\033[34m\]" # foreground blue
def set_user_tz
if member_signed_in?
Time.zone = ActiveSupport::TimeZone.new(current_member.time_zone)
else
Time.zone = ActiveSupport::TimeZone.new('UTC')
end
end
ActionView::Template::Error (Illegal nesting: content can't be both given on the same line as %td and nested within it.):
@bewitchingme
bewitchingme / RailsTemplate.xml
Created May 10, 2017 06:23 — forked from miry/RailsTemplate.xml
TeamCity template for Rails applications To use it, create a template, and replace the file in `.BuildServer/config/projects/<project_name>/buildTypes/<build_template_id>`
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE template SYSTEM "../../../project-config.dtd">
<template>
<name>Rails</name>
<settings>
<options>
<option name="executionTimeoutMin" value="20" />
</options>
<parameters>