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
""" | |
forum.py - Show a link to the xbian forum | |
Copyright 2013, Edward Powell - embolalia.net | |
Licensed under the Eiffel Forum License 2. | |
http://willie.dfbta.net | |
""" | |
import willie | |
import random | |
@willie.module.commands('8') |
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
#################### | |
# GZIP COMPRESSION # | |
#################### | |
SetOutputFilter DEFLATE | |
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html | |
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip |
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 | |
/** | |
* ownCloud - passman | |
* | |
* This file is licensed under the Affero General Public License version 3 or | |
* later. See the COPYING file. | |
* | |
* @author Sander Brand <[email protected]> | |
* @copyright Sander Brand 2014 | |
*/ |
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
function make_draggable(elements) { | |
/* Elements is a jquery object: */ | |
elements.draggable({ | |
/* containment: 'parent',*/ | |
start: function (evt, ui) { | |
ui.helper.css('z-index', ++zIndex); | |
var zoom = $('#notes').css('zoom'); | |
pointerY = (evt.pageY - $('#notes').offset().top) / zoom - parseInt($(evt.target).css('top')); |
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
poiTypes = { | |
shop = ['supermarket','bakery','car','stationery','hairdresser','mobile_phone','convenience','newsagent','kiosk','computer','clothes','variety_store','hearing_aids','florist','handicraft','candle','antique','pet','massage','electronics','laundry','doityourself','sports','jewelry','musical_instrument','chemist','shoes','beverages','toys','fishing','copyshop','beauty','bag','paint','bicycle','communication','furniture','alcohol','deli','optician','books','car_repair','butcher','outdoor','motorcycle','estate_agent','photo','gift','travel_agency','tea','wine','medical_supply','department_store','dry_cleaning','video','second_hand','greengrocer','erotic','curtain','haberdashery','garden_centre','art','fashion','bags','accessoires','confectionery','ice_cream','organic','music','boutique','interior','kitchen','vacant','tattoo','mall','camera','gallery','rc_models','coffee','bicycle_rental','photographer','ticket','charity','Shisha','hats','funeral_directors','locksmith','fabric','hardware','shoe_r |
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/bash | |
BRANCH="stable8" | |
ROOTDIR="$PWD" | |
WWWUSER="www-data" | |
WWWGROUP="www-data" | |
if [ $(id -u) != 0 ]; then | |
printf "**************************************\n" | |
printf "* Error: You must run this with sudo. *\n" | |
printf "**************************************\n" | |
exit 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
<?php | |
// base class with member properties and methods | |
class BBScraper | |
{ | |
var $baseUrl; | |
private $user; | |
private $sid; | |
public $fetchedTopics = array(); | |
public $topicReplys = array(); |
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
"websocket": { | |
"start_embedded_server": true, | |
"server_url": "0.0.0.0:4000", | |
"remote_control": 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
#!/usr/bin/env python | |
import os | |
import subprocess | |
from xml.dom import minidom | |
from pprint import pprint | |
import git | |
import urllib, json | |
import re | |
import wget | |
import zipfile |
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
var api_request = function (endpoint, method, data, callback) { | |
API.cookies.getAll({url: _API.host}).then(function (cookies) { | |
if(!cookies){ | |
make_request(); | |
return; | |
} | |
if(cookies.length === 0){ | |
make_request(); | |
return; | |
} |
OlderNewer