- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
- https://mirror1.malwaredomains.com/files/justdomains
- http://sysctl.org/cameleon/hosts
- https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
- https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
- https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
- https://hosts-file.net/ad_servers.txt
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
#!/usr/local/bin/ruby | |
# Selenium script to scrape the WA Police Crime Statistics search | |
# Author: Matt Didcoe <matt@mattdidcoe.com> | |
# Last Modified: 2013-05-16 18:39 | |
# Input: CSV file of ABS suburbs | |
# Output: JSON of ABS Suburb Code, Suburb Name and year summary statistics | |
require 'rubygems' | |
require 'logger' | |
require 'csv' |
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
My traceroute [v0.75] | |
ruby-2.local (0.0.0.0) Sun Nov 1 11:35:56 2009 | |
Change Packet Size: 0 | |
Size Range: 28-4470, < 0:random. | |
Host Loss% Snt Last Avg Best Wrst StDev | |
1. <<my router>> 0.0% 64 1.7 3.9 0.8 19.7 4.6 | |
2. lo1.l1-45sgt-7206-e.wa.amnet.net.au 0.0% 63 6.9 11.7 6.7 45.1 7.6 | |
3. rahrahree.amnet.net.au 0.0% 63 9.3 18.6 6.4 200.7 31.9 | |
4. ge1-1.br01.wa.amcom.net.au 0.0% 63 8.7 19.2 6.5 126.8 28.8 | |
5. aarnet.ix.waia.asn.au 0.0% 63 7.3 12.6 6.4 62.2 9.4 |
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
require 'httparty' | |
class SMS | |
include HTTParty | |
def self.send(game, player) | |
if !player.mobile.nil? | |
message = "Hey #{player.name_first},\nYour game for today has changed! Details are\n Time: #{game.played_at.strftime("%H:%M")}\n Venue:#{game.venue.loc_name}" | |
message = CGI::escape(message) | |
url = "http://sms.didcoe.id.au/sendto/#{api}/#{player.mobile}/#{message}" | |
res = get(url) |
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
The below Sinatra code works with URLs like: | |
/c/blahblah | |
and | |
/c/http://blah.com/something.php | |
or | |
/c/google.com |
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
class LegacyBase < ActiveRecord::Base | |
establish_connection( | |
:adapter => "mysql", | |
:host => "localhost", | |
:username => "", | |
:password => "", | |
:database => "ws_prosecutions" | |
) | |
end |
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
/** | |
* Write a description of class TextAnalyser here. | |
* | |
* @author Matt Didcoe | |
* @version 0.1 | |
*/ | |
import java.lang.*; | |
import java.util.*; | |
public class TextAnalyser { |
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
#!/bin/sh | |
# cd into matching gem directory ("cd -" friendly) | |
cdgem() { | |
local gempath=$(gem env gemdir)/gems | |
if [[ $1 == "" ]]; then | |
cd $gempath | |
return | |
fi | |
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
# ----------- | |
# General | |
# ----------- | |
alias ..='cd ..' | |
alias ll='ls -lh' | |
alias la='ls -la' | |
alias ps='ps -ax' | |
alias du='du -hc' | |
alias cd..='cd ..' | |
alias today='date +"%A, %B %d, %Y"' |
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
>> Chronic.parse("noon")..Chronic.parse("noon tomorrow") | |
=> Sat Mar 28 12:00:00 0900 2009..Sun Mar 29 11:00:00 0800 2009 | |
>> Chronic.parse("noon")..Chronic.parse("one oclock tomorrow") | |
=> Sat Mar 28 12:00:00 0900 2009..Sun Mar 29 12:00:00 0800 2009 |
NewerOlder