# frozen_string_literal: true
class Doc
include Mongoid::Document
include Mongoid::TimestampsSSH client problem, Perl:
vagrant@squeeze32:~$ perl -v
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.
Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.
| require 'sinatra' | |
| # Set the version of the API being run here | |
| # | |
| MAJOR_VERSION = 1 | |
| MINOR_VERSION = 0 | |
| VERSION_REGEX = %r{/api/v(\d)\.(\d)} | |
| helpers do | |
| def version_compatible?(nums) |
| require 'sinatra' | |
| # Set the version of the API being run here | |
| # | |
| MAJOR_VERSION = 1 | |
| MINOR_VERSION = 0 | |
| helpers do | |
| def version_compatible?(nums) | |
| return MAJOR_VERSION == nums[0].to_i && MINOR_VERSION >= nums[1].to_i |
#Mac OS X