This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using Microsoft.Win32; | |
using System.IO; | |
using System.Security.Principal; | |
namespace regtest | |
{ | |
class Program |
This file contains hidden or 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
class ReThinkingSphinx | |
QUERIES = { | |
:Post => { | |
:default => "SELECT * FROM posts WHERE MATCH (title, body) AGAINST (?)", | |
:boolean => "SELECT * FROM posts WHERE MATCH (title, body) AGAINST (? IN BOOLEAN MODE)" | |
}, | |
:Event => { | |
:default => "SELECT * FROM events WHERE MATCH (name, description) AGAINST (?)", | |
:boolean => "SELECT * FROM events WHERE MATCH (name, description) AGAINST (? IN BOOLEAN MODE)" | |
}, |
This file contains hidden or 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
# make sure to include the needed pagination modules | |
require 'will_paginate' | |
require 'will_paginate/view_helpers/sinatra' | |
module WillPaginate | |
module Sinatra | |
module Helpers | |
include ViewHelpers | |
def will_paginate(collection, options = {}) |
This file contains hidden or 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
set :user, "root" | |
set :use_sudo, false | |
set :scm, :git | |
set :repository, 'file://path/to/your/local/repo' | |
set :config_dir, '<your webserver has to read this dir>' | |
set :deploy_to, '<the webroot of your sinatra application>' | |
set :deploy_via, :copy | |
set :copy_exclude, [".git", ".gitignore", "config", "Gemfile"] |
This file contains hidden or 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
/* | |
* | |
* Torsten Flammiger, 2012 | |
* (C) AS IS | |
* | |
*/ | |
#include "stdafx.h" | |
#include "windows.h" | |
#include <iostream> |
This file contains hidden or 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
// ==UserScript== | |
// @name CB1000R | |
// @namespace NS | |
// @description CB1000R Forum | |
// @include http://cb1000r-freunde.de/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
// header |
This file contains hidden or 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
require 'nokogiri' | |
require 'open-uri' | |
# 3SAT mediathek URL | |
base_uri = "http://www.3sat.de/mediathek" | |
# 3SAT rss feed url | |
rss_feed = "#{base_uri}/rss/mediathek.xml" | |
# 3SAT webservice |
This file contains hidden or 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
require 'json' | |
require 'net/http' | |
# %s gets replaced with yyyy-mm-dd/yyyy-mm-dd | |
URL = "http://www.arte.tv/papi/tvguide/epg/schedule/D/L3/%s/%s.json" | |
#### | |
## lets get started | |
#### |
This file contains hidden or 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/classes/database/Postgres.php b/classes/database/Postgres.php | |
index ee19990f..e823fa7b 100755 | |
--- a/classes/database/Postgres.php | |
+++ b/classes/database/Postgres.php | |
@@ -4184,8 +4184,7 @@ class Postgres extends ADODB_base { | |
INNER JOIN pg_catalog.pg_namespace n ON n.oid = p.pronamespace | |
INNER JOIN pg_catalog.pg_language pl ON pl.oid = p.prolang | |
LEFT JOIN pg_catalog.pg_user u ON u.usesysid = p.proowner | |
- WHERE NOT p.proisagg | |
- AND {$where} |
This file contains hidden or 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
########################################################################## | |
# If all davical updates failed: create a new instance on your new system | |
# and transfer your data with this script and curl from your old server | |
# to your new server. The example below does this with your calendar data. | |
# Change URL, caldav_type and file extension and you can transfer your | |
# vcards as well. I did this a few days ago and it worked very well. | |
########################################################################## | |
require 'pg' |
OlderNewer