tell application "Finder" | |
tell front window to update every item | |
try | |
delete (make new file at (front window) with properties {name:".refresh.tmp"}) | |
end try | |
end tell |
You can use ffmpeg to directly pull frames off of a dahua 4300s at full resolution. May be a good alternative to pricey dvrs which likely cannot record at full resolution, may not work with the camera, or are prohibitevly expensive
Simple stream to file. Full resolution
ffmpeg -loglevel debug -rtsp_transport tcp -i "rtsp://admin:[email protected]:554/live" \
-c copy -map 0 foo.mp4
""" | |
Module implementing an enhanced string column type for SQLAlchemy | |
with a support for regular expression operators in Postgres and SQLite. | |
""" | |
import re | |
from sqlalchemy import String as _String, event, exc | |
from sqlalchemy.engine import Engine | |
from sqlalchemy.ext.compiler import compiles | |
from sqlalchemy.sql.expression import BinaryExpression, func, literal |
Grab ffmpeg from https://www.ffmpeg.org/download.html
It's a command line tool which means you will have to type things with your keyboard instead of clicking on buttons.
The most trivial operation would be converting gifs:
ffmpeg -i your_gif.gif -c:v libvpx -crf 12 -b:v 500K output.webm
-crf
values can go from 4 to 63. Lower values mean better quality.-b:v
is the maximum allowed bitrate. Higher means better quality.
This is a set of helpers for finding the application's currently active models/routes/controllers/etc. This isn't a straightforward process because of how Ember (rightly) encapsulates application objects, but it's useful in debugging environments to be able to quickly access them. And with the beta release of Ember Data, the store is not easily accessible without helpers either.
All helpers can be called directly if you provide them an application instance:
# simple AVR Makefile | |
# | |
# written by michael cousins (http://github.com/mcous) | |
# released to the public domain | |
# Makefile | |
# | |
# targets: | |
# all: compiles the source code | |
# test: tests the isp connection to the mcu |
#!/usr/bin/python | |
# rtorrent_xmlrpc | |
# (c) 2011 Roger Que <[email protected]> | |
# | |
# Python module for interacting with rtorrent's XML-RPC interface | |
# directly over SCGI, instead of through an HTTP server intermediary. | |
# Inspired by Glenn Washburn's xmlrpc2scgi.py [1], but subclasses the | |
# built-in xmlrpclib classes so that it is compatible with features | |
# such as MultiCall objects. |
// works on osx! | |
// from this nice developer: http://blog.loudhush.ro/2009/03/network-statistics-on-os-x-using-sysctl.html | |
#include <sys/types.h> | |
#include <sys/sysctl.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <sys/socketvar.h> | |
#include <netinet/ip.h> |