I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
<?php | |
/** | |
* PHP 파일 다운로드 함수. | |
* Version 1.3 | |
* | |
* Copyright (c) 2014 성기진 Kijin Sung | |
* | |
* License: MIT License (a.k.a. X11 License) | |
* http://www.olis.or.kr/ossw/license/license/detail.do?lid=1006 |
Moved to git repository: https://github.com/denji/nginx-tuning
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
-
Single-line comments are started with
//
. Multi-line comments are started with/*
and ended with*/
. -
C# uses braces (
{
and}
) instead of indentation to organize code into blocks. If a block is a single line, the braces can be omitted. For example,
- 원제 : 55 Trivia Notations you should know in Ruby
- 원문 : kyoendo
- 출처 : http://melborne.github.io/2013/03/04/ruby-trivias-you-should-know-4/
- 번역 : nacyot [email protected]
- 라이센스 : cc-by-nc
Ruby는 즐거운 언어입니다. Ruby를 사용하다보면 매뉴얼에도 나와있지 않은 '작은 발견'을 만나게 됩니다. 이러한 '발견'은 프로그램의 질이나
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
var fs = require('fs'); | |
var Buffer = require('buffer').Buffer; | |
// Mp3Id3Reader | |
// Supports Id3v2.3.0 fully | |
// TODO: Add id3v2.2.0 | |
// TODO: Add id3v2.4.0 | |
var id3Reader = function(){ |
class MyController < UIViewController | |
def viewDidLoad | |
self.view.backgroundColor = UIColor.whiteColor | |
alert.show | |
end | |
# ============== | |
# = Properties = | |
# ============== |