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 __future__ import unicode_literals, print_function | |
from ansible.module_utils.basic import AnsibleModule, return_values | |
DOCUMENTATION = ''' | |
--- | |
module: napalm_cli | |
author: "Charlie Allom" | |
version_added: "2.2" | |
short_description: "Executes network device CLI commands and returns response using NAPALM" |
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 python3 | |
import argparse | |
import requests | |
TEMPLATE = """ | |
{date} | |
========== | |
{content} |
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 | |
def slurp_file(filename): | |
with open(filename) as file_obj: | |
return file_obj.readlines() | |
def main(): | |
lines = slurp_file("tests/sanity/ignore-2.9.txt") | |
# lines = slurp_file("tests/sanity/ignore-2.10.txt") |
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
// ==UserScript== | |
// @name Blaseball Hex Innings | |
// @namespace http://linkybook.com | |
// @version 0.3 | |
// @description Rewrite extra innings in hexdecimal | |
// @author Qalthos | |
// @match https://blaseball.com/* | |
// @match https://www.blaseball.com/* | |
// ==/UserScript== |
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 sys | |
from datetime import datetime | |
from dateparser import parse | |
def main(): | |
date = parse(" ".join(sys.argv[1:])) | |
now = datetime.now() |
OlderNewer