This file contains hidden or 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
#!/bin/bash | |
COLOR_RESET="\033[30m" | |
COLOR_GREEN="\033[32m" | |
COLOR_RED="\033[31m" | |
COLOR_CYAN="\033[36m" | |
COLOR_WHITE="\033[37m" | |
sniffTarget=$1 | |
referer="--referer $2" | |
data="" |
This file contains hidden or 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
/** | |
* Module dependencies. | |
*/ | |
const | |
{ expect } = require('chai'), | |
Provider = require('../../src/lib/provider'); | |
describe('Provider module', () => { |
This file contains hidden or 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
'use strict'; | |
const | |
kue = require('kue'), | |
moment = require('moment'), | |
queue = kue.createQueue(); | |
/* | |
var job = queue.create('sitemap', { | |
title: `Sitemap build #${moment(new Date()).format('YYYYMMDDHHmmss')}` |
This file contains hidden or 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
// This is a workaround for XHR deny issue with KakaoTalk Webview. | |
// It is really hacky way. Not recommended. | |
if (location.protocol !== 'https:') { | |
location.href = 'https://your.website.com'; // Specify https scheme! | |
} |
This file contains hidden or 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
/** | |
* Bla bla bla... | |
* some comments.. | |
*/ | |
require('./stack'); | |
console.log('now: ', __lineno); | |
console.log('now: ', __lineno); |
This file contains hidden or 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
resource "digitalocean_droplet" "web" { | |
name = "tf-web" | |
size = "512mb" | |
image = "centos-5-8-x32" | |
region = "sfo1" | |
} | |
resource "dnsimple_record" "hello" { | |
domain = "example.com" | |
name = "test" |
This file contains hidden or 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
provider "aws" { | |
access_key = "ACCESS_KEY_HERE" | |
secret_key = "SECRET_KEY_HERE" | |
region = "ap-northeast-2" | |
} | |
resource "aws_instance" "example" { | |
ami = "ami-f293459c" | |
instance_type = "t2.micro" | |
} |
This file contains hidden or 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
// below line equal as | |
// const Promise = require('bluebird'); | |
// const getConnection = Promise.promisify(pool.getConnection.bind(pool)); | |
const getConnection = () => { | |
return new Promise((resolve, reject) => { | |
pool.getConnection((e, connection) => { | |
if (e) { return reject(e); } | |
resolve(connection); | |
}); |
This file contains hidden or 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
resource "aws_instance" "example" { | |
ami = "ami-983ce8f6" | |
instance_type = "t2.micro" | |
} |
This file contains hidden or 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
'use strict'; | |
const | |
vm = require('vm'), | |
sandbox = { | |
current: -1 | |
}; | |
console.time('vm-normal'); |
OlderNewer