Skip to content

Instantly share code, notes, and snippets.

@dnozay
dnozay / gist:10360071
Last active August 29, 2015 13:58
what is HP VSA / Lefthand / SAN/iQ ?
[0] http://marc.info/?a=97993518700001&r=1&w=2
[1] http://lists.linux-ha.org/pipermail/linux-ha/2001-January/002608.html
[2] http://osdir.com/ml/linux.drbd/2001-08/msg00017.html
[3] http://www.cs.technion.ac.il/Labs/csl/projects/Ensemble/
[4] http://hpux.connect.org.uk/hppd/hpux/Distributed/censemble-0.10/
[5] http://censemble.com/
[6] https://github.com/dnozay/CEnsemble
Link [0] is just a bunch of posts that were posted by 'Mark Hayden <mark () northforknet ! com>'
Link [1] explains what DBD (DISTRIBUTED BLOCK DEVICE) is; not to be confused with DRBD.
@dnozay
dnozay / install.sh
Created April 18, 2014 01:12
nginx jenkins webserver configuration.
# some of the steps were described here:
# https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions
# install LTS package
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
rpm --import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key
yum install jenkins java-1.6.0-openjdk nginx
# check version
@dnozay
dnozay / jenkins.py
Last active February 13, 2020 15:02
urllib2 + jenkins basic auth when 403 - forbidden
# some servers do not send "401 retry" responses when authentication is needed
# and return "403 forbidden" instead; e.g. jenkins does that.
import urllib2
import logging
# configure logging for library
class NullHandler(logging.Handler):
def emit(self, record):
pass
@dnozay
dnozay / JLwsp.markdown
Created June 24, 2014 03:07
A Pen by Damien Nozay.
@dnozay
dnozay / README
Created June 26, 2014 22:40
Billion laughs attack test.
Gist to test if your XMLRPC server is susceptible to the "billion laughs" attack.
See https://docs.python.org/2/library/xml.html#xml-vulnerabilities.
@dnozay
dnozay / install.sh
Last active August 29, 2015 14:04
centos - install python 2.7.8 on cento 6.5
cd /tmp
sudo yum install -y openssl-devel zlib-devel bzip2-devel wget
VERSION=2.7.8
wget https://www.python.org/ftp/python/${VERSION}/Python-${VERSION}.tgz
tar -xvzf Python-${VERSION}.tgz
cd Python-${VERSION}
@dnozay
dnozay / gist:37e8148ee748068afb91
Created July 24, 2014 23:14
ftp copy files recursively
# ftp + recursive copy
# License: MIT - http://opensource.org/licenses/MIT
import ftplib
import os
import getpass
import ssl
class RecursiveCopyMixin(object):
def rput(self, sourcedir, remotedir):
@dnozay
dnozay / 0001-trivial-massage-for-centos.patch
Created August 5, 2014 22:56
zfs-backup patch for centos
From dec16d764a5bb0a45b16fbb445dce9a8858fc80d Mon Sep 17 00:00:00 2001
From: damien <damien@localhost>
Date: Tue, 5 Aug 2014 15:54:14 -0700
Subject: [PATCH] [trivial] massage for centos
---
zfs-backup.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/zfs-backup.sh b/zfs-backup.sh
@dnozay
dnozay / local-apxs.sh
Last active October 20, 2021 03:17
fix apxs on OSX10.9
#!/bin/bash
# apxs may fail with .../usr/bin/cc: not a directory
# solution: use your own apxs script.
# fix based on the configure.ac from mod_wsgi
# https://github.com/GrahamDumpleton/mod_wsgi
XCODE_PREFIX="/Applications/Xcode.app/Contents/Developer/Toolchains/"
XCODE_CC="${XCODE_PREFIX}XcodeDefault.xctoolchain/usr/bin/cc"
@dnozay
dnozay / README.md
Last active October 13, 2016 21:52
recompile bash on OSX 10.6.