$ 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 [email protected]
# /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))
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
[ec2-user@hostname tmp]$ sudo rm -rf node_modules/ | |
[ec2-user@hostname tmp]$ npm install sleep | |
/ | |
> [email protected] 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) |
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/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 | |
# |
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
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.", |
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
package main | |
// #include <stdlib.h> | |
// #include <unistd.h> | |
// #include <sys/types.h> | |
// #include <pwd.h> | |
// #include <grp.h> | |
import "C" | |
import "fmt" |
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
node_modules/ | |
typings/ | |
dist/ |
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
function pgConfig(url) { | |
const config = {}; | |
let { auth, hostname, port, pathname, query } = parse(url); | |
let { poolSize, poolIdleTimeout } = (query || {}); | |
if (auth) { | |
let [user, password] = auth.split(':'); |
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
"Functions for generating key-sortable unique IDs (KSUIDs)." | |
import os | |
import time | |
import typing | |
EPOCH = 1400000000 # segment.io epoch (March 5th, 2014) | |
DIGITS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' | |
def timestamp_bytes() -> bytes: |
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "[MAY]", and "[OPTIONAL][MAY]" in this document are to be interpreted as described in RFC 2119.