- clone aws/aws-cli and homebrew-core into ~/work
- Run
check_awscli_tracking.sh
- Run
awscli_release_stats.rb
class Array | |
def expand(interval=1) | |
raise "Can only expand two-element arrays" if self.size != 2 | |
raise "Can only expand numeric arrays" unless self.first.kind_of?(Numeric) && self.last.kind_of?(Numeric) | |
result = [self.first] | |
while result.last < self.last do | |
next_value = result.last + interval |
require 'ostruct' | |
class MappedOpenStruct < OpenStruct | |
MAP = {} | |
def initialize(hash=nil) | |
super | |
add_mapped_methods | |
end | |
#!/bin/bash | |
# copy is a misnomer; it's actually LIST + INSTALL | |
# --from 2.2.1 [--to other-version-else-whatever-is-currently-set] | |
# | |
# TODO: install only most-recent version that's installed in FROM | |
# TODO: use gem names only from FROM, install latest available version (might be more recent than in FROM) | |
# TODO: pass arguments to gem command (e.g. --no-document) | |
CURRENT_VERSION=`rbenv version | cut -d' ' -f1` | |
GEM_LIST_ARGS="--local" |
# RSpec matcher to spec delegations. | |
# | |
# Usage: | |
# | |
# describe Post do | |
# it { should delegate(:name).to(:author).with_prefix } # post.author_name | |
# it { should delegate(:day).to(:created_at) } | |
# it { should delegate(:month, :year).to(:created_at) } | |
# end | |
# |
# Load DSL and set up stages | |
require "capistrano/setup" | |
# Include default deployment tasks | |
require "capistrano/deploy" | |
# Load the SCM plugin appropriate to your project: | |
# | |
# require "capistrano/scm/hg" | |
# install_plugin Capistrano::SCM::Hg |
gem install nokogiri -- --use-system-libraries \
--with-xml2-dir=/usr \
--with-xslt-dir=/usr \
--with-exslt-dir=/usr
I can't say I understand why I had to specify those dirs as that's the system default, but it works and I'm in a hurry. I'll update this as I learn more someday.
Meanwhile, you may be interested in the Nokogiri issue that this stems from
Huge thanks to @bounga for his post that didn't assume you've got a working /etc/nginx.conf
. Everyone else's posts just assume that you've got the same /etc/nginx.conf
as they do, and when you don't, you're screwed.
I like the sites-available/sites-enabled
paradigm so I did this:
mkdir /etc/nginx/sites-available /etc/nginx/sites-enabled
ln -s /etc/nginx/sites-enabled /etc/nginx/vhosts.d
I highly recommend using capistrano-puma. Super basic steps condensed from the capistrano-puma readme:
- Add this to your Gemfile in the development group:
Last updated 2017-08-26
These are barebones instructions for how to set up a Rocket.Chat server on OpenSUSE Leap 42.2 using nginx as a reverse proxy. These will help you set up a system you can experiment with. THEY ARE NOT INTENDED FOR SETUP OF A PRODUCTION SYSTEM! They are oriented on using a VM from AWS, but should work for any Leap 42.2 system.
You will install and configure: