Skip to content

Instantly share code, notes, and snippets.

View php-workx's full-sized avatar

Ronny Unger php-workx

  • Sweden
  • 12:19 (UTC +02:00)
View GitHub Profile
@php-workx
php-workx / parse-hetzner-json.py
Created March 1, 2013 05:43
hetzner failover ip
#!/usr/bin/python
import simplejson as json, urllib2, ConfigParser, sys, urllib
from optparse import OptionParser
# Parse the commandline options
parser = OptionParser()
parser.add_option("-l", "--list",
action="store_true", dest="list_action", default=False,
help="get current settings")
parser.add_option("-g", "--get",
@php-workx
php-workx / mongos.conf
Last active December 11, 2015 11:28 — forked from azat/mongos.conf
logpath = /var/log/mongodb/mongos.log
logappend = true
# Enable keyfile authentication
keyFile = /etc/mongokey
configdb = mongo-cfg01.kairion.de:27019,mongo-cfg02.kairion.de:27019,mongo-cfg03.kairion.de:27019
@php-workx
php-workx / mongos
Last active December 11, 2015 11:28 — forked from fabioperrella/mongos
#!/bin/sh
#
# init.d script with LSB support.
#
# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org>
#
# This is free software; you may redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2,
# or (at your option) any later version.
# mongodb.conf
# Where to store the data.
# Note: if you run mongodb as a non-root user (recommended) you may
# need to create and set permissions for this directory manually,
# e.g., if the parent directory isn't mutable by the mongodb user.
dbpath=/var/lib/mongodb
#where to log
# mongodb-configsrv.conf
# Where to store the data.
# Note: if you run mongodb as a non-root user (recommended) you may
# need to create and set permissions for this directory manually,
# e.g., if the parent directory isn't mutable by the mongodb user.
dbpath=/var/lib/mongodb-configsrv
#where to log
#!/bin/sh
#
# init.d script with LSB support.
#
# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org>
#
# This is free software; you may redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2,
# or (at your option) any later version.