Skip to content

Instantly share code, notes, and snippets.

View bondario's full-sized avatar

Denis Bondar bondario

  • Moscow, Russia
View GitHub Profile
@bondario
bondario / ubuntu1204_php54
Created August 9, 2013 15:54
Downgrade php 5.5 to 5.4 or keep php 5.4 for Ubuntu 12.04.02 LTS
apt-get install -y ppa-purge
add-apt-repository -y ppa:ondrej/php5-oldstable
apt-get update
ppa-purge ppa:ondrej/php5
apt-get update && apt-get upgrade -y && apt-get autoremove -y && apt-get autoclean -y
@bondario
bondario / perf.py
Created August 1, 2012 08:56
Group by list of keys sum by list of values
#!/usr/bin/env python
# encoding: utf-8
"""
perf.py - Aggregates rows to minute interval
by fieds: project, script, context, container, mode, host
summing fields: sum, cnt, min, max, avg
NOTE! ONLY cron usage with 5 min interval.
@bondario
bondario / init.livecd.patch
Created May 21, 2012 14:46
gentoo livecd pxe boot
--- init.orig 2012-05-21 16:14:35.000000000 +0400
+++ init 2012-05-21 18:14:43.000000000 +0400
@@ -368,10 +368,10 @@
[ ! -e "${NEW_ROOT}/dev/tty1" ] && mknod "${NEW_ROOT}/dev/tty1" c 4 1
fi
- if [ "${REAL_ROOT}" != "/dev/nfs" ] && [ "${LOOPTYPE}" != "sgimips" ]
- then
- bootstrapCD
- fi
@bondario
bondario / gist:2469281
Created April 23, 2012 06:57
gentoo nginx auth_ldap
--- /usr/portage/www-servers/nginx/nginx-1.0.14.ebuild 2012-03-15 22:31:29.000000000 +0400
+++ /usr/local/portage/www-servers/nginx/nginx-1.0.14-r99.ebuild 2012-03-22 14:16:52.010119097 +0400
@@ -17,6 +17,12 @@
# prevent perl-module from adding automagic perl DEPENDs
GENTOO_DEPEND_ON_PERL="no"
+# http_uploadprogress (https://github.com/kvspb/nginx-auth-ldap, BSD-2 license)
+HTTP_AUTH_LDAP_MODULE_PV="c2c3d5e"
+HTTP_AUTH_LDAP_MODULE_P="kvspb-nginx-auth-ldap-${HTTP_AUTH_LDAP_MODULE_PV}"
+HTTP_AUTH_LDAP_MODULE_SHA1="c2c3d5e"