Skip to content

Instantly share code, notes, and snippets.

From c59e5732099af0a10a1e88dae624e232eb7ab7d4 Mon Sep 17 00:00:00 2001
From: akagisho <akagisho@gmail.com>
Date: Mon, 9 Mar 2015 17:59:29 +0900
Subject: [PATCH] ITS#6461 escape single-quotes in back-sql
---
servers/slapd/back-sql/proto-sql.h | 2 ++
servers/slapd/back-sql/search.c | 5 +++++
servers/slapd/back-sql/util.c | 37 +++++++++++++++++++++++++++++++++++++
3 files changed, 44 insertions(+)
require 'serverspec'
require 'net/ssh'
set :backend, :ssh
if ENV['ASK_SUDO_PASSWORD']
begin
require 'highline/import'
rescue LoadError
fail "highline is not available. Try installing it."
diff -ur whois-5.1.1.orig/whois.c whois-5.1.1/whois.c
--- whois-5.1.1.orig/whois.c 2013-12-27 04:55:36.000000000 +0900
+++ whois-5.1.1/whois.c 2014-04-10 14:31:18.000000000 +0900
@@ -78,6 +78,7 @@
{"server", required_argument, NULL, 'h'},
{"host", required_argument, NULL, 'h'},
{"port", required_argument, NULL, 'p'},
+ {"src_addr",required_argument, NULL, 'S'},
{NULL, 0, NULL, 0 }
};
@akagisho
akagisho / Dockerfile
Created March 5, 2014 09:55
gitlab-installer/Dockerfile
FROM ubuntu:12.04
MAINTAINER akagisho <akagisho@gmail.com>
RUN echo "deb http://jp.archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-mark hold initscripts udev plymouth mountall
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN apt-get update
RUN apt-get upgrade -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server mysql-client libmysqlclient-dev
RUN /usr/bin/mysqld_safe &
@akagisho
akagisho / preseed.cfg
Created November 10, 2013 08:54
preseed.cfg for Ubuntu Server 12.04.3 amd64
d-i debian-installer/locale string en_US
d-i debian-installer/language string en
d-i debian-installer/country string US
d-i debian-installer/locale string en_US.UTF-8
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us
d-i netcfg/choose_interface select eth0
d-i netcfg/dhcp_timeout string 30
@akagisho
akagisho / gitlab.conf
Last active December 20, 2015 01:49
nginx's configuration file for gitlab
# GITLAB
# Maintainer: @randx
# App Version: 5.0
upstream gitlab {
server unix:/home/git/gitlab/tmp/sockets/gitlab.socket;
}
server {
listen YOUR_SERVER_IP:80 default_server; # e.g., listen 192.168.1.1:80;
@akagisho
akagisho / gitlab_installer.sh
Last active February 9, 2017 05:44
GitLab installer for CentOS 6.4 (64bit)
#!/usr/bin/env bash
# GitLab installer for CentOS 6.4 (64bit)
if [ $(whoami) != "root" ]; then
echo "You must be root to do!" 1>&2
exit 1
fi
[[ "$MYSQL_PASSWORD" == "" ]] && MYSQL_PASSWORD="Myp@ssword"