Skip to content

Instantly share code, notes, and snippets.

@roock
roock / gist:61e16f157c8b8a954b92
Last active August 29, 2015 14:06
mtr patch for patch
--- a/report.c.orig 2014-09-15 13:19:51.000000000 +0200
+++ b/report.c 2014-09-15 13:20:02.000000000 +0200
@@ -334,7 +334,7 @@
snprint_addr(name, sizeof(name), addr);
int last = net_last(at);
- if(!ipinfo_no) {
+ if(!ipinfo_nos) {
char* fmtinfo = fmt_ipinfo(addr);
if (fmtinfo != NULL) fmtinfo = trim(fmtinfo);
@roock
roock / gist:d219410ea888f2c29cbc
Last active August 29, 2015 14:06
Fix keychain timeout issue if timeout specified in keychain is greater than default max cache ttl in gnupg (default 2 hours)
--- a/keychain 2010-05-07 19:24:17.000000000 +0200
+++ b/keychain 2014-09-18 16:14:29.000000000 +0200
@@ -735,7 +735,7 @@
start_out=`ssh-agent`
elif [ "$start_prog" = gpg ]; then
if [ -n "${timeout}" ]; then
- start_gpg_timeout="--default-cache-ttl `expr $timeout \* 60`"
+ start_gpg_timeout="--default-cache-ttl `expr $timeout \* 60` --max-cache-ttl `expr $timeout \* 60`"
else
unset start_gpg_timeout
@roock
roock / echo-server.yml
Last active February 17, 2022 05:08 — forked from chukaofili/echo-server.yml
Echo Server Deployment
apiVersion: v1
kind: Namespace
metadata:
name: echoserver
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: echoserver
namespace: echoserver
@roock
roock / logs.md
Last active February 1, 2021 15:59

Testing with 24.28.4

docker run -it --rm -v $PWD:/app renovate/renovate:24.28.4 bash -c "cd /app && renovate-config-validator"
Validating renovate.json
Validating config.js
OK

Testing with 24.32.2

docker run -it --rm -v $PWD:/app renovate/renovate:24.32.2 bash -c "cd /app && renovate-config-validator"
@roock
roock / playbook.yml
Created April 27, 2023 15:06 — forked from abeluck/playbook.yml
Ansible tasks to create and delete alertmanager silences
# creates a silence in alertmanager that starts `now` and lasts for 10 minutes
- hosts: localhost
gather_facts: yes
tasks:
- set_fact:
start_datetime: "{{ ''| local_time_iso8601 }}"
future_datetime: "{{ ''|local_time_iso8601 | add_time_iso8601(minutes=10) }}"
- debug:
var: future_datetime