サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
買ってよかったもの
joshrendek.com
This is a short example showing how to use an interface to ease testing, and how to use an interface with running shell commands / other programs and providing mock output. 1package main 2 3import ( 4 "fmt" 5 "os/exec" 6) 7 8// first argument is the command, like cat or echo, 9// the second is the list of args to pass to it 10type Runner interface { 11 Run(string, ...string) ([]byte, error) 12} 13
Table of Contents Initial Setup Setting up iptables and Fail2Ban Fail2Ban iptables rules Make shared memory read-only Setting up Bastille Linux Configuring Bastille sysctl hardening Setting up a chroot environment Securing nginx inside the chroot Extras Initial Setup Let’s login to our new machine and take some initial steps to secure our system. For this article I’m going to assume your username
Before we dive into the benchmarks of Resque vs Sidekiq it will first help to have a better understanding of how forking and threading works in Ruby. Threading vs Forking Forking When you fork a process you are creating an entire copy of that process: the address space and all open file descriptors. You get a separate copy of the address space of the parent process, isolating any work done to that
このページを最初にブックマークしてみませんか?
『joshrendek.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く