Skip to content

Instantly share code, notes, and snippets.

@rdoursenaud
rdoursenaud / otrs.conf
Created May 20, 2015 08:37
OTRS FCGIWRAP SSL+HSTS NGINX configuration
server {
listen 443 ssl;
listen [::]:443 ssl;
keepalive_timeout 70;
server_name otrs.example.com;
root /opt/otrs/var/httpd/htdocs;
index index.html;
# SSL
@rdoursenaud
rdoursenaud / deletecontactgroups.gs
Created August 28, 2014 15:08
Google Apps Script - Delete all contact groups
function deleteContactGroups() {
var groups = ContactsApp.getContactGroups();
Logger.log("total: " + groups.length);
for (var i = 0; i < groups.length; i++) {
if (!groups[i].isSystemGroup()){
groups[i].deleteGroup()
Logger.log("deleting: " + groups[i].getName() );
}
}
#!/bin/bash
# Inplace mode added by Raphaël Doursenaud <[email protected]>
PROGNAME=${0##*/}
INPUT=''
QUIET='0'
NOSTATS='0'
INPLACE='0'
max_input_size=0
max_output_size=0
@rdoursenaud
rdoursenaud / shinken.conf
Last active November 14, 2015 09:32
Shinken nginx reverse proxy configuration
# Reverse proxy for Shinken 2.0.x on Debian Wheezy
# Place this file under /etc/nginx/sites-available
# Update your server_name
# Don't forget to enable the config and reload nginx
# Enjoy ^^
server {
# IPv4 support
listen 80;
# IPv6 support
listen [::]:80;