A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
""" | |
IAM boto examples: | |
In this example we create a group that provides access | |
to all EC2 and S3 resources and actions and then add a | |
user to that group. | |
""" | |
import boto | |
# | |
# First create a connection to the IAM service |
Copyright (c) 2015, Shahar Evron | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, | |
are permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, this | |
list of conditions and the following disclaimer. | |
2. Redistributions in binary form must reproduce the above copyright notice, |
#!/usr/bin/env python3 | |
''' | |
This Script Is Mainly From A Youtube User, | |
I Only Modified It Slightly To Make It Python3 Compatable, | |
And Added Custom Microphone Recording Support | |
Original Source Code: http://pastebin.com/BY1t5AcC | |
Thanks To Youtube User NoBeansJose | |
License: |
#!/usr/bin/env python | |
# | |
# DNS Result Comparison Utility | |
# Author: https://twitter.com/chair6 | |
# | |
import argparse | |
import dns.resolver | |
import dns.rdatatype | |
from collections import defaultdict |
# Antnee's Classy Filter! v3.0a | |
# https://www.pathofexile.com/forum/view-thread/1245785 | |
# Instructions for use: | |
# Right-click this page, click "select all" | |
# Right click again, click "Copy" | |
# Open a new .txt document and paste the contents of this page into it | |
# USE ANSI ENCODING IF YOU USE NOTEPAD++ OR ANY OTHER TEXT EDITOR | |
# Click File/Save As | |
# Select "All Files" from the dropdown menu at the bottom |
import collections | |
def dict_merge(dct, merge_dct): | |
""" Recursive dict merge. Inspired by :meth:``dict.update()``, instead of | |
updating only top-level keys, dict_merge recurses down into dicts nested | |
to an arbitrary depth, updating keys. The ``merge_dct`` is merged into | |
``dct``. | |
:param dct: dict onto which the merge is executed | |
:param merge_dct: dct merged into dct |
This is an aggregation of thoghts, observations, talks, blogs, code reviews and many sleepless nights. Obviously not complete or exhaustive.
Edits/Comments welcome!
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt-get update | |
sudo apt-get install gcc-5 g++-5 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5 |