Skip to content

Instantly share code, notes, and snippets.

Justin Hileman bobthecow

Block or report user

Report or block bobthecow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:430956
#!/usr/bin/env python
""" TapDat - Simple VPN Setup.
import re
import sys
from commands import getoutput as cmd
def main():
View gist:468498
You learned to use a pastebin? Your mom would be so proud!
View gist:637794
Apple Developer
Member Center
Search Developer
View gist:815088
// unit test:
foreach(array(Order::BILLING, Order::SHIPPING) as $type){
${$type."Address"} = new CustomerAddress();
${$type."Address"}->setFirstName("{$type} First");
${$type."Address"}->setLastName("{$type} Last");
${$type."Address"}->setAddress1("{$type} 123 Main Street");
${$type."Address"}->setAddress2("{$type} Apt 123");
View gist:942467
My Personal Credit Card
Number: 4111111111111111
CVV: 111
Expires: You're a dick for looking at this
View test.php
$this->returnCallback(function() use (&$user2) {
return $user2->getSalt();
View html_compressor.rb
require 'html_compressor'
class HtmlCompressor < Nanoc3::Filter
identifier :html_compressor
# Runs the content through htmlcompressor.
# This method optionally takes options to pass directly to htmlcompressor
# @param [String] content The content to filter
View gist:4774286
# if you want an icon, add it to your attributes:
# menu_link('Foo', '/foo/', icon: 'bar')
def menu_link(text, target, attributes={})
# Prepend the icon, if supplied
if icon = attributes.delete(:icon)
text = "<i class='#{icon}'></i>#{text}"
# Build a link
View radio_mustach_example.html
<!DOCTYPE html>
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/mustache.js"></script>
<div id="formWrapper">
bobthecow /
Last active Mar 7, 2020 — forked from anvaka/
Top GitHub users by total number of stars

I was playing with GitHub Archive recently. Out of curiosity I ran this query:

SELECT COUNT(repository_owner) as totalStars, repository_owner
FROM [githubarchive:github.timeline] 
WHERE type = 'WatchEvent'
AND repository_organization IS NULL
GROUP BY repository_owner
ORDER BY totalStars DESC
You can’t perform that action at this time.