This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** createuser -d -R -S -P test | |
* => set password to "a b c" | |
*/ | |
$dsn = "pgsql:dbname=test;host=localhost"; | |
$user = "test"; | |
$psw = "a b c"; | |
try{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/3rdparty/MDB2/Driver/Manager/pgsql.php b/3rdparty/MDB2/Driver/Manager/pgsql.php | |
index f2c2137..3e70f3a 100644 | |
--- a/3rdparty/MDB2/Driver/Manager/pgsql.php | |
+++ b/3rdparty/MDB2/Driver/Manager/pgsql.php | |
@@ -363,6 +363,7 @@ class MDB2_Driver_Manager_pgsql extends MDB2_Driver_Manager_Common | |
return MDB2_OK; | |
} | |
+ $unquoted_name = $name; | |
$name = $db->quoteIdentifier($name, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define postgresql::db ($name, $ensure=present){ | |
case $ensure { | |
present: { | |
exec { "Create $name postgres db": | |
command => "createdb $name", | |
unless => "test \$(psql -tA -c \"SELECT count(*)=1 FROM pg_catalog.pg_database where datname='${name}';\") = t", | |
} | |
} | |
absent: { | |
exec { "Remove $name postgres db": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.Selected .cdmHeader { | |
background-color: #91C3EE; | |
font-weight: bold; | |
} | |
div.cdmFeedTitle > div:first-child { | |
float: left !important; | |
margin-right: 5px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
START=yes | |
LS_JAR=/opt/logstash/logstash-1.1.12-flatjar.jar | |
#Options not supported in some debian | |
LS_JAVA_OPTS= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1470,1477c1470 | |
< void removeChar(char *str, char garbage) { | |
< char *src, *dst; | |
< for (src = dst = str; *src != '\0'; src++) { | |
< *dst = *src; | |
< if (*dst != garbage) dst++; | |
< } | |
< *dst = '\0'; | |
< } | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/jython | |
''' | |
This code is released under the WTFPL | |
It tries to fix Urbis osm files (missing addresses in relation ) | |
''' | |
from javax.swing import JOptionPane | |
from org.openstreetmap.josm import Main | |
import org.openstreetmap.josm.command as Command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://download.geofabrik.de/europe/belgium-latest.osm.pbf | |
osm2pgsql/osm2pgsql -S /home/chaos/os/default.style -s -v -x -j -U osm -d gis -H 127.0.0.1 -W belgium-latest.osm.pbf --bbox 3.981,50.645,4.761,51.053 | |
#then sql =) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package GCPlugins::GCfilms::GCAllocine; | |
################################################### | |
# | |
# Copyright 2005-2010 Christian Jodar | |
# | |
# This file is part of GCstar. | |
# | |
# GCstar is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from celery import Celery, group, chain, chord | |
app = Celery('tasks', broker='redis://localhost:6379/0', backend='redis://localhost:6379/0?new_join=1') | |
app.conf.CELERY_CHORD_PROPAGATE = True | |
@app.task | |
def add(x): | |
if(x == 3): | |
raise Exception('arg') |
OlderNewer