This file contains 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
{ | |
"api.version":"v1", | |
"sources":[ | |
{ | |
"name": "app.log", | |
"description": "app.log json", | |
"category": "product/app", | |
"timezone": "UTC", | |
"sourceType": "LocalFile", | |
"forceTimeZone": true, |
This file contains 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 -ex | |
# Keep /etc/hosts up to date with ad blocker site: | |
# http://someonewhocares.org/hosts/hosts | |
# Depends on my endecode.py gist or equiv for cleaning up html text. | |
# Excluding personal allow list | |
# eg: googleadservices, so google image searches are clickable. | |
allow=${hosts}.allow |
This file contains 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 | |
# Suggested use: | |
# alias urldecode="endecode.py -a url_decode $*" | |
# alias urlencode="endecode.py -a url_encode $*" | |
# alias htmldecode="endecode.py -a html_decode $*" | |
# alias htmlencode="endecode.py -a html_encode $*" | |
# Encode or decode url or html encoded/plain files. | |
import sys |