\A[\p{L}]+\z
\A[\p{L} ]+\z
Armoire.where('name_en like ?', "Summer's Flame%").each { |armoire| armoire.sources.create!(type: SourceType.find_by(name: 'Premium'), text: 'Mog Station', premium: true) } |
reactions = message.reactions.values.map(&:to_s) | |
reactions.flat_map { |reaction| message.reacted_with(reaction, limit: nil) }.map(&:distinct).uniq |
sudo yum group install "Development Tools"
sudo yum install openssl-devel libcurl-devel
sudo mkdir -p /opt/rails/mycoolapp/shared
sudo chcon -R -h -t httpd_sys_content_t /opt/rails/
sudo useradd nginx
sudo chown -R nginx:nginx /opt/rails
sudo su - nginx
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
mkdir /opt/automysqlbackup
cp /opt/automysqlbackup
wget https://sourceforge.net/projects/automysqlbackup/files/latest/download -O automysqlbackup.tar.gz
tar -xvf automysqlbackup.tar.gz
vim myserver.conf # Configure as needed
#!/usr/bin/env sh | |
# | |
# Purpose: | |
# Archive a logfile with a timestamped filename and gzip it | |
# | |
# Configuration: | |
# 1. Set the input and output paths below | |
# 2. Schedule a cron to execute this script | |
input=/my/log/alerts.log |
app/controllers/discord_controller.rb
class DiscordController < ApplicationController
skip_before_action :verify_authenticity_token
def interactions
# Request signature verification
begin
verify_request!
rescue Ed25519::VerifyError
Creating instances | |
Found new data for Akh Afah Amphitheatre (Hard) (20024): | |
name_en: Akh Afah Amphitheatre (Hard) → The Akh Afah Amphitheatre (Hard) | |
Found new data for Akh Afah Amphitheatre (Extreme) (20025): | |
name_en: Akh Afah Amphitheatre (Extreme) → The Akh Afah Amphitheatre (Extreme) | |
Created 13 new instances | |
Creating quests | |
Created 33 new quests | |
Creating achievement types | |
Creating achievement categories |
#!/usr/bin/env ruby | |
class CoolNum | |
attr :x | |
def initialize(x) | |
@x = x | |
end | |
def succ |
Creating instances | |
Created 0 new instances | |
Creating quests | |
Created 17 new quests | |
Creating achievement types | |
Creating achievement categories | |
Creating achievements | |
Created 53 new achievements | |
Creating titles | |
Created 8 new titles |