Skip to content

Instantly share code, notes, and snippets.

View KervyN's full-sized avatar
💭
I may be slow to respond.

Boris KervyN

💭
I may be slow to respond.
  • Bonn
  • 01:59 (UTC +02:00)
View GitHub Profile
@KervyN
KervyN / all.exclude
Last active June 12, 2019 10:37
The restic script I use to backup
/mnt/lv-snapshots/snap-lvsrv/webapps/*/logs
/mnt/lv-snapshots/snap-lvsrv/webapps/*/shared/log/*.log*
/mnt/lv-snapshots/snap-lvsrv/webapps/*/shared/log/pid/*
/mnt/lv-snapshots/snap-lvsrv/webapps/*/shared/log/tmp/*
/mnt/lv-snapshots/snap-lvsrv/fileserver/stuff/tmp3
@KervyN
KervyN / sync-puppet.sh
Created October 4, 2017 15:32
Script for puppet repo syncing with debmirror
# cat /home/debmirror/bin/mirror-puppet.sh
#!/bin/bash
# sourcehost: choose a mirror in your proximity!
HOST=rsync.puppet.com
# destination directory
DEST=/srv/debmirror/puppet
# Debian version(s) to mirror
@KervyN
KervyN / stats.c
Created March 2, 2017 08:53
get uptime from kernel
#include <sys/sysinfo.h>
#include <stdio.h>
int main() {
struct sysinfo sys;
/* Get the sysinfo */
sysinfo(&sys);
/* Output */
@KervyN
KervyN / rocketchat_supervisord.conf
Last active May 24, 2016 09:02
Update script for Rocket.chat including supervisord
[program:rocketchat]
command=/usr/local/bin/node home/chat/production/current/main.js
directory=/home/chat/production/current
startsecs=20
startretries=5
autostart=true
autorestart=true
stdout_logfile=/home/chat/production/shared/log/rocketchat_stdout.log
logfile_maxbytes=10MB
logfile_backups=10

Keybase proof

I hereby claim:

  • I am kervyn on github.
  • I am kervyn (https://keybase.io/kervyn) on keybase.
  • I have a public key whose fingerprint is 1773 8862 ACC8 A22E 4033 F16C 88F3 45BE 3936 BA56

To claim this, I am signing this object: