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
#!/bin/bash | |
# Usage: pdf_downsample.sh <input_pdf_file> <output_pdf_file> [output_dpi] | |
# A. J. Ricoveri (github.com/axltxl) | |
set -e | |
_pdf_help() { | |
echo "Usage: $0 <input_pdf_file> <output_pdf_file> [output_dpi]" | |
exit 1 | |
} |
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
diff --git a/colour.c b/colour.c | |
index a56ddce..8098f83 100644 | |
--- a/colour.c | |
+++ b/colour.c | |
@@ -29,305 +29,85 @@ | |
* of the 256 colour palette. | |
*/ | |
-struct colour_rgb { | |
- u_char i; |
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
" Basics | |
set cncpcompletion | |
let mapleader = ";" | |
let barposition = "bottom" |
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
#!/usr/bin/env bash | |
# | |
# openvpn router setup: | |
# Small utility to set up an OpenVPN router | |
# | |
# Author: Alejandro Ricoveri <alejandroricoveri@gmail.com> | |
# network interfaces | |
i_lan=eth0 | |
i_vpn=tun0 # OpenVPN TUN interface |
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
#!/usr/bin/env python | |
''' | |
Send memory usage metrics to Amazon CloudWatch | |
This is intended to run on an Amazon EC2 instance and requires an IAM | |
role allowing to write CloudWatch metrics. Alternatively, you can create | |
a boto credentials file and rely on it instead. | |
Original idea based on https://github.com/colinbjohnson/aws-missing-tools | |
''' |