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 NewRelic Infrastructure agent | |
hosts: newrelic_infra | |
become: yes | |
gather_facts: no | |
vars: | |
agent_url: "{{ package_url | default('https://download.newrelic.com/infrastructure_agent/binaries/linux/amd64/newrelic-infra_linux_1.19.4_amd64.tar.gz') }}" | |
package_path: /tmp/newrelic-infra.tar.gz | |
agent_path: /opt | |
newrelic_license_key: "{{ vault_newrelic_license_key }}" |
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 argparse | |
import asyncio | |
import glob | |
import os | |
import pandas as pd | |
# Setup parser | |
description = '''Convert CSV files or an entire directory to XLSX.\n |
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
package main | |
//TODO publish to github reporitory | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"rsc.io/pdf" | |
) |
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 | |
# Intended to be used with Python 2.7.5 | |
import json | |
import subprocess | |
import shlex | |
import sys | |
import os | |
import logging | |
import logging.handlers |
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 | |
function usage { | |
cat <<EOF | |
Usage: $0 [-dv] <path> | |
EOF | |
exit 1 | |
} | |
verbose=0 |
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 | |
function banner { | |
echo ' _____ _ ______ _ _____ _ _____ ' | |
echo '/ __ \ (_) | ___| | / __ \| | |_ _|' | |
echo '| / \/_ __ _ _ __ ___ ___| |_ | | __ _ _ __ ___ | / \/| | | | ' | |
echo "| | | '__| | '_ \` _ \ / _ \ _| | |/ _\` | '__/ _ \\ | | | | | | " | |
echo '| \__/\ | | | | | | | | __/ | | | (_| | | | __/ | \__/\| |_____| |_ ' | |
echo ' \____/_| |_|_| |_| |_|\___\_| |_|\__,_|_| \___| \____/\_____/\___/ ' | |
echo |
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
1 upstream apache { | |
2 server apache; | |
3 } | |
4 | |
5 map $args $cache_bypass { | |
6 default 0; | |
7 ~nocache 1; | |
8 } | |
9 | |
10 server { |
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/log/app.log { | |
rotate 30 | |
daily | |
missingok | |
compress | |
delaycompress | |
dateext | |
olddir /var/log/app | |
dateformat .%Y-%m-%d | |
postrotate |
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 | |
content=$(cat template.txt) | |
rendered=$(eval echo $content) | |
echo $rendered |
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 boto3 | |
sdb = boto3.client('sdb') | |
domain_name = 'sdb_test' | |
def make_item(item_name, attributes): | |
return { | |
'ItemName': item_name, | |
'Attributes': [{'Name': k, 'Value': v, 'Replace': True} for k, v in attributes.items()] | |
} |
NewerOlder