This file contains 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
# Copyright 2010 The Go Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style | |
# license that can be found in the LICENSE file. | |
"""GDB Pretty printers and convenience functions for Go's runtime structures. | |
This script is loaded by GDB when it finds a .debug_gdb_scripts | |
section in the compiled binary. The [68]l linkers emit this with a | |
path to this file based on the path to the runtime package. | |
""" |
This file contains 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
proxy_pass http://REGISTRY_PORT_5000_TCP_ADDR:REGISTRY_PORT_5000_TCP_PORT; | |
proxy_set_header Host $http_host; # required for docker client's sake | |
proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP | |
proxy_set_header Authorization ""; | |
proxy_read_timeout 900; |
This file contains 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
Puppet::Type.type(:service).provide :jessie, :parent => :systemd do | |
desc "Manages `systemd` services using `systemctl` on jessie." | |
defaultfor :osfamily => :debian, :operatingsystem => :debian, :operatingsystemmajrelease => "8" | |
def get_start_link_count | |
Dir.glob("/etc/rc*.d/S??#{@resource[:name]}").length | |
end | |
def enabled? |
This file contains 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 | |
# | |
# This shell script passes all its arguments to the binary inside the | |
# MacVim.app application bundle. If you make links to this script as view, | |
# gvim, etc., then it will peek at the name used to call it and set options | |
# appropriately. | |
# | |
# Based on a script by Wout Mertens and suggestions from Laurent Bihanic. This | |
# version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico | |
# Weber and Bjorn Winckler, Aug 13 2007). |
This file contains 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
2015-11-13 11:41:17 +0000 | |
./configure | |
--disable-dependency-tracking | |
--prefix=/usr/local/Cellar/czmq/3.0.2_2 | |
--with-libsodium | |
configure: WARNING: unrecognized options: --with-libsodium | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes |
This file contains 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
Interval 10 | |
LoadPlugin logfile | |
<Plugin logfile> | |
LogLevel debug | |
File STDOUT | |
Timestamp true | |
PrintSeverity true | |
</Plugin> |
This file contains 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 amazonlinux:1 | |
ENV RUSTUP_HOME=/usr/local/rustup \ | |
CARGO_HOME=/usr/local/cargo \ | |
PATH=/usr/local/cargo/bin:$PATH \ | |
RUST_VERSION=1.30.1 | |
RUN set -eux; \ | |
yum update -y ;\ | |
yum install -y wget ;\ |
This file contains 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
#[derive(Deserialize, Debug)] | |
struct S3Event { | |
#[serde(rename = "Records")] | |
#[allow(dead_code)] | |
records: Vec<S3EventRecord>, | |
} | |
#[derive(Deserialize, Debug)] | |
struct S3EventRecord { | |
#[serde(rename = "eventVersion")] |
This file contains 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
extern crate lambda_runtime as lambda; | |
#[macro_use] | |
extern crate log; | |
extern crate simple_logger; | |
extern crate serde_derive; | |
extern crate chrono; | |
use lambda::{error::HandlerError, lambda}; |
This file contains 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 cdk = require('@aws-cdk/core'); | |
import autoscaling = require('@aws-cdk/aws-autoscaling'); | |
import ec2 = require('@aws-cdk/aws-ec2'); | |
import eks = require('@aws-cdk/aws-eks'); | |
import iam = require('@aws-cdk/aws-iam'); | |
import fs = require('fs'); | |
import path = require('path'); | |
import { safeLoadAll, safeLoad } from 'js-yaml'; |