Skip to content

Instantly share code, notes, and snippets.

View karagenit's full-sized avatar

Caleb Smith karagenit

View GitHub Profile
#!/usr/bin/env bash
if [ ! $1 ]
then
echo "Usage: fsearch [STRING]"
exit
fi
grep -nr . -e $1
#!/usr/bin/env ruby
require 'uri'
# Helper to get hostnames from referrer fields
def get_host(url)
begin
URI.parse(url).host.to_s
rescue StandardError
''