This file contains 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
var express = require('express'), | |
site1 = express.createServer(), | |
site2 = express.createServer(), | |
site_vhosts = [], | |
vhost; | |
site_vhosts.push(express.vhost('domain1.com', site1)); | |
site_vhosts.push(express.vhost('domain2.com', site2)); | |
vhost = express.createServer.apply(this, site_vhosts); |
This file contains 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
BEGIN MESSAGE. | |
hdaJFDMZGINhabU r7vh8VFxFZdJ67t A8ivHZQXobzKRk1 GByDwrwGWdiu7Xa | |
oT2woNqeHEun5pt Ji78JWK8fqBTCKq 6Xr2MZHgg6NCxxB KWsVEdwnzLdZKId | |
RJ38TcUXaSmpqfO VVHk36nlkxPdxg2 U1af9NGbEPn31Td hPZ6uxcNZqnZQ96 | |
w8I0qiYDXItwTrS UnF4hrM2rB4Suel G7ajM7tiSkCT. | |
END MESSAGE. |
This file contains 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
const request = require('supertest'); | |
const client = request('http://www.mocky.io'); | |
describe('http', () => { | |
it('asyn/await 1', async () => { | |
await client.post('/v2/5c9c94763600006c56d97175') | |
.send({}) | |
.expect(400); | |
}); |
오늘 어떤 분이(성함을 밝혀도 되는지 몰라서...) 오라클 클라우드 기술 블로그의 글이 제가 쓴 Terraform 글을 그대로 가져다가 문체만 바꿔서 올렸다는 것을 알게 되었습니다.
당연히 출처표기는 없었고 글의 내용을 확인 결과 제 글을 바탕으로 국문으로 작성한 용어를 영문으로 교체하거나 맞춤법을 교정하거나 반말로 작성한 문장을 존댓말로 바꾸고 일부 내용을 오라클 클라우드에 올렸다는 것을 확인했습니다.
제 글의 내용이 전체 글의 대부분이기 때문에 의도적으로 제 글을 가져가셔 편집 후 직접 작성한 것처럼 보이도록 의도했다고 생각하고 있고 제 글이 CC BY-NC-SA 2.0 라이센스 하에 공개하고 있으므로 이는 라이센스 위반이라고 생각하고 있습니다.
해당 블로그는 오라클 클라우드에 대한 블로그이고 글을 쓰신 "강지선"님도 "한국 오라클의 클라우드 세일즈 컨설팅 팀 소속"이라고 써 있는 것으로 보아 해당 블로그는 한국 오라클에서 운영하는 블로그로 보입니다.
혹시 글이 변경되거나 지워질 지 몰라서 스크린샷을 첨부합니다.
This file contains 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
const { test } = require('./util'); | |
describe('node', () => { | |
it('should something', async () => { | |
const expected = { | |
address: 'GB73FN4YLGQQ3ISDCLZGJDPZKUYF3KZGAPBIWDDEMTJXQDNP7WZ5J3RL', | |
alias: 'GB73.7WZ5', | |
state: 'NONE', | |
validators: { | |
GACYJM6DQVNLYI53IUIOC7MEKFUT2DFMFVWL4R6IPDNRG3ZKICIAFUHO: { |
This file contains 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
john@example.com | |
jane@example.com | |
user@example.com |
This file contains 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
john@example.com | |
jane@example.com | |
user@example.com | |
me@example.com |
This file contains 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
<?php | |
function print_meta_tags($target) { | |
global $pageTitle, $blog, $entry, $defaultURL, $blogid, $service, $serviceURL, $pathURL; | |
$beginning_length = 200; | |
$beginning = UTF8::lessenAsEm(removeAllTags(stripHTML($entry['content'])), $beginning_length); | |
if (preg_match_all('/\[##_(1R|1L|1C|2C|3C|iMazing|Gallery)\|[^|]*\.(gif|jpg|jpeg|png|bmp|GIF|JPG|JPEG|PNG|BMP)\|.*_##\]/si', $entry['content'], $matches)) { | |
$split = explode("|", $matches[0][0]); | |
$filename = $split[1]; |
This file contains 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
/** | |
* express 처음에 init 하시면 app.js 를 비롯하여 여러 디렉토리가 생기는데 | |
* logs 디렉토리에 아무것도 안남는다고 의문을 가지신 분에게 도움이 될거 같습니다. | |
* connect의 middleware logger 는 기본이 stdout 으로 출력하고 있었네요. | |
* http://senchalabs.github.com/connect/middleware-logger.html | |
* manual을 살펴보니 stream options 이 있었군요. | |
* 한번 생각나서 fs core module의 createWriteStream 을 사용하여 해봤더니 잘되네요. | |
* 다른 방법도 있으신분은 알려주세요 | |
*/ | |
var fs = require('fs'), |
NewerOlder