Skip to content

Instantly share code, notes, and snippets.

@clshortfuse
clshortfuse / tediouspool.js
Last active August 2, 2022 15:19
Tedious Connection Pool
import Connection from 'tedious/lib/connection.js';
/** @typedef {import('tedious').ConnectionConfig} ConnectionConfig */
/** @typedef {import('tedious').ConnectionError} ConnectionError */
/** @typedef {import('tedious').RequestError} RequestError */
const MIN_CONNECTION_POOL = 2;
const MAX_CONNECTION_POOL = 10;
const MAX_CONNECTION_IDLE = 5000;
const MAX_CONNECTION_RETRY_TIME = 30000;
@IzumiSy
IzumiSy / manifest.json
Last active August 16, 2024 05:25
Chrome.storage.sync example
{
"name": "SyncExtension",
"version": "0.1",
"manifest_version": 2,
"description": "Storage Sync Extension",
"permissions": [ "storage" ],
"browser_action": {
@julionc
julionc / 00.howto_install_phantomjs.md
Last active March 24, 2025 17:27
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@mshafrir
mshafrir / states_hash.json
Created May 9, 2012 17:05
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",