How can a nodejs process running inside a docker container, get that container's id?
the hostname seems to be the short container id in Docker v1.12
It works and this idea was found in this SO post.
-- Helpers {{{1 | |
local function fail_on_missing_tbl(t, missing_name) | |
missing_name = missing_name or 'table entry' | |
return setmetatable(t, {__index = function(t, k) | |
error(('No %s with key "%s" (in %s).'):format(missing_name, k, t)) | |
end | |
}) | |
end | |
fail_on_missing_tbl(_G, 'global'); |
How can a nodejs process running inside a docker container, get that container's id?
the hostname seems to be the short container id in Docker v1.12
It works and this idea was found in this SO post.
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).
///////AutoMayaBatch_CharaDir_v003.bat で動かすためにlayerEditor.melから抜粋 | |
// Copyright (C) 1997-2014 Autodesk, Inc., and/or its licensors. | |
// All rights reserved. | |
// | |
// The coded instructions, statements, computer programs, and/or related | |
// material (collectively the "Data") in these files contain unpublished | |
// information proprietary to Autodesk, Inc. ("Autodesk") and/or its licensors, | |
// which is protected by U.S. and Canadian federal copyright law and by | |
// international treaties. | |
// |
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP | |
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K | |
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP | |
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S | |
SFZHH-2Y246-Z483L-EU92B-LNYUA | |
GSZVS-5W4WA-T9F2E-L3XUX-68473 | |
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS | |
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4 | |
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU | |
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS |
#!/usr/bin/env bash | |
# checck if pidof exists | |
PIDOF="$(which pidof)" | |
# and if not - install it | |
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof | |
# find app in default paths | |
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS | |
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS |
<%* | |
/* | |
# Hypothes.idian a templater script for retrieving annotations from Hypothes.is | |
Dev: RoamHacker https://twitter.com/roamhacker | |
# Prerequisites: | |
+ Templater plugin by https://github.com/SilentVoid13/Templater | |
+ Free Hypothes.is developer token from: https://hypothes.is/account/developer | |
+ This script will prompt you for his token and save it to a file called "hypothesis config.md" | |
+ This file store your configuration and can be located any where in your vault. |
https://rfc3161.ai.moda | |
https://rfc3161.ai.moda/adobe | |
https://rfc3161.ai.moda/microsoft | |
https://rfc3161.ai.moda/apple | |
https://rfc3161.ai.moda/any | |
http://rfc3161.ai.moda | |
http://timestamp.digicert.com | |
http://timestamp.globalsign.com/tsa/r6advanced1 | |
http://rfc3161timestamp.globalsign.com/advanced | |
http://timestamp.sectigo.com |