Skip to content

Instantly share code, notes, and snippets.

View indeyets's full-sized avatar

Alexey Zakhlestin indeyets

View GitHub Profile
<?php
class Symfony2App
{
private $kernel;
public function __construct(\Symfony\Foundation\Kernel $kernel)
{
$this->kernel = $kernel;
}
diff --git a/configure b/configure
index 3245683..070ac7b 100755
--- a/configure
+++ b/configure
@@ -17807,171 +17807,11 @@ fi
$as_echo "Mac OS X - carbon" >&6; }
platform_carbon=yes
SOPREFIX='lib'
-
- # Check whether --enable-binreloc was given.
@indeyets
indeyets / gist:666118
Created November 7, 2010 13:15
gda-4.0.12 introspection patch
diff --git a/libgda/gda-data-model.c b/libgda/gda-data-model.c
index 1518918..fa711f1 100644
--- a/libgda/gda-data-model.c
+++ b/libgda/gda-data-model.c
@@ -898,7 +898,7 @@ gda_data_model_remove_row (GdaDataModel *model, gint row, GError **error)
/**
* gda_data_model_get_row_from_values:
* @model: a #GdaDataModel object.
- * @values: (element-type Gobject.Value): a list of #GValue values (no %NULL is allowed)
+ * @values: (element-type GObject.Value): a list of #GValue values (no %NULL is allowed)
@indeyets
indeyets / gist:672998
Created November 11, 2010 19:04
mongrel2 formula patch for homebrew
diff --git a/Library/Formula/mongrel2.rb b/Library/Formula/mongrel2.rb
index 60e7e49..35ce213 100644
--- a/Library/Formula/mongrel2.rb
+++ b/Library/Formula/mongrel2.rb
@@ -9,6 +9,8 @@ class Mongrel2 <Formula
depends_on 'zeromq'
def install
+ ENV['OPTFLAGS'] = ENV.cflags + " " + ENV['CPPFLAGS']
+ ENV['OPTLIBS'] = ENV.ldflags
@indeyets
indeyets / gist:725356
Created December 2, 2010 14:17
midgard_schema.xml
<?xml version="1.0" encoding="UTF-8"?>
<Schema xmlns="http://www.midgard-project.org/repligard/1.4">
<type name="com_meego_package" table="com_meego_package" parent="com_meego_repository">
<property name="id" type="unsigned integer" primaryfield="id" index="yes" />
<property name="name" type="string" index="yes" />
<property name="title" type="string" index="yes" />
<property name="repository" type="unsigned integer" link="com_meego_repository:id" parentfield="repository" />
<property name="version" type="string" index="yes" />
<property name="summary" type="text" />
<property name="description" type="text" />
@indeyets
indeyets / gist:726878
Created December 3, 2010 12:01
pieces from bash_profile
shopt -s checkwinsize
shopt -s extglob progcomp
# get these somewhere ;)
. ~/git-completion.bash
. ~/hg-completion.bash
hg_ps1() {
# hg prompt " (hg: {{branch}}{ at {bookmark}}{status})" 2> /dev/null
hg prompt " (hg: {{branch}}{status})" 2> /dev/null
@indeyets
indeyets / gist:726880
Created December 3, 2010 12:02
pieces from .inputrc
set meta-flag on
set input-meta on
set output-meta on
set convert-meta off
set show-all-if-ambiguous on
set visible-stats on
set completion-ignore-case On
set mark-symlinked-directories On
@indeyets
indeyets / gist:740344
Created December 14, 2010 12:25
mongrel2-appserver.conf
mongrel2 = Host(name="localhost", routes={
'/': Handler(
send_spec='tcp://127.0.0.1:9997',
send_ident='53f9f1d1-1116-4751-b6ff-4fbe3e43d142',
recv_spec='tcp://127.0.0.1:9996', recv_ident='')
})
main = Server(
uuid="82209006-86FF-4982-B5EA-D1E29E55D481",
access_log="/logs/access.log",
tmp = [{'a': 'b'}, {'c': 'd'}]
for x in tmp:
for k in x.keys():
print("key: %s, value: %s" % (k, x[k]))
diff -Naurp gettext-0.18.1.1.orig/gettext-tools/configure gettext-0.18.1.1/gettext-tools/configure
--- 1/gettext-tools/configure 2010-06-06 13:12:20.000000000 -0700
+++ 2/gettext-tools/configure 2010-08-13 23:24:09.000000000 -0700
@@ -40606,7 +40606,9 @@ else
#include <stdlib.h>
#include <string.h> /* for strcpy */
/* The stpncpy prototype is missing in <string.h> on AIX 4. */
+#ifndef stpncpy
extern char *stpncpy (char *dest, const char *src, size_t n);
+#endif