Login to Redis
$ redis-cli
For MacOS Catalina, visit Install mysql2 on MacOS Catalina
Installing mysql2
gem errors on MacOS Mojave.
Make sure openssl
is installed on Mac via Homebrew.
# How to sign your custom RPM package with GPG key | |
# Step: 1 | |
# Generate gpg key pair (public key and private key) | |
# | |
# You will be prompted with a series of questions about encryption. | |
# Simply select the default values presented. You will also be asked | |
# to create a Real Name, Email Address and Comment (comment optional). | |
# | |
# If you get the following response: |
brew tap homebrew/versions | |
brew install v8-315 | |
gem install libv8 -v '3.16.14.13' -- --with-system-v8 | |
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315 | |
bundle install |
Running handlers:
[2018-10-01T11:07:45-05:00] ERROR: Running exception handlers
Running handlers complete
[2018-10-01T11:07:45-05:00] ERROR: Exception handlers complete
Chef Client failed. 33 resources updated in 01 minutes 06 seconds
[2018-10-01T11:07:45-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2018-10-01T11:07:45-05:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
# Clone repo | |
git clone --mirror git@github.com/fernandoaleman/app.git app/.git | |
# Change into app directory | |
cd app | |
# Update git config | |
git config --unset core.bare | |
# Checkout master branch |
# Start the old vagrant | |
$ vagrant init centos-6.3 | |
$ vagrant up | |
# You should see a message like: | |
# [default] The guest additions on this VM do not match the install version of | |
# VirtualBox! This may cause things such as forwarded ports, shared | |
# folders, and more to not work properly. If any of those things fail on | |
# this machine, please update the guest additions and repackage the | |
# box. |
#!/bin/sh | |
# you might want to add some user authentication here | |
mysql -e "show variables; show status" | awk ' | |
{ | |
VAR[$1]=$2 | |
} | |
END { | |
MAX_CONN = VAR["max_connections"] | |
MAX_USED_CONN = VAR["Max_used_connections"] | |
BASE_MEM=VAR["key_buffer_size"] + VAR["query_cache_size"] + VAR["innodb_buffer_pool_size"] + VAR["innodb_additional_mem_pool_size"] + VAR["innodb_log_buffer_size"] |