Skip to content

Instantly share code, notes, and snippets.

require.config({
paths: {
jquery: 'libs/jquery/jquery-2.0.3.min',
moment: 'libs/moment/moment.min',
bootstrap: 'libs/bootstrap/bootstrap.min',
daterangepicker: 'libs/daterangepicker/daterangepicker',
functions: 'libs/jquery/functions',
config: 'config',
add: 'add',
ad: 'ad',
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
audio_output {
type "httpd"
name "My HTTP Stream"
encoder "lame" # optional, vorbis or lame
port "1234"
## bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
quality "5.0" # do not define if bitrate is defined
## bitrate "128" # do not define if quality is defined
format "44100:16:1"
max_clients "10" # optional 0=no limit
[root@kirahvi etc]# dmesg |grep CIFS
[ 18.512048] CIFS VFS: Send error in SessSetup = -13
[ 18.522005] CIFS VFS: cifs_mount failed w/return code = -13
[ 240.634458] CIFS VFS: Send error in SessSetup = -13
[ 240.643437] CIFS VFS: cifs_mount failed w/return code = -13
[ 245.644641] CIFS VFS: Malformed UNC in devname.
[ 258.890923] CIFS VFS: Send error in SessSetup = -13
[ 258.898654] CIFS VFS: cifs_mount failed w/return code = -13
[ 265.722004] CIFS VFS: Send error in SessSetup = -13
[ 265.730770] CIFS VFS: cifs_mount failed w/return code = -13
# There can be multiple urls in a line, handle each of them
matchUrl.forEach (u) ->
data = {}
data.url = u
data.nick = from
data.channel = to
# Get the title of the url if there is any
url.getTitle data.url, (err, resp) ->
if err
regex: \b(ftp|https?):\/\/([a-zA-Z0-9]+\.)?([a-zA-Z0-9äÄöÖ_-]+)(:[0-9]+)?\.([a-z]{2,})([a-zA-Z0-9_%\/\?\#\&\=.-]*)\b
match string: so is this something: http://kkoo.h-ost.com:8080/p/a/test-ing/t/h?query=string#hash gahasfdfsa funny
matching: http://kkoo.h-ost.com
public function loginUser() {
try {
$user = $this->_db->prepare("SELECT username, password FROM users WHERE username=:username AND password=:password LIMIT 1");
$user->bindValue(':username', $this->username, PDO::PARAM_STR);
$user->bindValue(':password', $this->hashPassword($this->password), PDO::PARAM_STR);
$user->execute();
if($user->rowCount() > 0) {
return true;
} else {
return 'ERRNO11';
$user = $this->_db->prepare("SELECT username, password FROM users WHERE username=:username LIMIT 1");
$user->bindValue(':username', $this->username);
$user->execute();
echo $user->queryString;
// "SELECT username, password FROM users WHERE username=':username' LIMIT 1"
#!/usr/bin/python2
import socket
import sys
import re
import time
import urllib2
from pymongo import MongoClient
from lxml.html import parse
output = url + " was posted " + old["timestamp"].strftime("%d.%m.%Y %H:%M:%S") + " by " + old["username"]