The gist for: Code PaLOUsa Testing Application Boundaries.
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 re | |
| import librato | |
| from sh import ping, hostname | |
| host = 'google.com' | |
| # How many pings should we do before we process the results | |
| ping_for = '30' | |
| # How many times should we ping, process results, and send to Librato | |
| repeat = 2 | |
| liberato_token = '<censored>' |
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 zfs list -r rpool -o name,used,compression,readonly,mounted | |
| NAME USED COMPRESS RDONLY MOUNTED | |
| ... | |
| rpool/insig/tmp/playground 6.91M lz4 off yes | |
| $ ls -lh /tmp/playground/ | |
| total 512 | |
| -rw-rw-r-- 1 rsyring rsyring 2 Apr 14 14:59 foo | |
| # I think snapshot @5 should have more used space. |
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
| # See for more context: https://github.com/raelgc/scudcloud/issues/550 | |
| rsyring@loftex:~$ sudo apt-get install scudcloud | |
| Reading package lists... Done | |
| Building dependency tree | |
| Reading state information... Done | |
| Some packages could not be installed. This may mean that you have | |
| requested an impossible situation or if you are using the unstable | |
| distribution that some required packages have not yet been created | |
| or been moved out of Incoming. |
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
| #!/usr/bin/env python | |
| from __future__ import print_function | |
| import random | |
| import click | |
| @click.command() | |
| @click.argument('length', type=click.INT) |
I hereby claim:
- I am rsyring on github.
- I am randysyring (https://keybase.io/randysyring) on keybase.
- I have a public key ASAB9i5eth_mEtEPjCuc64rj3P9PEXrohrZe790bJn8yRwo
To claim this, I am signing this object:
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html data-ember-extension="1"> | |
| <head> | |
| <title>Choosing a TDS protocol version</title> | |
| <meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.79"> | |
| <link rel="HOME" title="FreeTDS User Guide" href="http://www.freetds.org/userguide/index.htm"> | |
| <link rel="UP" title="Install FreeTDS" href="http://www.freetds.org/userguide/install.htm"> | |
| <link rel="PREVIOUS" title="Install FreeTDS" href="http://www.freetds.org/userguide/install.htm"> | |
| <link rel="NEXT" title="servername Lookup" href="http://www.freetds.org/userguide/name.lookup.htm"> |
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
| from collections import defaultdict | |
| def autokeyed_dict(): | |
| return defaultdict(autokeyed_dict) | |
| mydict = autokeyed_dict() | |
| mydict['properties']['recent_conversion_event_name']['value'] = 'Test Drive Form' |
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
| def test_noqa_lines(codeString): | |
| g = tokenize.generate_tokens(StringIO(codeString).readline) # tokenize the string | |
| for toknum, tokval, srow, _, _ in g: | |
| if toknum == N_TOKENS: | |
| pass # do something |
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 os | |
| from os import path as osp | |
| import sys | |
| import keyring | |
| paths_to_link = ( | |
| '/usr/lib/python2.7/dist-packages/dbus', | |
| '/usr/lib/python2.7/dist-packages/_dbus_bindings.so', | |
| '/usr/lib/python2.7/dist-packages/_dbus_glib_bindings.so', |