Skip to content

Instantly share code, notes, and snippets.

View EvanDotPro's full-sized avatar

Evan Coury EvanDotPro

  • Roave.com
  • USA»E»SS»OA»MW»LG»VSC»TU
  • X @EvanDotPro
View GitHub Profile
<html>
<head>
<title>Fishing Map - Fish Connection</title>
<style>
body {
background-color: #383838;
margin: 0px;
padding: 0px;
height: 100%;
display: flex;
<?php
// All PHP files start with <?php
// Two slashes is a comment, as you can see.
// We are going to start with variables.
// Variables are just like, a "container" to hold values.
// All variables in PHP start with a $ sign.
// Their names must start with a letter, not a number
$name = "Max"; // This is a string
# This is how I built the list:
curl -s -O http://s3.amazonaws.com/alexa-static/top-1m.csv.zip ; unzip -q -o top-1m.csv.zip top-1m.csv ; head -1000 top-1m.csv | cut -d, -f2 | cut -d/ -f1 > topsites.txt
# Always fun to see how complicated you can make a one-liner!
i=1; cat topsites.txt | while read line; do D=$line; result=$(whois "domain $D" 2>&1); while [[ $result =~ "fgets: Connection reset by peer" ]]; do result=$(whois "domain $D" 2>&1); done; godaddy=$(echo $result | grep -i "godaddy" | wc -l); echo -ne "$i.\t"; if [[ $godaddy > 0 ]]; then echo "Y - $D"; else echo "N - $D"; fi; i=$(($i+1)); done;
@EvanDotPro
EvanDotPro / gittyup.sh
Created December 21, 2011 17:15
Easily keep master in sync with upstream.
####################################################################################
## ##
## gittyup() - Easily keep master in sync with upstream. ##
## ##
## Author: Evan Coury, http://blog.evan.pro/ ##
## URL: https://gist.github.com/1506822 ##
## ##
## This bash function is a simple shortcut for keeping your local (and public ##
## fork / origin remote) master branch up to date and in sync with the upstream ##
## master. To use gittyup(), simply drop this in your ~/.bashrc. ##