Skip to content

Instantly share code, notes, and snippets.

View angrytoast's full-sized avatar

Gary Gao angrytoast

View GitHub Profile
"""Simple HTTP Server.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
__version__ = "0.6"
@angrytoast
angrytoast / tech-server.html
Created April 4, 2015 02:19
sample server tech spec
<h3>Minimum Hardware Requirements</h3>
<p>The Tableau Server installer checks for the bare minimum set of system specs required to have a Tableau Server operate. The installer will not continue installing on computers that do not meet these minimums: </p>
<ul>
<li>
<strong>64-bit computers</strong><br>
<ul>
<li>4 cores</li>
<li>8 GB system memory</li>
<li>15 GB minimum free disk space</li>
@angrytoast
angrytoast / peepspicker.yml
Last active August 29, 2015 14:18
Peeps be pickin
---
name: Gary Gao
email: ggao@tableau.com
favSkills:
- api
- js
- performance
- new
- ux
- css
@angrytoast
angrytoast / prtemplate.js
Created April 27, 2015 23:49
Pull Request Template Bookmarklet
javascript:(function() {var e = jQuery('[id^=pull_request_body]');if (e.length) {e.val('## What? Why?\nWhat was changed. Why did are we making this change?\n\n## Release Notes\n- Description text for the weekly report.\n- Description text for the weekly report.\n\n## Deployment Steps\nWhat needs to be done on day of launch.\n\n## Please Review\n- [ ] @REVIEWER');}})();
location ~ \.php$ {
try_files $uri = 404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
@angrytoast
angrytoast / wat.css
Last active August 29, 2015 14:22
ABP sponsor blocking
::content .sponsertop, ::content .sponslink, ::content .sponsor-728, ::content .sponsor-ad, ::content .sponsor-ad-wrapper, ::content .sponsor-area, ::content .sponsor-block, ::content .sponsor-bottom, ::content .sponsor-box, ::content .sponsor-btns, ::content .sponsor-left, ::content .sponsor-link, ::content .sponsor-links, ::content .sponsor-logo, ::content .sponsor-module-target, ::content .sponsor-post, ::content .sponsor-promo, ::content .sponsor-right, ::content .sponsor-services, ::content .sponsor-spot {
display: none;
}
@angrytoast
angrytoast / problem.json
Created June 4, 2015 18:47
URI issue in jewel profile
{
showInProfile: false,
ownerId: 35720,
workbookRepoUrl: "2014KEXPPlaylistAnalysisfinal2",
firstPublishDate: 1428423217421,
title: "What Music Mattered Most in 2014",
description: "All the songs KEXP played in 2014",
lastPublishDate: 1428423727462,
permalink: "http://www.jewelloree@.com",
viewCount: 12,
@angrytoast
angrytoast / intl.json
Last active August 29, 2015 14:23
intl IP json
{
"JP": "27.134.192.12",
"CN": "42.156.128.123",
"AU": "59.154.0.120",
"DE": "2.160.0.125",
"SG": "14.100.0.120",
"BR": "177.16.0.120",
"ZA": "41.48.0.120",
"CA": "23.16.0.120",
"US": "17.20.45.12"
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = white bold
frag = magenta ul
old = red
@angrytoast
angrytoast / sublime.json
Created October 8, 2015 01:10
sublime settings
{
"alignment_chars":
[
"=",
":"
],
"alignment_space_chars":
[
"=",
":"