๐
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
- name: install 7zip | |
win_chocolatey: | |
name: 7zip | |
state: present |
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
import akka.NotUsed | |
import akka.actor.ActorSystem | |
import akka.stream.ActorMaterializer | |
import akka.stream.ClosedShape | |
import akka.stream.FlowShape | |
import akka.stream.Graph | |
import akka.stream.javadsl.GraphDSL | |
import akka.stream.javadsl.RunnableGraph | |
import akka.stream.javadsl.Source | |
import akka.stream.scaladsl.Flow |
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
buildscript { | |
ext.kotlin_version = '1.2.21' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_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
<powershell> | |
$ipAddress = (invoke-restmethod -uri http://169.254.169.254/latest/meta-data/local-ipv4) | |
"Setting up port forwarding" | |
netsh interface portproxy add v4tov4 listenport=80 connectport=8080 connectaddress=$ipAddress | |
</powershell> |
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
-- | |
- name: start nginx | |
win_service: | |
name: nginx | |
start_mode: auto | |
state: started |
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
--- | |
- name: install nginx | |
win_chocolatey: | |
name: nginx | |
state: present | |
- name: install nssm | |
win_chocolatey: | |
name: nssm | |
state: present | |
- name: copy nginx conf file |
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 findTag(tags, key) { | |
for (var i = tags.length - 1; i >= 0; i--) { | |
if (tags[i].Key === key) { | |
return tags[i].Value; | |
} | |
} | |
} | |
exports.handler = (event, context, callback) => { | |
var AWS = require('aws-sdk'); |
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
RUN groupadd --gid 1000 node \ | |
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node | |
# gpg keys listed at https://github.com/nodejs/node#release-team | |
RUN set -ex \ | |
&& for key in \ | |
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ | |
FD3A5288F042B6850C66B31F09FE44734EB7990E \ | |
71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \ | |
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \ |
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
const yargs = require('yargs'); | |
const spawn = require('child_process').spawn; | |
module.exports = (robot) => { | |
robot.respond(/deploy (.*)/i, (res) => { | |
let parser = yargs.command('deploy <build_num>', 'deploy a version', (yargs) => { | |
yargs | |
.positional('build_num', { | |
describe: 'build number', | |
}) |
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
[ | |
"hubot-help" | |
] |