Skip to content

Instantly share code, notes, and snippets.

View cutecycle's full-sized avatar

Nina Reynolds cutecycle

View GitHub Profile
# Dot source Utility functions.
. $PSScriptRoot/Utility.ps1
function Initialize-AzModule {
[CmdletBinding()]
param(
[Parameter(Mandatory=$true)]
$Endpoint,
[string] $azVersion)
#include <iostream>
struct blah {
const int x;
};
int main() {
const int x = 5;
const int y = 3;
blah hoo = {
.x= 13
};
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)?;
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
<source>
@type forward
port 24224
bind 0.0.0.0
</source>
<match *image-mover-api*>
@type file
path /fluentd/imagemover/tomcat7/catalina.out
<buffer>
<source>
@type forward
port 24224
bind 0.0.0.0
</source>
<match *corp-api*>
@type file
path /fluentd/company/tomcat7/catalina.out
<buffer>
docker build . -t co/monitoring:latest; docker run -p "12345:12345" -v "pronghorn-config.json:/etc/co/pronghorn-config.json" co/monitoring:latest
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
+ typescript@3.3.3333
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
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
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