Demonstrates bug with declaration output of mapped types in TypeScript 2.3.4.
Usage:
npm install
npm run build
- Observe invalid syntax in
dist/index.d.ts
, which needs but lacks quotes around the keys in the declaration ofscopes
:
function pgConfig(url) { | |
const config = {}; | |
let { auth, hostname, port, pathname, query } = parse(url); | |
let { poolSize, poolIdleTimeout } = (query || {}); | |
if (auth) { | |
let [user, password] = auth.split(':'); |
node_modules/ | |
typings/ | |
dist/ |
package main | |
// #include <stdlib.h> | |
// #include <unistd.h> | |
// #include <sys/types.h> | |
// #include <pwd.h> | |
// #include <grp.h> | |
import "C" | |
import "fmt" |
$ export DOCKER_HOST=tcp://fnord.local:2376 DOCKER_TLS_VERIFY=1
$ docker ps
An error occurred trying to connect: Get https://fnord.local:2376/v1.21/containers/json: x509: certificate is valid for fnord, 192.168.23.23 , localhost, not fnord.local
$ ssh admin@fnord.local
# /sbin/setcfg global realm local -f /etc/config/smb.conf
# /etc/init.d/network.sh restart
# hostname -f
fnord.local
# cd $(dirname $(readlink /etc/init.d/container-station.sh))
package = "luasnmp" | |
version = "1.0.6-2" | |
source = { | |
url = "https://github.com/hleuwer/luasnmp/archive/1.0.6-2.zip", | |
dir = "luasnmp-1.0.6-2" | |
} | |
description = { | |
summary = "LuaSNMP is a binding to the netsnmp library.", |
#!/bin/sh | |
# Build meld3 and supervisor wheels on CentOS | |
# Ship wheels/*.whl | |
# | |
# Installation doc then becomes: | |
# | |
# yum install -y epel-release | |
# yum install -y --enablerepo=epel python-pip | |
# pip install meld*.whl supervisor*.whl | |
# |
[ec2-user@hostname tmp]$ sudo rm -rf node_modules/ | |
[ec2-user@hostname tmp]$ npm install sleep | |
/ | |
> sleep@3.0.0 install /tmp/node_modules/sleep | |
> node-gyp rebuild | |
gyp WARN install got an error, rolling back install | |
gyp ERR! configure error | |
gyp ERR! stack Error: incorrect header check | |
gyp ERR! stack at Zlib._binding.onerror (zlib.js:295:17) |
A CentOS image straight off the marketplace shelf
boots with the instance key loaded into authorized_keys
for root
. We prefer ec2-user
. This new
/etc/rc.d/rc.local
helps, along with the pre-image procedure in ready.sh
.
wait4eth1() { | |
CNT=0 | |
until ip a show eth1 | grep -q UP | |
do | |
[ $((CNT++)) -gt 60 ] && break || sleep 1 | |
done | |
sleep 1 | |
} | |
wait4eth1 |