Connect to Redis CLI
$ redis-cli
Enable the current redis as a slave for the master node
When you read about how to create and consume a pre-signed url on this guide, everything is really easy. You get your Postman and it works like a charm in the first run.
Then you open your browser, try your usual $.ajax() and send your PUT operation, and you hit the cold iced wall of AWS error message, a simple <Code>SignatureDoesNotMatch</Code> that will steal hours from your productivity.
So here I come to save you and give you a free working example of how to upload a file directly to AWS S3 from your browser. You are wellcome :).
Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.
However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.
| source 'https://rubygems.org' | |
| gem 'json' | |
| group :test do | |
| gem 'minitest' | |
| gem 'test-unit' | |
| end |
| #!/bin/sh | |
| # | |
| # Downloads and installs the startssl CA certs into the global Java keystore | |
| # on Alpine Linux. | |
| # | |
| # Check if JAVA_HOME is set | |
| [ "$JAVA_HOME" = "" ] && echo "ERROR: JAVA_HOME must be set" && exit 1 | |
| # Check if cacerts file is present |
| import java.util.Arrays; | |
| /** | |
| * Created by le-doude on 14/06/19. | |
| * <p/> | |
| * Did you know it is possible to find the longest palindrom in a char sequence in O(N) time. | |
| * Here is the solution: Manacher's algorithm. | |
| * http://en.wikipedia.org/wiki/Longest_palindromic_substring | |
| */ | |
| public class ManacherAlgorithm { |
| #!/usr/bin/env python | |
| from pymarkov import markov | |
| from random import choice | |
| import doctest | |
| import argparse | |
| class Generate: | |
| """ A song generator. Generate takes input (musician, album) and returns | |
| a version of that musician's songs. |
| # Signal catching | |
| def shut_down | |
| puts "\nShutting down gracefully..." | |
| sleep 1 | |
| end | |
| puts "I have PID #{Process.pid}" | |
| # Trap ^C | |
| Signal.trap("INT") { |