Skip to content

Instantly share code, notes, and snippets.

View ebertti's full-sized avatar

Ezequiel Bertti ebertti

View GitHub Profile
@docPhil99
docPhil99 / macFFmpeg.md
Last active March 1, 2024 12:31
Mac webcam FFmpeg

#Capture and stream a webcam To capture using the iSight camera on a Mac, or infact any other webcam connected to the Mac, we can use FFmpeg. First get a list of the devices installed.

ffmpeg -f avfoundation -list_devices true -i "" 

This will list the aviable video and audio devices.

The below will capture at 30fps and the set video size to a file. ffmpeg -f avfoundation -framerate 30 -video_size 640x480 -i "0:none" out.avi

@Mahito
Mahito / docker-compose.yml
Created March 30, 2017 08:38
RabbitMQ monitoring with Prometheus and Grafana
version: '2'
services:
rabbitmq:
image: rabbitmq:3.6.4-management
hostname: rabbitmq
expose:
- "9090"
ports:
- "4369:4369"
- "5671:5671"
@evanwill
evanwill / gitBash_windows.md
Last active April 17, 2024 08:53
how to add more utilities to git bash for windows, wget, make

How to add more to Git Bash on Windows

Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).

If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so

@gaqzi
gaqzi / test_views.py
Last active March 12, 2021 08:29
SNS subscription and handler for django
import re
from django.core.urlresolvers import reverse
import responses
AWS_URL = re.compile('.*amazonaws.com.*')
class TestSNSSubscription(object):
@rh0dium
rh0dium / settings_logging.py
Last active August 17, 2020 21:16
Color logging inside of PyCharm
# Get and install logutils
# pip install logutils
# === settings.py ===
class PseudoTTY(object):
"""This allows a a fake tty which will allow PyCharm to always say its a tty"""
def __init__(self, underlying):
"""Define my underlying class"""