class Product < ActiveRecord::Base
acts_as_taggable_on :categories, :tag
....
| wget http://stedolan.github.io/jq/download/linux64/jq | |
| aws ec2 describe-instances --filters "Name=tag:Name,Values=$NAME" \ | |
| "Name=instance-state-name,Values=running" \ | |
| | jq -r \ | |
| ".Reservations[] | .Instances[] | .InstanceId" \ | |
| aws ec2 describe-volumes --filters \ | |
| "Name=status,Values=available" \ | |
| | jq -r ".Volumes[] | .VolumeId" \ |
| wget http://stedolan.github.io/jq/download/linux64/jq | |
| aws ec2 describe-instances --filters "Name=tag:Name,Values=$NAME" \ | |
| "Name=instance-state-name,Values=running" \ | |
| | jq -r \ | |
| ".Reservations[] | .Instances[] | .InstanceId" \ | |
| aws ec2 describe-volumes --filters \ | |
| "Name=status,Values=available" \ | |
| | jq -r ".Volumes[] | .VolumeId" \ |
| Install s3fs on Mac OS X | |
| 1 - Install Homebrew - http://brew.sh/ | |
| ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
| 2 - Use Homebrew to install s3fs + dependencies | |
| brew install s3fs | |
| 3 - Do some custom stuff. I only used the first step from here -> https://gist.github.com/fukayatsu/3910097 | |
| sudo /bin/cp -rfX /usr/local/Cellar/fuse4x-kext/0.9.2/Library/Extensions/fuse4x.kext /Library/Extensions |
| curl --header 'Authorization: token INSERTACCESSTOKENHERE' \ | |
| --header 'Accept: application/vnd.github.v3.raw' \ | |
| --remote-name \ | |
| --location https://api.github.com/repos/owner/repo/contents/path | |
| # Example... | |
| TOKEN="INSERTACCESSTOKENHERE" | |
| OWNER="BBC-News" | |
| REPO="responsive-news" |
| class Hash | |
| def deep_has_key?(key) | |
| self.has_key?(key) || any? {|k, v| v.deep_has_key?(key) if v.is_a? Hash} | |
| end | |
| alias :deep_include? :deep_has_key? | |
| alias :deep_key? :deep_has_key? | |
| alias :deep_member? :deep_has_key? | |
| def deep_has_value?(value) | |
| self.has_value?(value) || any? {|k,v| v.deep_has_value?(value) if v.is_a? Hash} |
| /********************************************************** | |
| ADOBE SYSTEMS INCORPORATED | |
| Copyright 2005-2010 Adobe Systems Incorporated | |
| All Rights Reserved | |
| NOTICE: Adobe permits you to use, modify, and | |
| distribute this file in accordance with the terms | |
| of the Adobe license agreement accompanying it. | |
| If you have received this file from a source |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ; | |
| ; Opinion Lexicon: Positive | |
| ; | |
| ; This file contains a list of POSITIVE opinion words (or sentiment words). | |
| ; | |
| ; This file and the papers can all be downloaded from | |
| ; http://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html | |
| ; | |
| ; If you use this list, please cite one of the following two papers: |
| import React, { useState, useEffect } from "react"; | |
| import "./styles.css"; | |
| const data = [ | |
| { id: 1, name: "Marco" }, | |
| { id: 2, name: "Lincoln" }, | |
| { id: 3, name: "Aya" } | |
| ]; | |
| export default function App() { |
When I first set up Listmonk it was to use with Amazon SES. At the time Amazon would give you free 62,000 emails/mo if you sent them from an EC2 instance. So EC2 was the best server to use. In mid 2023 Amazon ended that, so now you can use whatever server you like, which makes things much easier. It shouldn't be too hard to convert these directions to another server host of your choice.
I used Hetzner with another build, and once my free EC2 year ended the AWS t2.micro cost me $14/mo. Hetzner has better specs and costs me $5/mo, so I added an nginx vhost and moved listmonk to the same server. Here's a $20 credit for Hetzner.
There is also the possibility to use the 1-click installers for their featured hosts: https://listmonk.app/ - listed under "Hosting providers". I'm not familiar with any of them but there are lots of new guides