-
Go to ublock settings and select the "Filters" tab
-
In the box, copy the following filter rule in:
@@||google-analytics.com^
-
Click "Apply changes"
-
You're done
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
// TODO: watch for renaming of files or adding/deleting files | |
// Requirements | |
var gulp = require('gulp') | |
, changed = require('gulp-changed') | |
, clean = require('gulp-clean') | |
, coffee = require('gulp-coffee') | |
, compass = require('gulp-compass') | |
, concat = require('gulp-concat') | |
, minifyCSS = require('gulp-minify-css') |
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
# UTF-8 on for all windows | |
set-option -g utf8 on | |
set-option -g history-limit 10000 | |
set-option -g prefix C-a | |
# Resize keys | |
bind u resize-pane -U | |
bind j resize-pane -D | |
bind h resize-pane -L | |
bind k resize-pane -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
<?php | |
add_filter('tribe_get_events_title', 'change_upcoming_events_title'); | |
function change_upcoming_events_title($title) { | |
//We'll change the title on upcoming and map views | |
if (tribe_is_upcoming() or tribe_is_map() or tribe_is_photo()) return 'Upcoming Parties'; | |
//In all other circumstances, leave the original title in place | |
return $title; |
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 | |
function override_mce_options($in) { | |
$in['forced_root_block'] = false; | |
return $in; | |
} | |
add_filter('tiny_mce_before_init', 'override_mce_options'); | |
?> |
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
# Upstream to abstract backend connection(s) for php | |
upstream php { | |
server unix:/tmp/php-cgi.socket; | |
server 127.0.0.1:9000; | |
} | |
server { | |
server_name example.com; | |
root /var/www; |
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 | |
/** | |
* Custom error handling for hhvm | |
* Implemented in EPSInventory-API(https://github.com/epsclubs/EPSInventory-API) on Jan 5, 2015 | |
* Referenced from: http://stackoverflow.com/questions/24524222/display-fatal-notice-errors-in-browser | |
*/ | |
// Usage: Call `set_error_handler(error_handler);` at the top of any php or hh file running on hhvm | |
set_error_handler(error_handler); |
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 | |
if (!is_blog_installed()) { return; } | |
$my_server_port = ((!empty ($_SERVER ['SERVER_PORT']) AND $_SERVER ['SERVER_PORT'] <> '80') ? (":" . $_SERVER ['SERVER_PORT']) : ''); | |
$my_server_name = (!empty ($my_server_port) ?($_SERVER['SERVER_NAME'] . $my_server_port) : $_SERVER['SERVER_NAME'] ); | |
if ('http://' . $my_server_name . '/wp' == get_option('home')) { | |
update_option('siteurl', 'http://' . $my_server_name . '/wp'); | |
update_option('home', 'http://' . $my_server_name); | |
update_option('upload_path', $_SERVER['DOCUMENT_ROOT'] . '\media'); |
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
# This file should be in /etc/monit/conf.d | |
check process hhvm with pidfile /var/run/hhvm/pid | |
group hhvm | |
# Start program calls our custom script from above | |
start program = "/usr/local/sbin/start_hhvm.sh" | |
stop program = "/usr/sbin/service hhvm stop" | |
if failed unixsocket /var/run/hhvm/hhvm.sock then restart | |
if mem > 400.0 MB for 1 cycles then restart | |
if 5 restarts with 5 cycles then timeout |
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
// Ah, Big Gulp's eh? Welp, see ya later. | |
var gulp = require('gulp'), | |
gutil = require('gulp-util'), | |
c = require('chalk'), | |
clean = require('gulp-clean'), | |
imagemin = require('gulp-imagemin'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
jshint = require('gulp-jshint'), | |
map = require('map-stream'), |
OlderNewer