Skip to content

Instantly share code, notes, and snippets.

View filipenf's full-sized avatar
:shipit:

Filipe Felisbino filipenf

:shipit:
View GitHub Profile
@filipenf
filipenf / fullscreen-rotating-browser.py
Created April 20, 2015 13:59
A full screen webkit browser that rotates between URLs
#!/usr/bin/env python
import sys
import gobject
import gtk
import webkit
from itertools import cycle
class WebBrowser(gtk.Window):
@filipenf
filipenf / gist:b75761dbef109baa2be5
Last active August 29, 2015 14:07
Test hosts by name
#!/bin/bash
zonefile=$1
zone=$2
test_hosts() {
for host in "$@"; do
host_=$(echo $host|awk -F ':' '{print $1}')
port_=$(echo $host|awk -F ':' '{print $2}')
echo | timeout 3 openssl s_client -connect $host_:$port_ >/dev/null 2>&1;
#!/bin/bash
export https_proxy="127.0.0.1:3333"
for i in `seq 1 2000` ; do
wget https://www.kernel.org/pub/linux/bluetooth/bluez-5.12.tar.xz bluez-5.1-$i.tar.xz
sleep 0.3
done