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 | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"html" | |
"html/template" | |
"io/ioutil" | |
"log" |
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
# https://github.com/nodesource/distributions/issues/33 | |
NODE_VERSION 8.11.2 | |
RUN set -eax \ | |
; curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \ | |
; . /etc/lsb-release \ | |
; export NODE_MAJOR_VERSION="$(echo ${NODE_VERSION} | cut -d . -f1)" \ | |
; echo "deb https://deb.nodesource.com/node_$NODE_MAJOR_VERSION.x $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/nodesource.list \ | |
; apt-get update \ | |
; apt-get install -y nodejs=$NODE_VERSION |
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
func isProcessUp(pid int) bool { | |
process, err := os.FindProcess(pid) | |
if err != nil { | |
return false | |
} else { | |
return process.Signal(syscall.Signal(0)) == nil | |
} | |
} | |
func pollAwsVaultProcessAndExitWhenGone() { |
OlderNewer