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
| d = Dir.new(Dir.pwd) | |
| d.each do |x| | |
| if File.directory?(x) && x != "." && x!= ".." | |
| Dir.chdir("./"+File.basename(x)) | |
| to_change = Dir.glob("[0-9].png") | |
| to_change.each { |x| File.rename(x, 0.to_s + x) } | |
| to_change_small = Dir.glob("small-[0-9].png") | |
| to_change_small.each { |x| File.rename(x, x[0,6] + 0.to_s + x[6,7]) } | |
| Dir.chdir("../") |
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
| import smtplib | |
| from email.MIMEText import MIMEText | |
| text_subtype = 'text' | |
| # Enter the desired body in the 'content' variable | |
| content = 'body of the email here' | |
| msg = MIMEText(content, text_subtype) |
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
| $(document).ready(function(){ | |
| $("#interaction_email").rules("add", { | |
| required:true, | |
| messages: { | |
| required: "Email address is required", | |
| email: "Email address is invalid" | |
| } | |
| }); | |
| }); |
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
| #! /usr/bin/env ruby | |
| require 'rubygems' | |
| require 'bundler/setup' | |
| require 'sinatra' | |
| require 'haml' | |
| require 'html2textile' | |
| get('/') { haml :form} |
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
| <script type="text/javascript"> | |
| $(function(){ | |
| $('#ticket_custom2 option').first().attr('value', ''); | |
| $('#ticket_custom2').rules( 'add', { | |
| required: true, | |
| messages: { | |
| required: 'REQUIRED_MESSAGE_GOES_HERE' | |
| } |
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
| {% for first_interaction in case.interactions limit:1 %} | |
| {% if first_interaction.os %} | |
| <div> <strong>OS</strong> <br/>{{first_interaction.os}} – version {{first_interaction.os_version}} </div> | |
| {% endif %} | |
| {% if first_interaction.browser %} | |
| <div> <strong>Browser</strong> <br/>{{first_interaction.browser}} – version {{first_interaction.browser_version}} </div> | |
| {% endif %} | |
| {% if first_interaction.ip_address %} | |
| <div> <strong>IP</strong> <br/>{{first_interaction.ip_address}} </div> | |
| {% endif %} |
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
| {% if case.customer.company_object.name == nil %} | |
| <div style="padding: 12px 0px; background: red; color: white; text-align: center; font-size: 1.25em; font-weight: 300;">Don't forget to add the company!</div> | |
| {% endif %} |
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
| #! /usr/bin/env ruby | |
| require 'oauth' | |
| require 'open-uri' | |
| require 'json' | |
| require 'time' | |
| require 'fileutils' | |
| require 'progress_bar' | |
| include FileUtils |
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
| <?xml version="1.0" encoding="ISO-8859-1" ?> | |
| <rss version="2.0"> | |
| <channel> | |
| <item> | |
| <title> | |
| First article's title here | |
| </title> | |
| <description> | |
| First article body here |
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
| 1. Create a each topic (i.e., Billing, LevelUp, Basics, General, & Social Connectivity) under Admin > Content > Topics. | |
| 2. Navigate to Admin > Content > Articles. | |
| 3. Complete the step for each of the URLs below: | |
| - Click "Import RSS" | |
| - Select the topic you are importing articles to. | |
| - Copy the correlative URL from the Topic XML files below and paste it into the "RSS Feed" field" | |
| - Set the "Show in Support Center" preference to "Yes" | |
| - Click "Import" |
OlderNewer