Skip to content

Instantly share code, notes, and snippets.

@soloradish
soloradish / make.sh
Created August 1, 2016 08:12 — forked from artzub/make.sh
Install JetBrains Hub + YouTrack + UpSource + Nginx
#!/bin/bash
apt-get install mc htop git unzip wget curl -y
echo
echo "====================================================="
echo " WELCOME"
echo "====================================================="
echo
echo "Hub"
upstream backend {
server 127.0.0.1:8080;
server 127.0.0.1:8081;
server 127.0.0.1:8082;
}
upstream backend {
server 127.0.0.1:8081;
server 127.0.0.1:8082;
}
@soloradish
soloradish / vault_logrotate
Created September 12, 2018 02:25
logrotate setting file for HashiCorp's Vault audit file
# Change the path below to your own audit log path.
/var/log/vault/audit.log {
rotate 30
daily
# Do not execute rotate if the log file is empty.
notifempty
missingok
compress
# Set compress on next rotate cycl to prevent entry loss when performing compression.
delaycompress

Keybase proof

I hereby claim:

  • I am soloradish on github.
  • I am lowid (https://keybase.io/lowid) on keybase.
  • I have a public key ASA_1vadxju9NvmRSujG9K82bgfqPXx4TL2FDcjwL4ga7go

To claim this, I am signing this object:

@soloradish
soloradish / install_cloudwatch_agent.sh
Created September 19, 2018 08:07
Script download verify install Amazon CloudWatch Agent
#!/usr/bin/env bash
# require wget, unzip, gpg installed
# download package, gpg public key and signature files.
set -x
set -e
pushd $(mktemp -d)
wget https://s3.amazonaws.com/amazoncloudwatch-agent/linux/amd64/latest/AmazonCloudWatchAgent.zip
wget https://s3.amazonaws.com/amazoncloudwatch-agent/linux/amd64/latest/AmazonCloudWatchAgent.sig
wget https://s3.amazonaws.com/amazoncloudwatch-agent/assets/amazon-cloudwatch-agent.gpg
@soloradish
soloradish / WrappedStreamingBody
Created September 25, 2018 03:50 — forked from debedb/WrappedStreamingBody
Wrap boto3's StreamingBody object to provide enough Python fileobj functionality fileobj functionality so that GzipFile is satisfied.
class WrappedStreamingBody:
"""
Wrap boto3's StreamingBody object to provide enough
fileobj functionality so that GzipFile is
satisfied. Sometimes duck typing is awesome.
@soloradish
soloradish / grafana settings
Last active July 30, 2019 06:30
jmx exporter settings for kafka 1.1.x
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",