I hereby claim:
- I am raymondberg on github.
- I am raymondberg (https://keybase.io/raymondberg) on keybase.
- I have a public key whose fingerprint is BB28 7750 1288 C82F 46BE 18CB B593 A105 FEE2 03E5
To claim this, I am signing this object:
""" | |
Usage: | |
kubectl top pod -A | python parse_ktop.py |
I hereby claim:
To claim this, I am signing this object:
from send import send_email | |
def main(sandbox_mode=True): | |
send_email( | |
to_emails=["[email protected]"], | |
from_email="my@email", | |
subject="Catchup", | |
html_content="Hello Umm Greg Universe,<br/>How are you?", | |
cc_emails=["an-email"], | |
reply_to=("[email protected]", "Me"), |
(.+)\n | |
>>>>>>>>>>>>> | |
mkdir \1\ncacls \1 /G Administrators:F \1:F SYSTEM:F\n\n |
from itertools import count | |
def generate_primes(stop_at=None): | |
primes = [] | |
for n in count(2): | |
if stop_at is not None and n > stop_at: | |
return | |
composite = False | |
for p in primes: | |
if not n % p: | |
composite = True |
import os | |
import random | |
import re | |
import shutil | |
def all_python_files(): | |
for basedir, _, filenames in os.walk("."): | |
for filename in filenames: | |
if filename.endswith(".py") and "gotcha" not in filename: |
import os | |
from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip | |
OUTPUT_DIRECTORY = 'done' | |
clips = [ | |
{'output': 'baby_peek_a_boo.mp4', 'input': 'baby_peek_a_boo.mp4', 'start': 0, 'end': 23}, | |
{'output': 'tickle_me_elmo.mp4', 'input': 'tickle_me_elmo.mp4', 'start': 39, 'end': 74}, | |
//... As many clips as you need |
import sys | |
import boto3 | |
def delete_all_version_fuzzy(bucket_name, prefix, do_it=False): | |
s3 = boto3.resource('s3') | |
bucket = s3.Bucket(bucket_name) | |
count = 0 | |
print("Searching bucket({}) for prefix({})".format(bucket.name, prefix)) |
run_tests_as_modules () { | |
args=$@ | |
args_with_dots=${args//\//.} | |
args_without_semicolon=${args_with_dots//:/.} | |
args_without_py_suffix=${args_without_semicolon/.py} | |
echo "Running 'python3 manage.py test $args_without_py_suffix'" | |
python3 manage.py test $args_without_py_suffix | |
} |
import curses | |
import os | |
import sys | |
## Contributors: Richa, Pedro, Ramon, Doug, Ray | |
def draw_house(screen, color, offset_x=0, offset_y=0): | |
# Your job is to draw a house! Feel free to get creative! | |
draw_horizontal_line(screen, color, 0 + offset_x, 20 + offset_x, 8 + offset_y) | |
draw_horizontal_line(screen, color, 0 + offset_x, 20 + offset_x, 18 + offset_y) |