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
This file contains hidden or 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
| #!/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
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| class CoolNum | |
| attr :x | |
| def initialize(x) | |
| @x = x | |
| end | |
| def succ |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| Creating instances | |
| Created 0 new instances | |
| Creating quests | |
| Created 9 new quests | |
| Creating achievement types | |
| Creating achievement categories | |
| Creating achievements | |
| Created 14 new achievements | |
| Creating titles | |
| Found new data for Saint of the Firmament… (488): |
This file contains hidden or 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
| cd /opt/nginx/logs | |
| mv access_old.log.gz access_older.log.gz | |
| mv access.log access_old.log | |
| kill -USR1 `cat /var/run/nginx.pid` | |
| sleep 1 | |
| gzip access_old.log |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require 'csv' | |
| require 'nokogiri' | |
| doc = Nokogiri::HTML(open('hunts.html')) | |
| csv = CSV.open('hunts.csv', 'wb') do |csv| | |
| doc.css('.huntOverviewArea').each do |area| | |
| csv << [area.css('.huntOverviewTitle').text] | |
| area.css('.huntOverviewCell').to_a.reverse.each do |hunt| |