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
import requests | |
import multiprocessing | |
import sys | |
class EventHook(object): | |
def __init__(self): | |
self.__handlers = [] | |
def __iadd__(self, handler): |
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
import listener | |
import requests | |
import multiprocessing | |
from multiprocessing import Pool | |
import sys | |
# from multiprocessing.dummy import Pool as ThreadPool | |
def test_print(): | |
print "test_print called." |
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
(bandit) ➜ python-symphony git:(master) bandit -r symphony | |
[main] INFO profile include tests: None | |
[main] INFO profile exclude tests: None | |
[main] INFO cli include tests: None | |
[main] INFO cli exclude tests: None | |
[main] INFO running on Python 2.7.5 | |
Run started:2016-12-12 18:57:31.838606 | |
Test results: | |
>> Issue: [B108:hardcoded_tmp_directory] Probable insecure usage of temp file/directory. |
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
so I was on an uptown A train one day in like 2003-4. It was early.. I was using a cd-mp3 player ( lol olde ) | |
and this dude comes up to me and very angrily gets up in my face and points at my cd-mp3 player. | |
Angry Dude : That have batteries!? ( pointing at cd-mp3 player ) | |
Me: Yes. | |
Angry Dude : Can I have em !?! | |
Me: Well, noooo.. as you can see I am using them. | |
Angry Dude : Well can I have the cd player!?! | |
Me: ... No? | |
Angry Dude ( now cheerful ): Okay. ( Turns to Leave ) |
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 python | |
''' example script | |
with some text | |
''' | |
__author__ = 'some author' | |
__email__ = 'some.author@generic.tld' | |
__copyright__ = 'Copyright 2016, Mericka Industries LLC' | |
import sys |
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
▽ | |
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) | |
PYTHON='$(ROOT_DIR)/venv/bin/python' | |
SUBDIRS = pod-diagnostics pod-dir-passwd | |
.PHONY: subdirs $(SUBDIRS) | |
subdirs: $(SUBDIRS) |
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 python | |
from setuptools import setup, find_packages | |
from pip.req import parse_requirements | |
# parse_requirements() returns generator of | |
# pip.req.InstallRequirement objects | |
install_reqs = parse_requirements('requirements.txt', | |
session=False) |
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
java-1.7.0-openjdk: | |
pkg: | |
- installed |
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
dict.sls | |
{ | |
plugin: "http://url/path/plugin.jpi" | |
} | |
state.sls | |
{%- import_yaml "dict.sls" as custom_plugins %} |
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
include: | |
- some.awesome.state | |
{% some for shit here -%} | |
state: | |
cmd.run: | |
- name: doing some awesome shit iteratively | |
{% end loopy doop -%} |