Skip to content

Instantly share code, notes, and snippets.

@P3lUZa
P3lUZa / gist:72c3dfaa2c47a67525d0
Created April 26, 2015 07:05
Edit prism db files
sed -i '$ d' *.json
sed -i '$ d' *.json
echo ' // ## Aqui todo el codigo desde }' hasta ] ' | tee -a *.json
@P3lUZa
P3lUZa / gist:a8a4dfeb67745a3aa9fa
Created April 20, 2015 16:11
Block BitTorrent Tor relay
echo This is to block known signatures of BitTorrent activity.
echo Written by\: Mr\-Protocol
sudo iptables -t raw -A OUTPUT -m string --algo bm --string "GET /announce?info_hash=" -j DROP
sudo iptables -t raw -A PREROUTING -m string --algo bm --string "GET /announce?info_hash=" -j DROP
echo Blocking\: \"GET \/announce?info_hash=\"
sleep 1
sudo iptables -t raw -A OUTPUT -m string --algo bm --string "GET /scrape?info_hash=" -j DROP
sudo iptables -t raw -A PREROUTING -m string --algo bm --string "GET /scrape?info_hash=" -j DROP
echo Blocking\: \"GET \/scrape?info_hash=\"
sleep 1
require 'rubygems'
require 'nokogiri'
require 'fileutils'
require 'date'
# usage: ruby import.rb my-blog.xml
# my-blog.xml is a file from Settings -> Basic -> Export in blogger.
data = File.read ARGV[0]
doc = Nokogiri::XML(data)
@P3lUZa
P3lUZa / swype.py
Created June 26, 2014 04:06 — forked from krisys/swype.py
'''
The MIT License (MIT)
Copyright (c) 2013 Krishna Bharadwaj <krishna@krishnabharadwaj.info>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is