Skip to content

Instantly share code, notes, and snippets.

beezly / sr-git-backup
Created Dec 16, 2013
Backup Stingray Traffic Manager to a Git repository
View sr-git-backup
# Replace the following variables for your environment
# zxtm - hostname of your Stingray Traffic Manager
# zxtmuser - username used to log in to Stingray SSH interface
# git_path - path to the git repo you want to store the config backups in
# I recommend that zxtmuser is able to log in to the Traffic Manager
# without using a password, using SSH keys.
View inline-css-font.rb
#!/usr/bin/env ruby
require 'base64'
require 'open-uri'
# file or url
def get_css(src)
if src.start_with? 'http'
src = src.gsub('|', '%7C')
STDERR.puts "# GET #{src}"
# simulate modern browser to get woff
textarcana /
Last active Jun 3, 2020
How to install Jenkins on CentOS 6.3
sudo wget -O /etc/yum.repos.d/jenkins.repo
sudo rpm --import
sudo yum -y install jenkins
sudo yum -y install java-1.7.0-openjdk.x86_64
# Login as the jenkins user and specify shell explicity,
# since the default shell is /bin/false for most
# jenkins installations.
sudo su jenkins -s /bin/bash