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.
#!/bin/bash | |
PID_FILE=~/.restic_backup.pid | |
TIMESTAMP_FILE=~/.restic_backup_timestamp | |
if [ -f "$PID_FILE" ]; then | |
if ps -p $(cat $PID_FILE) > /dev/null; then | |
echo $(date +"%Y-%m-%d %T") "File $PID_FILE exist. Probably backup is already in progress." | |
exit 1 | |
else |
sudo cp -Rp ~/backup/Library/Containers/com.microsoft.rdc.macos/* ~/Library/Containers/com.microsoft.rdc.macos |
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.
Current version: 1.0.19 1.0.15 (as of 2018-12-10)
HTTP status code symbols for Rails | |
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
Status Code Symbol | |
1xx Informational | |
100 :continue | |
101 :switching_protocols | |
102 :processing |
require "cjson" | |
-- Generic decoder for JSON logs. This will extract all JSON | |
-- keys and add them to the `Fields` variable of the created | |
-- Heka message. | |
-- | |
-- Example use: | |
-- | |
-- [NginxJsonLogDecoder] | |
-- type = "SandboxDecoder" |
ShopifyAPI::Customer.find_all do |customer| | |
# do something with the customer | |
end | |
ShopifyAPI::Order.find_all(:status => :any) do |order| | |
# do something with the order | |
end | |
ShopifyAPI::Product.find_all(:limit => 250) do |order| | |
# do something with the product |