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
| var child_process = require('child_process') | |
| function generateKeyPair(callback) { | |
| var keypair = { | |
| privKey: '', | |
| pubKey: '' | |
| } | |
| var priv_openssl = child_process.spawn('openssl', ['ecparam', '-name', 'secp521r1', '-genkey', '-noout']) |
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
| FROM ubuntu | |
| RUN apt-get update | |
| RUN apt-get install -y wget sudo supervisor | |
| RUN apt-get install -y python-software-properties | |
| RUN apt-get update | |
| RUN apt-get install -y openssh-server | |
| EXPOSE 4505 4506 |
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
| FROM ubuntu | |
| RUN apt-get update | |
| RUN apt-get install -y wget sudo supervisor | |
| RUN apt-get install -y python-software-properties | |
| RUN apt-get update | |
| RUN apt-get install -y openssh-server | |
| EXPOSE 4505 4506 |
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
| FROM ubuntu | |
| RUN \ | |
| apt-get update && \ | |
| apt-get install -y wget sudo supervisor python-software-properies && \ | |
| apt-get update && \ | |
| add-apt-repository ppa:saltstack/salt && \ | |
| apt-get update | |
| EXPOSE 4505 4506 |
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
| FROM ubuntu | |
| WORKDIR /opt | |
| EXPOSE 3000 | |
| VOLUME ["/data"] | |
| ENTRYPOINT ["node"] | |
| CMD ["server.js"] | |
| ADD package.json /opt/package.json | |
| RUN npm install --production |
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 | |
| PUSHOVERUSER=$1 | |
| PUSHOVERTOKEN=$2 | |
| PUSHOVERTITLE=$3 | |
| PUSHOVERMESSAGE=$4 | |
| curl -XPOST \ | |
| -F "token=${PUSHOVERTOKEN}" \ | |
| -F "user=${PUSHOVERUSER}" \ |
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/bash | |
| # Changes by Erik Kristensen | |
| # | |
| # Changelog (2018/01/31) | |
| # - Improved debugging, just set DEBUG=true in shell env | |
| # - Can set critical, warning and service name via ENV vars or command line opts | |
| # - Improved if statements for checking warning, critical conditions | |
| # - Errors unknown if `bc` command line tool is not installed | |
| # |
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/bash | |
| # NowSecure Auto CI Script | |
| # | |
| # Uploads a Binary to Auto, performs preflight checks, | |
| # then performs an assessment, and compares summary score | |
| # and exits non-zero if score is lower than score threshold | |
| # | |
| # --------------------------------------------------------------- | |
| # |
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
| #!/usr/bin/env python | |
| # -*- encoding: utf-8 -*- | |
| """ | |
| Small module for use with the wake on lan protocol. | |
| """ | |
| from __future__ import absolute_import | |
| from __future__ import unicode_literals | |
| import argparse |
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
| # Swap pod for any resource you need to iterate over. (ie daemonset, deployment) | |
| kubectl get pods --all-namespaces | tail -n+2 | awk '{print $1 " " $2}' | xargs -L1 bash -c "kubectl patch -n \$0 pod/\$1 --type=merge -p \$(kubectl get -n \$0 pod/\$1 -o json | jq -Mcr '.metadata.finalizers // [] | {metadata:{finalizers:map(select(. != \"name-of-bad-finalizer\"))}}')" |