Skip to content

Instantly share code, notes, and snippets.

View g3rhard's full-sized avatar

Kirill Trofimov g3rhard

View GitHub Profile
@g3rhard
g3rhard / Jenkinsfile
Created January 17, 2020 13:58 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples

Шаблон Postmortem

Вольный перевод Postmortem Template от Hosted Graphite.

Краткое описание

Background

Что произошло?

Хронология событий

@g3rhard
g3rhard / agent.Dockerfile
Created August 13, 2019 11:26
Puppet test environment
FROM debian:stretch
CMD ["apt-get update && apt-get install -y puppet nano"]
CMD tail -f /dev/null
@g3rhard
g3rhard / docker-compose.yml
Created July 31, 2019 05:55 — forked from brunosimioni/docker-compose.yml
Docker Compose to Prometheus, PushGateway and Grafana setup
version: '2.1'
networks:
monitor-net:
driver: bridge
volumes:
prometheus_data: {}
grafana_data: {}
@g3rhard
g3rhard / docker-compose.yaml
Created July 10, 2019 06:01
docker-compose for ipsec vpn + pihole + telegram proxy
version: '2'
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
volumes:
- /etc/localtime:/etc/localtime:ro
- /dev/rtc:/dev/rtc:ro
dns:
# hiera
uptream:
'abc_core':
'ips':
- '1.2.3.4'
- '1.2.3.5'
'port': 8080
'abc_cp_core':
'ips':
- '1.2.3.4'
@g3rhard
g3rhard / php-pools.md
Created June 5, 2019 09:00 — forked from holmberd/php-pools.md
Adjusting child processes for PHP-FPM (Nginx)

Adjusting child processes for PHP-FPM (Nginx)

When setting these options consider the following:

  • How long is your average request?
  • What is the maximum number of simultaneous visitors the site(s) get?
  • How much memory on average does each child process consume?

Determine if the max_children limit has been reached.

  • sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
@g3rhard
g3rhard / Brewfile
Last active November 27, 2024 14:00
tap "armosec/kubescape"
tap "danvergara/tools"
tap "env0/terratag"
tap "fluxcd/tap"
tap "github/gh"
tap "go-task/tap"
tap "goodwithtech/r"
tap "hashicorp/tap"
tap "helm/tap"
tap "homebrew/bundle"
@g3rhard
g3rhard / playlist.m3u
Last active November 29, 2023 00:16
Create playlist file or list streams for radiorecord.ru stations
#EXTM3U
#PLAYLIST:Playlist Name
#EXTINF:-1,1970
http://air.radiorecord.ru:805/1970_64
#EXTINF:-1,1980
http://air.radiorecord.ru:805/1980_64
#EXTINF:-1,2step
http://air.radiorecord.ru:805/2step_64
#EXTINF:-1,ansh
http://air.radiorecord.ru:805/ansh_64
@g3rhard
g3rhard / README
Created November 20, 2018 09:01 — forked from alexshpilkin/README
Convert the RKN list to a Mikrotik firewall address list
Download the RKN list from https://github.com/zapret-info/z-i, massage it into
a Mikrotik script that manages a firewall address list, and put it up on a web
server. Note well that the list is gigantic---more than 80,000 entries as of
2018-04-28---so be sure to check if your router can handle it in advance (for
example, hAP Lite, with its measly 32M of memory, can’t).
On the router side, do something like
/tool fetch url="https://sheaf.site/rkn.rsc" dst-path=rkn.rsc
:import rkn.src