Thanks to /u/zpoo32 for reporting several issues in this list!
- deemix: just the cli and the library
- deemix-pyweb: the app with a GUI
- deemix-server: just the server part of deemix-pyweb
#!/bin/bash | |
[[ ! -n $3 ]] && { echo "Usage: crossfadevideo <input.mp4> <fade in seconds> <output.mp4> [looptimes]"; exit; } | |
input="$1" | |
fade="$2" | |
duration="$(ffprobe -v error -select_streams v:0 -show_entries stream=duration -of default=noprint_wrappers=1:nokey=1 "$input")" | |
duration=$(echo "$duration-($fade)" | bc | sed 's/\..*//g') | |
[[ ${duration:0:1} == "." ]] && duration="0$duration" | |
output="$3" | |
[[ -n $4 ]] && loop=$4 && output="${output}.mkv" | |
set -x |
Thanks to /u/zpoo32 for reporting several issues in this list!
The joey-joebags is a Game Boy cart reader/writer, it's available here.
I have tested these steps on Yosemite (10.10) and Sierra (10.12). You need to have Python 3, which is not installed by default, so install using Homebrew.
Install Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
CPU model: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz | |
Number of cores: 1 | |
CPU frequency: 2394.486 MHz | |
Total amount of RAM: 990 MB | |
Total amount of swap: MB | |
System uptime: 4 min, | |
I/O speed: 64.0 MB/s | |
Bzip 25MB: 4.61s | |
Download 100MB file: 46.5MB/s |
var http = require("https"); | |
var querystring = require('querystring'); | |
//2 attachments as JavaScript Objects | |
var attachments = [{ | |
fallback: "Attachment 1 Fallback", | |
title: "This is Attachment 1", | |
text: "Attachment 1 Text", | |
color: "#3964db" | |
}, { |
# requires imagemagick and ffmpeg (tested with latest versions) | |
# make sure you set an INFILE variable first | |
# get GIF info | |
video=$(ffmpeg -i "$INFILE" 2>&1 /dev/null | grep "Video:"); | |
# get GIF Frames per second | |
fps=$(echo "$video" | sed -n "s/.* \([0-9.]*\) fps.*/\1/p"); | |
# a convinience variable so we can easily set FPS on the video |
Relies on some *nix CLI utilities: mediainfo
; and qt-faststart
(part of ffmpeg
). I used homebrew to install them on OS X.
Pseudo streaming is simply a video that can start playing before it's fully dowmloaded. The videos are not streaming but rather progressively downloaded. What's important is that the file metadata (the Moov Atom) is at the start of the file rather than at the end. Usually this is an option set when encoding the file (called quick start or web start). If the files have not been encoded this way you can either re-encode or use a utility to move the Moov Atom. Re-encoding takes much longer than using a utility to move the Moov Atom so here's how to do it.
First check with mediainfo
to see if video 'is streamable':
This is how you connect PS3 controller to Mac OSX, PC, etc. when previously connected to a PS3. You will need a Mini USB cable. Overcome your laziness, get up of your chair, and go get one!
A big misconception is that keep holding PS button will reset the controller's pairing. It DOES NOT! From my testings, the controller keeps paring with the last machine it was CONNECTED VIA A USB CABLE.
Here are the steps:
# Apache Server Config | MIT License | |
# https://gist.github.com/bhubbard/6082577 | |
# Modified from https://github.com/h5bp/server-configs-apaches | |
# ############################################################################## | |
# # Default WordPress # | |
# ############################################################################## | |
# http://randomtype.ca/blog/the-wordpress-htaccess-file-explained/ | |
# BEGIN WordPress |
:: | |
:: Aliases for windows command line | |
:: | |
:: Installation: | |
:: | |
:: - create a folder for your aliases (eg: ```c:\cmd-aliases```) | |
:: - add that folder to your PATH variable | |
:: - save this script as setalias.cmd on that folder | |
:: - run "alias" to see usage | |
:: |