Skip to content

Instantly share code, notes, and snippets.

@nemunaire
nemunaire / redshift.conf
Created March 25, 2014 15:05
Redshift configuration for Paris
[redshift]
gamma=0.9
adjustment-method=vidmode
location-provider=manual
[manual]
lat=48.51
lon=2.20
@nemunaire
nemunaire / nagios-status.pl
Last active August 22, 2019 08:49
View in terminal hosts and services states of your domain. This is done by reading a nagios status file.
#!/usr/bin/env perl
#=============================================================================
#
# FILE: status.pl
#
# USAGE: ./status.pl [options]
#
# DESCRIPTION: Give Nagios status about hosts and services
#
# REQUIREMENTS: Perl 5.10.1; Term::ANSIColor
@nemunaire
nemunaire / fix_multipart_pgp.pl
Created March 13, 2014 11:10
This script changes the Content-type header of each part of a multipart message (only for PGP encrypted or signed parts) ; to allow Mutt to decrypt or verify parts automatically.
#!/usr/bin/env perl
use v5.14;
use strict;
use warnings;
use utf8;
use open IO => ':utf8';
use open ':std';
use Encode;
@nemunaire
nemunaire / ansible-min.c
Created March 10, 2014 13:37
Minimal Ansible module written in C.
#include<stdio.h>
int main()
{
printf("{ \"changed\": false }");
}