See Configuring NGINX to accept the PROXY Protocol - NGINX
upstream wsserver {
server 127.0.0.1:9000;
}
See Configuring NGINX to accept the PROXY Protocol - NGINX
upstream wsserver {
server 127.0.0.1:9000;
}
#!/bin/sh | |
redis-cli keys "*" | head -n $1 > keys.txt | |
cat keys.txt | xargs -n 1 -L 1 redis-cli ttl > ttl.txt | |
paste -d " " keys.txt ttl.txt | grep .*-1$ | cut -d " " -f 1 | redis-cli del |
require 'rails_helper' | |
RSpec.describe TodosController, :type => :controller do | |
describe "GET #index" do | |
#describe "POST #create" do | |
#describe "GET #show" do | |
#describe "PATCH #update" do (or PUT #update) | |
#describe "DELETE #destroy" do | |
#describe "GET #new" do |
HTTP status code symbols for Rails | |
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
Status Code Symbol | |
1xx Informational | |
100 :continue | |
101 :switching_protocols | |
102 :processing |
Ruby는 즐거운 언어입니다. Ruby를 사용하다보면 매뉴얼에도 나와있지 않은 '작은 발견'을 만나게 됩니다. 이러한 '발견'은 프로그램의 질이나
#!perl | |
use strict; | |
use warnings; | |
use Parallel::ForkManager; | |
use POSIX; | |
use String::Random; | |
my $c_start = 1; | |
my $c_end = 64; |
# | |
# MIGRATE MySQL4 DATABASES TO MySQL5 - Steps for dumping and converting | |
# | |
# Uses mysqldump and patches output to be compatible with MySQL 5.5+ (? - no sure | |
# at which specific release of MySQL 5 the old style syntax support ended). | |
# | |
# Conversion is most likely incomplete. It does some essential converting where | |
# I regularly experienced problems during migration. | |
# | |
# Use on own risk, always try with test databases first. No warranty at all! |