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
# Dot source Utility functions. | |
. $PSScriptRoot/Utility.ps1 | |
function Initialize-AzModule { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$true)] | |
$Endpoint, | |
[string] $azVersion) |
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
#include <iostream> | |
struct blah { | |
const int x; | |
}; | |
int main() { | |
const int x = 5; | |
const int y = 3; | |
blah hoo = { | |
.x= 13 | |
}; |
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
use std::net::UdpSocket; | |
fn main() -> std::io::Result<()> { | |
{ | |
let mut socket = UdpSocket::bind("127.0.0.1:34254")?; | |
// Receives a single datagram message on the socket. If `buf` is too small to hold | |
// the message, it will be cut off. | |
let mut buf = [0; 10]; | |
let (amt, src) = socket.recv_from(&mut buf)?; |
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
version: '3' | |
services: | |
testSensuAgent: | |
container_name: test_agent | |
image: "sensu/sensu:5.14.0" | |
environment: | |
- DEPLOY_ENV=dev | |
command: "/bin/sh -c 'sensu-agent start --backend-url wss://monitoring.corp.com:8081 --subscriptions system --insecure-skip-tls-verify'" | |
sensuAdmin: | |
container_name: sensuctl |
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
<source> | |
@type forward | |
port 24224 | |
bind 0.0.0.0 | |
</source> | |
<match *image-mover-api*> | |
@type file | |
path /fluentd/imagemover/tomcat7/catalina.out | |
<buffer> |
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
<source> | |
@type forward | |
port 24224 | |
bind 0.0.0.0 | |
</source> | |
<match *corp-api*> | |
@type file | |
path /fluentd/company/tomcat7/catalina.out | |
<buffer> |
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
docker build . -t co/monitoring:latest; docker run -p "12345:12345" -v "pronghorn-config.json:/etc/co/pronghorn-config.json" co/monitoring:latest |
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
Step 12/15 : RUN npm i -g typescript; npm i express --save; npm i http-proxy; npm i http-proxy-middleware | |
---> Running in f9c70fcac5e8 | |
/usr/local/bin/tsc -> /usr/local/lib/node_modules/typescript/bin/tsc | |
/usr/local/bin/tsserver -> /usr/local/lib/node_modules/typescript/bin/tsserver | |
+ [email protected] | |
added 1 package from 1 contributor in 2.201s | |
npm notice created a lockfile as package-lock.json. You should commit this file. | |
audited 151 packages in 2.2s | |
found 0 vulnerabilities |
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
network_interfaces: | |
lo: | |
type: loopback | |
'{{ ansible_default_ipv4.interface }}': | |
type: static | |
address: 169.50.214.36 | |
netmask: 255.255.255.240 | |
network: 169.50.214.32 | |
broadcast: 169.50.214.255 | |
gateway: 169.50.214.33 |
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
TASK [common/apt : apt install python-mysqldb mariadb-server] ****************** | |
task path: roles/common/apt/tasks/packages.yml:21 | |
Monday 04 February 2019 22:57:13 +0000 (0:00:03.204) 0:04:04.342 ******* | |
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py | |
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root | |
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0' | |
exit | |
NewerOlder