Skip to content

Instantly share code, notes, and snippets.

🦄
React'ing.

Robert Moggach robmoggach

🦄
React'ing.
Block or report user

Report or block robmoggach

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@robmoggach
robmoggach / ffmpeg-html5
Last active Oct 17, 2019 — forked from yellowled/ffmpeg-html5
Convert videos to proper formats for HTML5 video on Linux shell using ffmpeg. Will probably convert this to a bash script later, but for the time being, here's some examples. Not sure there have actually sensible dimensions and bitrates for web video.
View ffmpeg-html5
#!/usr/bin/env bash
FULLFILE="$1"
FILENAME=$(basename "$FULLFILE" | cut -d. -f1)
# webm
for size in 640x360; do
ffmpeg -i $FULLFILE -f webm -vcodec libvpx -acodec libvorbis -ab 128000 -crf 22 -s ${size} ${FILENAME}-${size}.webm
done
View vimeo_api.py
import os
import time
import urllib2
try:
import simplejson as json
except ImportError:
import json
import vimeo
@robmoggach
robmoggach / osx_automount_nfs.md
Created Jan 11, 2016 — forked from L422Y/osx_automount_nfs.md
Automounting NFS share in OS X into /Volumes
View osx_automount_nfs.md

I have spent quite a bit of time figuring out automounts of NFS shares in OS X...

Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:

/etc/auto_master (see last line):

#
# Automounter master map
#
+auto_master		# Use directory service
@robmoggach
robmoggach / index.html
Created Mar 4, 2015
Famous App Stacking Famo.us Surfaces 0.3.0 // source http://jsbin.com/xobeje
View index.html
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Stacking Famo.us Surfaces 0.3.0" />
<meta charset="utf-8">
<title>Famous App</title>
<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=no" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
@robmoggach
robmoggach / index.html
Created Mar 4, 2015
Famous App BackSwapper View Famo.us 0.3.4 // source http://jsbin.com/notika
View index.html
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="BackSwapper View Famo.us 0.3.4" />
<meta charset="utf-8">
<title>Famous App</title>
<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=no" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
@robmoggach
robmoggach / index.html
Created Mar 4, 2015
famo.us App Tree Famo.us 0.3.1 global-seed // source http://jsbin.com/fobaxo/1
View index.html
<!DOCTYPE HTML>
<html>
<head>
<title>famo.us App</title>
<meta name="description" content="Tree Famo.us 0.3.1 global-seed" />
<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=no" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
@robmoggach
robmoggach / index.html
Created Mar 4, 2015
Famous App z-translate a Gridlayout in Famo.us 0.3.4 // source http://jsbin.com/solabu
View index.html
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="z-translate a Gridlayout in Famo.us 0.3.4" />
<meta charset="utf-8">
<title>Famous App</title>
<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=no" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
@robmoggach
robmoggach / index.html
Created Mar 4, 2015
Famous App Transitionable Size Famo.us 0.3.5 // source http://jsbin.com/ruboju
View index.html
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Transitionable Size Famo.us 0.3.5" />
<meta charset="utf-8">
<title>Famous App</title>
<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=no" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
@robmoggach
robmoggach / index.html
Created Mar 4, 2015
Famous App Chaining Modifiers in Famo.us 0.3.1 // source http://jsbin.com/rudufu/1
View index.html
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Chaining Modifiers in Famo.us 0.3.1" />
<meta charset="utf-8">
<title>Famous App</title>
<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=no" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
@robmoggach
robmoggach / setWacom.sh
Created Feb 24, 2015
xsetwacom Intuos4
View setWacom.sh
#!/usr/bin/env bash
#################
# Wacom buttons :
#################
# tablet identificators :
# xinput --list | grep '[w|W]acom'
DEVICE="Wacom Intuos4 4x6 pad"
STYLUS="Wacom Intuos4 4x6 stylus"
You can’t perform that action at this time.