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 moviepy.editor as mp | |
import math | |
from PIL import Image | |
import numpy | |
def zoom_in_effect(clip, zoom_ratio=0.04): | |
def effect(get_frame, t): | |
img = Image.fromarray(get_frame(t)) | |
base_size = img.size |
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
# _____ _ _____ _ _ | |
# | _ |_ _| |_ ___| | |_|___ | |
# | | | | _| . | --| | | . | | |
# |__|__|___|_| |___|_____|_|_| _| | |
# |_| | |
# | |
# By Abhishta (github.com/abhishtagatya) | |
# pip install gTTs | |
# pip install moviepy |
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
% Contributors: Jonas Rothfuss and Fabio Ferreira | |
import math | |
import os | |
import moviepy | |
import subprocess | |
import random | |
import glob | |
import multiprocessing | |
from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip |
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
from moviepy.editor import * | |
from moviepy.video.fx.all import crop, fadeout | |
import cv2 | |
def get_image_clip(): | |
images_list = ["frame79.jpg"] * 30 | |
print(images_list) | |
clip = ImageSequenceClip(images_list, fps=30) | |
clip = fadeout(clip, 1, final_color=[32, 32, 32]) | |
return clip |
Tcpdump is a commandline tool that is used to dump traffic on a network. This tool comes in hand when you want to analyse network captures within the command line. Basically it can do most of the wireshark job.
NOTE This guide might not be complete it just serve as a reference to me.
• 45-minute systems interview, focus on responding to real world problems with an unhealthy service, such as a web server or database. The interview will start off at a high level troubleshooting a likely scenario, dig deeper to find the cause and some possible solutions for it. The goal is to probe your knowledge of systems at scale and under load, so keep in mind the challenges of the Facebook environment.
• Focus on things such as tooling, memory management and unix process lifecycle.
More specifically, linux troubleshooting and debugging. Understanding things like memory, io, cpu, shell, memory etc. would be pretty helpful. Knowing how to actually write a unix shell would also be a good idea. What tools might you use to debug something? On another note, this interview will likely push your boundaries of what you know (and how to implement it).
Interview is all about taking an ambiguous question of how you might build a system and letting
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
{ | |
"Volumes": [ | |
{ | |
"AvailabilityZone": "us-west-2a", | |
"Attachments": [ | |
{ | |
"AttachTime": "2013-09-17T00:55:03.000Z", | |
"InstanceId": "i-a071c394", | |
"VolumeId": "vol-e11a5288", | |
"State": "attached", |
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
{ | |
"DBInstances": [ | |
{ | |
"PubliclyAccessible": false, | |
"MasterUsername": "mymasteruser", | |
"MonitoringInterval": 0, | |
"LicenseModel": "general-public-license", | |
"VpcSecurityGroups": [ | |
{ | |
"Status": "active", |
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 | |
""" | |
mocking requests calls | |
""" | |
import mock | |
import unittest | |
import requests | |
from requests.exceptions import HTTPError |
NewerOlder