Skip to content

Instantly share code, notes, and snippets.

2015-07-26 18:17:37 -0400
./configure
--disable-dependency-tracking
--disable-silent-rules
--prefix=/usr/local/Cellar/wireshark/1.12.6
--with-gnutls
--disable-gtktest
--with-qt
@tzudot
tzudot / mandelbrot.sql
Last active August 29, 2015 14:25 — forked from rupey/mandelbrot.sql
Mandelbrot plot in postgres
WITH RECURSIVE
x(i) AS ( VALUES (0)
UNION ALL SELECT i + 1
FROM x
WHERE i < 101),
Z(Ix, Iy, Cx, Cy, X, Y, I) AS (
SELECT
Ix,
Iy,
X :: FLOAT,
# it is forked from https://github.com/xijo/reverse-markdown/blob/master/reverse_markdown.rb
require 'rexml/document'
require 'benchmark'
include REXML
include Benchmark
class ReverseMarkdown
# set basic variables:
# - @li_counter: numbering list item (li) tags in an ordered list (ol)
@tzudot
tzudot / stuns
Last active August 29, 2015 14:02 — forked from zziuni/stuns
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun.ekiga.net
stun.ideasip.com
#!/usr/bin/env ruby
require 'nokogiri'
require 'open-uri'
require 'progressbar'
def parse_url(url, formats)
response = open(url, 'User-Agent' => 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1;Trident/5.0)')
page = Nokogiri.parse(response.read)
links = page.css('a')