Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
# systemd's udev hwdb breaks our keyboard tablet mode switcheroo thing. Fix it. | |
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHewlett-Packard*:pnHPSpectrex360Convertible*:pvr* | |
KEYBOARD_KEY_ab=unknown # emitted by brightness keys | |
KEYBOARD_KEY_d7=f22 # normal mode - turn touchpad on | |
KEYBOARD_KEY_d8=f23 # tablet mode - turn touchpad off |
Simple php page where after submitting an rss feed from news.google.com it will grab the contents of the RSS and gernerate a PDF output with one article from the XML per page.
Functionality is specifically made to parse news.google.com rss, but other rss feeds may be input as well. Other inputs will only display the description and no other data without further edits.
Input rss/xml feed you would like to have parsed submit it. You will see a notice to view your pdf submission. Click to view. An example url that you can use is http://news.google.com/news?pz=1&cf=all&ned=us&hl=en&output=rss
.
Run a live demo: http://sapioweb.com/rss2pdf
How to boot straight to application, with auto-login, and fluxbox as a window manager
apt-get install xorg-server xinit fluxbox
/etc/systemd/system/getty.target.wants/[email protected]
and add your username to ExecStart like ExecStart=-/sbin/agetty -a <user name> %I $TERM
.profile
: [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
exec /usr/bin/startfluxbox
# After Ubuntu 16.04, Systemd becomes the default. | |
# It is simpler than https://gist.github.com/Doowon/38910829898a6624ce4ed554f082c4dd | |
[Unit] | |
Description=Jupyter Notebook | |
[Service] | |
Type=simple | |
PIDFile=/run/jupyter.pid | |
ExecStart=/home/phil/Enthought/Canopy_64bit/User/bin/jupyter-notebook --config=/home/phil/.jupyter/jupyter_notebook_config.py |
import JSON | |
################### | |
### Write data #### | |
################### | |
# dictionary to write | |
dict1 = Dict("param1" => 1, "param2" => 2, | |
"dict" => Dict("d1"=>1.,"d2"=>1.,"d3"=>1.)) | |
# pass data as a json string (how it shall be displayed in a file) | |
stringdata = JSON.json(dict1) |
// Prompt to get sigma values for the Difference of Gaussians filtering | |
Dialog.create("Choose filter sizes for DoG filtering"); | |
Dialog.addNumber("Gaussian sigma 1", 1); | |
Dialog.addNumber("Gaussian sigma 2", 2); | |
Dialog.show(); | |
sigma1 = Dialog.getNumber(); | |
sigma2 = Dialog.getNumber(); | |
// Get the current image | |
idOrig = getImageID(); |
ffmpeg -r 24 -pattern_type glob -i '*.JPG' -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4
-r 24
- output frame rate-pattern_type glob -i '*.JPG'
- all JPG files in the current directory-i DSC_%04d.JPG
- e.g. DSC_0397.JPG-s hd1080
- 1920x1080 resolution