Skip to content

Instantly share code, notes, and snippets.

View outsideris's full-sized avatar

Outsider outsideris

View GitHub Profile
BEGIN MESSAGE.
hdaJFDMZGINhabU r7vh8VFxFZdJ67t A8ivHZQXobzKRk1 GByDwrwGWdiu7Xa
oT2woNqeHEun5pt Ji78JWK8fqBTCKq 6Xr2MZHgg6NCxxB KWsVEdwnzLdZKId
RJ38TcUXaSmpqfO VVHk36nlkxPdxg2 U1af9NGbEPn31Td hPZ6uxcNZqnZQ96
w8I0qiYDXItwTrS UnF4hrM2rB4Suel G7ajM7tiSkCT.
END MESSAGE.
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);
});
@outsideris
outsideris / post.md
Created January 9, 2019 09:45
terraform 글 무단 전제 관련

오늘 어떤 분이(성함을 밝혀도 되는지 몰라서...) 오라클 클라우드 기술 블로그의 글제가 쓴 Terraform 글을 그대로 가져다가 문체만 바꿔서 올렸다는 것을 알게 되었습니다.

당연히 출처표기는 없었고 글의 내용을 확인 결과 제 글을 바탕으로 국문으로 작성한 용어를 영문으로 교체하거나 맞춤법을 교정하거나 반말로 작성한 문장을 존댓말로 바꾸고 일부 내용을 오라클 클라우드에 올렸다는 것을 확인했습니다.

제 글의 내용이 전체 글의 대부분이기 때문에 의도적으로 제 글을 가져가셔 편집 후 직접 작성한 것처럼 보이도록 의도했다고 생각하고 있고 제 글이 CC BY-NC-SA 2.0 라이센스 하에 공개하고 있으므로 이는 라이센스 위반이라고 생각하고 있습니다.

해당 블로그는 오라클 클라우드에 대한 블로그이고 글을 쓰신 "강지선"님도 "한국 오라클의 클라우드 세일즈 컨설팅 팀 소속"이라고 써 있는 것으로 보아 해당 블로그는 한국 오라클에서 운영하는 블로그로 보입니다.

혹시 글이 변경되거나 지워질 지 몰라서 스크린샷을 첨부합니다.

@outsideris
outsideris / node.test.js
Created August 14, 2018 09:01
moca test
const { test } = require('./util');
describe('node', () => {
it('should something', async () => {
const expected = {
address: 'GB73FN4YLGQQ3ISDCLZGJDPZKUYF3KZGAPBIWDDEMTJXQDNP7WZ5J3RL',
alias: 'GB73.7WZ5',
state: 'NONE',
validators: {
GACYJM6DQVNLYI53IUIOC7MEKFUT2DFMFVWL4R6IPDNRG3ZKICIAFUHO: {
@outsideris
outsideris / cla-test.txt
Created June 3, 2018 17:50
cla test file
john@example.com
jane@example.com
user@example.com
john@example.com
jane@example.com
user@example.com
me@example.com
@outsideris
outsideris / index.php
Created August 27, 2017 16:59
textcube meta tags 플러그인
<?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];
category title author ref refurl translator
articles
Rod Vagg
Security updates for all active release lines, September 2016

The Node.js project has scheduled updates for all of its active release lines to patch a number of security flaws. These flaws include some of those announced by the OpenSSL project as well as a number of Node.js-specific issues. We do not consider any of these updates to be critical. However, it is strongly recommended that all production instances of Node.js be upgraded when the releases are made available.

'use strict';
function test1() {
console.log('-- test1 --');
console.log(x);
try {
console.log(y);
} catch(e) { console.log(e); }
var x = 0;