redis-cli -h <IP of MemoryStore Instance> --rdb dump.rdb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Important note: | |
# - traefik reboot was required to pick up the new / updated config | |
# - `kamal traefik reboot -d <destination>` | |
# | |
service: med1-core | |
traefik: | |
args: | |
entryPoints.web.address: ":80" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div | |
class="dialog-wrapper p-5 md:p-8 fixed w-full h-full left-0 top-0 z-90 flex items-start hidden flex overflow-y-auto backdrop-<%=@backdrop%>" | |
id="<%= @id %>" | |
data-controller="dialog" | |
data-dialog-target="dialogWrapper"> | |
<div class="dialog-backdrop absolute w-full h-full top-0 left-0 opacity-0"></div> | |
<div class="dialog relative z-20 m-auto w-full text-brand-primary bg-white rounded-lg shadow-xl opacity-0 translate-y-32 <%= @max_width %>"> | |
<%= content %> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ActiveRecord | |
class QueryLocator | |
def call(name, started, finished, unique_id, payload) | |
# filter caller locations to application backtrace (filter all gem calls) | |
# see http://ruby-doc.org/core-2.5.0/Kernel.html#method-i-caller_locations for more options | |
caller_names = caller_locations.select { |line| line.to_s =~ /#{Rails.root.to_s}/ } | |
# use the last caller in backtrace | |
caller_name = caller_names.first | |
Rails.logger.debug ["Notification:", name, started, finished, unique_id, caller_name, payload].join(" - ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package one.flak.flinkgeomesa; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonParser; | |
import java.io.IOException; | |
import java.nio.charset.Charset; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fizz = ["", "", "Fizz"].lazy.cycle | |
buzz = ["", "", "", "", "Buzz"].lazy.cycle | |
pattern = fizz.zip(buzz).map(&:join) | |
p pattern.take(15).to_a.join(", ") | |
numbers = (1..Float::INFINITY).lazy.map(&:to_s) | |
fizzbuzz = numbers.zip(pattern).map(&:max) |
- casino (http://casino.rbcas.com/) / https://github.com/rbCAS
- rack-cas (https://github.com/biola/rack-cas)
- devise
- devise_cas_authenticatable (https://github.com/nbudin/devise_cas_authenticatable)
- download upgrade from appstore
- prepare an USB stick with ~ 5GB space; format journaled with GUID partition table
- use the following command
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Stick --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction
NewerOlder