\A[\p{L}]+\z
\A[\p{L} ]+\z
| [mysqld] | |
| innodb_buffer_pool_size=1G # Default: 128M. Ideally, this is 80% of the available RAM | |
| max_connections=301 # Default: 151. Increase for more concurrent connections if you have the resources. | |
| query_cache_size=64M # Default: 0 | |
| # Check configuration of custom variables above | |
| show variables like 'innodb_buffer%'; | |
| show variables like '%connections%'; | |
| show variables like '%query_cache%'; |
| a = ('A'..'Z').to_a + (1..9).to_a | |
| 5.times.map { 4.times.map { a.sample }.join }.join(' - ') | |
| # "4H8Y - 3OQD - 9DO8 - 6WTW - KROI" |
| # NGINX from source | |
| /opt/nginx/logs/*.log { | |
| su nginx nginx | |
| weekly | |
| dateext | |
| dateformat .%Y-%m-%d | |
| rotate 3 | |
| compress | |
| delaycompress | |
| create 0640 nginx nginx |
| $wsh = New-Object -ComObject WScript.Shell | |
| while (1) { | |
| $wsh.SendKeys('+{F15}') | |
| Start-Sleep -seconds 300 | |
| } |
| 000000: actions | |
| 010000: status effects | |
| 020000: items | |
| 058000: fashions (small), bardings | |
| 059000: mount & minions (small) | |
| 060000: weather, map markers, market board, player markers, various icons | |
| 061000: event actions, markers, gods, pvp, custom deliveries, playstyles, various icons | |
| 062000: jobs, beast tribes, map stuff | |
| 063000: hunts, maps | |
| 064000: emotes, mount actions, roleplay actions |
| 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