This file contains hidden or 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
| func checkLogs(c appengine.Context, w http.ResponseWriter, r *http.Request) { | |
| now := time.Now() | |
| query := &log.Query{ | |
| StartTime: now.Add(-time.Hour), | |
| EndTime: now, | |
| Incomplete: true, | |
| AppLogs: true, | |
| ApplyMinLevel: true, | |
| MinLevel: 3, // in linux syslog, 3 = error | |
| } |
This file contains hidden or 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
| import pandas as pd | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from matplotlib import collections as collections | |
| from matplotlib.patches import Rectangle | |
| from itertools import izip, cycle | |
| def missmap(df, ax=None, colors=None, aspect=4, sort='descending', |
This file contains hidden or 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
| sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
| sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
This file contains hidden or 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
| // | |
| // GaggleMessengerErrorTests.swift | |
| // GaggleMessenger | |
| // | |
| // Created by Andrew Halls on 9/3/14. | |
| // Copyright (c) 2014 Gaggle. All rights reserved. | |
| // | |
| import Foundation | |
| import XCTest |
This file contains hidden or 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
| /** | |
| FIXME: Box exists to prevent the "Unimplemented IR generation feature non-fixed multi-payload enum layout" error. */ | |
| final class Box<T> { | |
| let value: T | |
| init(_ value: T) { | |
| self.value = value | |
| } | |
| } |
This file contains hidden or 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
| # graphite-web install is hardcoded in setup.cfg to /opt/graphite | |
| sudo mkdir /opt/graphite | |
| sudo chown brad.users /opt/graphite | |
| # run under python2.7 virtualenv | |
| virtualenv --python=python2.7 ~/ve/graphite | |
| source ~/ve/graphite/bin/activate | |
| # install the necessary python packages (simplejson is for flot graphs) | |
| pip install graphite-web carbon whisper django django-tagging uwsgi simplejson |
This file contains hidden or 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
| // Process github event data exports. | |
| // | |
| // Go here for more info: http://www.githubarchive.org/ | |
| package main | |
| import ( | |
| "compress/gzip" | |
| "encoding/json" | |
| "io" | |
| "log" |
This file contains hidden or 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/bash | |
| set -e | |
| if [[ $# -lt 2 ]] | |
| then | |
| echo "Usage: $0 <filename.p12> <key-name: ie. app-free-dev>" | |
| exit | |
| fi |
This file contains hidden or 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 | |
| # GCC | |
| ## Prerequisites for GCC | |
| ## http://gcc.gnu.org/install/prerequisites.html | |
| ## Installing GCC: Configuration | |
| ## http://gcc.gnu.org/install/configure.html | |
| GCC_VER=4.7.1 | |
| WORK_DIR=$HOME/Builds/GCC |
This file contains hidden or 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
| Appirater | |
| AQGridView | |
| AutoHyperlinks | |
| Boost | |
| Chromium | |
| CocoaLumberjack | |
| CoreTextHyperlinkView | |
| EGODatabase | |
| EGOTableViewPullRefresh | |
| HPGrowingTextView |
OlderNewer