<source>
@type tail
path /var/log/assignment_server.out.log*
pos_file /var/run/td-agent/td-agent_position.pos
tag prod.allocation
path_key tailed_path
rotate_wait 5
read_from_head true
refresh_interval 60
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 typing import List | |
def is_prime(x: int) -> bool: | |
if x > 1: | |
for i in range(2, int(x / 2) + 1): | |
if (x % i) == 0: | |
return False | |
break | |
else: | |
return True |
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
data "aws_ami" "ubuntu" { | |
most_recent = true | |
filter { | |
name = "name" | |
values = ["ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*"] | |
} | |
filter { | |
name = "virtualization-type" |
Content of scripts/test.sh
:
#!/bin/bash
# Exit if any of the intermediate steps fail
set -e
# jq will ensure that the values are properly quoted
# and escaped for consumption by the shell.
eval "$(jq -r '@sh "ASG_NAME=\(.asg_name) REGION=\(.region) DC=\(.desired_capacity)"')"
$ ssh -A vm
$ git config --global url."[email protected]:".insteadOf "https://github.com/"
$ cat ~/.gitconfig
[url "[email protected]:"]
insteadOf = https://github.com/
$ go get github.com/private/repo && echo Success!
Success!
bin/kafka-topics.sh --zookeeper localhost:2181 --list
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic
unset JMX_PORT; bin/kafka-topics.sh --zookeeper X:2181 --create --topic NAME --replication-factor 3 --partitions 3
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
--- MEMORY RELATED | |
--- wal_buffer | |
SHOW wal_buffers; | |
SELECT name,setting,unit,current_setting(name) FROM pg_settings WHERE name='wal_buffers'; | |
--- unix: `getconf PAGE_SIZE``getconf _PHYS_PAGES` ... Linux: `ipcs -l` `sysctl kernel.sem` | |
--- initial parameters of PostgreSQL: https://pgtune.leopard.in.ua/#/ | |
create extension pg_buffercache; | |
\dx pg_buffercache | |
--- pg_buffercache has several columns | |
--- bufferid, the block ID in the server buffer cache |
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 requests | |
import os | |
import logging | |
import sys | |
import json | |
import base64 | |
class Conf: | |
''' | |
Wrapper on top of consul api to facilitates configuration for Application. |
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
★ Install of core/ffmpeg/3.3.2/20170710172745 complete with 0 new packages installed. | |
crawler-development: Resolved dependency 'core/ffmpeg' to /hab/pkgs/core/ffmpeg/3.3.2/20170710172745 | |
crawler-development: WARN | |
crawler-development: WARN The following runtime dependencies have more than one version | |
crawler-development: WARN release in the full dependency chain: | |
crawler-development: WARN | |
crawler-development: WARN * core/gmp ( core/gmp/6.1.0/20170513202112 core/gmp/6.1.2/20170526062114 ) | |
crawler-development: WARN | |
crawler-development: WARN The current situation usually arises when a Plan has a direct | |
crawler-development: WARN dependency on one version of a package (`acme/A/7.0/20160101200001`) |
NewerOlder