Hi
Here are instructions, how to be able run edge Refinery CMS with Rails 6.1.4 and Ruby 2.7.3 / Ruby 3.0.2
If you use rvmrc, like me, create gemset for Ruby 2.7.3
$ vim .rvmrc
rvm use ruby-2.7.3@refinerycms-sample4 --create
Refinery CMS: | |
Caching images generated by Dragonfly with Nginx cache_proxy instead of Rack:Cache | |
Before: | |
Static image served by Nginx: 4409.40 req/sec (mean) | |
Dragonfly generated images from Rack:Cache: 286.66 req/sec (mean) | |
After: | |
Dragonfly generated images from Nginx proxy_cache: 4099 req/sec (mean) |
// Paste in http://fiddle.tinymce.com/baaaab | |
// This settings strip all span and font tag, but preserving color and text-decoration | |
<script type="text/javascript"> | |
tinyMCE.init({ | |
// General options | |
mode : "textareas", | |
theme : "advanced", | |
plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager", | |
Use this fork https://github.com/kusmierz/jquery-tokeninput/ | |
See this discussion about idea http://railscasts.com/episodes/258-token-fields?view=comments#comment_152978 | |
#model (idea 100% stolen from ryanb) | |
def author_tokens=(ids) | |
ids.gsub!(/CREATE_(.+?)_END/) do | |
Author.create!(:name => $1).id | |
end | |
self.author_ids = ids.split(",") |
gem 'plyr-rails', '3.5.10', github: 'Matho/plyr-rails', ref: '18cb2108b' | |
gem 'curb' | |
gem 'm3u8' |
6th November 2022
I have decided to stop using microSD cards in my Raspberry PI mini cluster. I'm afraid, that the card will fail in few months, so I have decided to switch to SSD disk. The prices are almost similar to prices of microSD cards (price of usb to ssd adapter not included).
In my cluster, I'm using Ubuntu 20.04. Ubuntu 20.04 was released before the EEPROM update to RPi4 which allowed USB booting. In this tutorial we will show how to prepare USB booting on Ubuntu 20.04.
I have bought:
I'm using Shinobi via Docker. I have Reolink Duo 2 cameras which are configured to store videos via ftp in Shinobi FTP.
I have following configuration: /data/shinobi/config$ cat conf.json
{
"port": 8080,
"orphanedVideoCheckMax": 1000,
"insertOrphans": true,