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
<?php | |
namespace Vita\UserBundle\Entity; | |
use Symfony\Component\Security\Core\User\UserProviderInterface; | |
use Symfony\Component\Security\Core\User\UserInterface; | |
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; | |
use Symfony\Component\Security\Core\Exception\UnsupportedUserException; | |
use Doctrine\ORM\EntityRepository; | |
use Doctrine\ORM\NoResultException; |
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
URL="http://adblockplus.mozdev.org/easylist/easylist.txt" | |
ACTION=/root/user.action | |
FILTER=/root/user.filter | |
FILE=$(basename ${URL}) | |
LIST=${FILE%\.*} | |
wget -qO ${FILE} ${URL} | |
echo -e "{ +block{${LIST}} }" > ${ACTION} | |
sed '/^!.*/d;1,1 d;/^@@.*/d;/\$.*/d;/#/d;s/\./\\./g;s/\?/\\?/g;s/\*/.*/g;s/(/\\(/g;s/)/\\)/g;s/\[/\\[/g;s/\]/\\]/g;s/\^/[\/\&:\?=_]/g;s/^||/\./g;s/^|/^/g;s/|$/\$/g;/|/d' ${FILE} >> ${ACTION} | |
echo "FILTER: ${LIST} Tag filter of ${LIST}" > ${FILTER} | |
sed '/^#/!d;s/^##//g;s/^#\(.*\)\[.*\]\[.*\]*/s|<([a-zA-Z0-9]+)\\s+.*id=.?\1.*>.*<\/\\1>||g/g;s/^#\(.*\)/s|<([a-zA-Z0-9]+)\\s+.*id=.?\1.*>.*<\/\\1>||g/g;s/^\.\(.*\)/s|<([a-zA-Z0-9]+)\\s+.*class=.?\1.*>.*<\/\\1>||g/g;s/^a\[\(.*\)\]/s|<a.*\1.*>.*<\/a>||g/g;s/^\([a-zA-Z0-9]*\)\.\(.*\)\[.*\]\[.*\]*/s|<\1.*class=.?\2.*>.*<\/\1>||g/g;s/^\([a-zA-Z0-9]*\)#\(.*\):.*[:[^:]]*[^:]*/s|<\1.*id=.?\2.*>.*<\/\1>||g/g;s/^\([a-zA-Z0-9]*\)#\(.*\)/s|<\1.*id=.?\2.*>.*<\/\1>||g/g;s/^\[\([a-zA-Z]*\).=\(.*\)\]/s|\1^=\2>||g/g;s/\^/[\/\&:\?=_]/g;s/\.\([a-zA-Z0-9]\)/\\.\1/g' ${FILE} |
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
function getAjaxUrl(){return"/wp-admin/admin-ajax.php"}function isMobile(){return navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry)/)}function isExternalLink(c){var b,d,a;a=$(c).attr("href");if(a==="#"){return false}d=$("base").attr("url").split("//")[1].split("/")[0];b=a.split("//")[1].split("/")[0];return d!==b}function isPage(a){return $(a).parent().hasClass("menu-item-object-page")}function isPost(b){var a=$(b).attr("href");return a.indexOf("?p=")!==-1||a.indexOf("?page_id=")!==-1}function isHome(a){return $(a).parent().hasClass("menu-item-home")}function isArrow(a){return $(a).hasClass("arrow")}function getNumberOfArticles(){return POSTCOUNT}function getArticlesWidth(){return 280*getNumberOfArticles()+280}function getPostId(a){return $(a).length!==0?parseInt($(a).attr("id").split("-")[1]):false}function getPostIdFromLink(a){var b;if(!isExternalLink(a)&&isPost(a)){b=$(a).closest("article");return getPostId(b)}else{return false}}function hasPreviousPosting(c){var a,b;a=getPostId(c);if(a===fa |
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
function getAjaxUrl() { | |
return '/wp-admin/admin-ajax.php'; | |
} | |
function isExternalLink(link) { | |
var linkurl, baseurl, href; | |
href = $(link).attr('href'); | |
if (href === '#') return false; |
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
function getNumberOfPosts() { | |
var ajaxUrl, result; | |
ajaxUrl = getAjaxUrl(); | |
return $.ajax({ | |
url: ajaxUrl, | |
type: 'GET', | |
data: {"action": "numberofposts"}, | |
dataType: "text", |
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
function getNumberOfPosts() { | |
var ajaxUrl; | |
ajaxUrl = getAjaxUrl(); | |
return $.ajax({ | |
url: ajaxUrl, | |
type: 'GET', | |
data: {"action": "numberofposts"}, | |
success: function(data) { |
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
#!/bin/bash | |
LOGS=$(find /var/www/ -name access.log) | |
ARGS=$(for i in $LOGS; do echo "-f ${i}"; done) | |
apachetop -q -l -p ${ARGS} |
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
<?php | |
require_once( dirname(__FILE__) . '/www/wp-load.php' ); | |
$mysql_host = "localhost"; | |
$mysql_user = "stickeraward"; | |
$mysql_password = "**********"; | |
$mysql_db = "stickeraward"; | |
if ( mysql_connect($mysql_host, $mysql_user, $mysql_password) ) { |
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
var badesk = { | |
register: false, | |
password: false, | |
username: false, | |
news: [], | |
schedule: false, | |
documents1: [], | |
documents2: [], | |
marks: false, | |
lastSynchronized: 0, |
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
<?php | |
ini_set('default_charset', 'UTF-8'); | |
$debug = 1; | |
$debug_cookie = 0; | |
$mode = NULL; | |
$matrikel = NULL; | |
$password = NULL; |