Skip to content

Instantly share code, notes, and snippets.

! Version: 201809240712
! Title: EasyList
&act=ads_
-2/ads/
###zztextad
##.AD-POST
fropper.com,themonthly.com.au#@##ad-container
apnaohio.com,ifokus.se,miradiorumba.com#@##ad-header
.com/b?z=$domain=couchtuner.eu|zzstream.li
/\:\/\/data.*\.com\/[a-zA-Z0-9]{30,}/$third-party,xmlhttprequest
@bontoJR
bontoJR / light.sh
Created August 17, 2015 14:35
Syntax highlighting function for Mac
function light() {
if [ -z "$2" ]
then src="pbpaste"
else
src="cat $2"
fi
$src | highlight -O rtf --syntax $1 --font=Inconsolata -s solarized-light --font-size 24 | pbcopy
}
/**
* Stylesheet that implements Entypo font
* http://www.entypo.com/
*
* Autor Yordan Ivanov
* yordan.t.ivanov@gmail.com
*/
@font-face {
font-family: 'EntypoRegular';
@bontoJR
bontoJR / notify.rb
Created December 12, 2012 20:46
Basic APN server built on top of Sinatra
# notify.rb
require 'sinatra/base'
require 'sinatra/json'
require 'grocer'
class App
attr_accessor :bundleID, :pusher_dev, :pusher_prod
end
@bontoJR
bontoJR / gist:4249920
Created December 10, 2012 10:48
Install Ruby 1.8.7 with zlib on Ubuntu Server 12.04 LTS
# If you have 1.8.7 already installed
$ rmv remove 1.8.7
$ rvm pkg install zlib
$ rvm install 1.8.7 --with-zlib-dir=$rvm_path/usr
@bontoJR
bontoJR / myBlog.rb
Created December 9, 2012 18:24
data_mapper configuration for Sinatra (over Rack) web app
require 'sinatra/base'
require 'sinatra/json'
require 'data_mapper'
#If you want the logs displayed you have to do this before the call to setup
DataMapper::Logger.new($stdout, :debug)
#Set the default lenght of String
DataMapper::Property::String.length(255)
@bontoJR
bontoJR / MCCard.m
Created November 17, 2011 11:52
Realistic card turn with Cocos2d
- (void)turnCard
{
if ([self isFaceUp]) {
[self flipHide];
self.faceUp = NO;
} else {
self.faceUp = YES;
[self flipReveal];
}
}