Skip to content

Instantly share code, notes, and snippets.

@rudylacrete
rudylacrete / pioner_video_conversion.md
Last active Sep 6, 2021 — forked from chaseroden/pioner_video_conversion.md
How to use `mencoder` to convert MP4 videos for a Pioneer AVH-280BT head unit
View pioner_video_conversion.md

How to use mencoder to convert MP4 videos for a Pioneer AVH-280BT head unit

These directions are geared toward OS X but I'm assuming this will work on Linux systems and possibly Windows machines with mplayer/mencoder installed. These directions assume basic familiarity with the terminal/command line. If you are not comfortable with that or would rather use a GUI, there are other options like this helpful page which shows how to use the DivX video converter to do this same thing.

I also assume these instructions will work on other Pioneer head units I don't happen to own, and possibly on other brands as well.

Install ffmpeg and mplayer using Homebrew

  1. If you don't have Homebrew, the OS X command-line package manager, you will need to install it using instructions found on their website. Homebrew allows you to specify that you want to build an installation from source, which you will need
@rudylacrete
rudylacrete / gist:cf0cda735c735e83cda3cca6f6f57b7f
Created Aug 18, 2016
Custom meteor application deployment script
View gist:cf0cda735c735e83cda3cca6f6f57b7f
#!/bin/bash
dst=/path/to/nodejs/dir
buildDir=result-cyclo-meteor
archiveName=test.tar.gz
remoteForeverProcessId=24
echo "Creating build"
meteor build ..
echo "OK"
@rudylacrete
rudylacrete / gist:285e530e84f020b3561ade9228e26872
Created Aug 15, 2016
How to make a2dp profile working on raspberry pi 3 with bluez5
View gist:285e530e84f020b3561ade9228e26872
Most informations were found here:https://github.com/ev3dev/ev3dev/issues/198
- create systemd service for running pulseaudio: /etc/systemd/system/pulseaudio.service
[Unit]
Description=Pulse Audio
[Service]
Type=simple
ExecStart=/usr/bin/pulseaudio --system --disallow-exit --disable-shm
@rudylacrete
rudylacrete / gist:a8c474aa6e8b221530a654d1f363f7c8
Created Jul 15, 2016
How to ssh to the raspberry pi through the UART bus
View gist:a8c474aa6e8b221530a654d1f363f7c8
Commands found on http://www.instructables.com/id/Connect-the-Raspberry-Pi-to-network-using-UART/
Raspberry part
----------------------------
echo "Starting pppd..."
stty -F /dev/ttyAMA0 raw
stty -F /dev/ttyAMA0 -a
pppd /dev/ttyAMA0 115200 10.0.5.2:10.0.5.1 noauth local debug dump defaultroute nocrtscts persist maxfail 0 holdoff 1
host part
View aria2.conf
#
## aria2 config
#
# man page = http://aria2.sourceforge.net/manual/en/html/aria2c.html
# file path = $HOME/.aria2/aria2.conf
# Download Directory: specify the directory all files will be downloaded to.
# When this directive is commented out, aria2 will download the files to the
# current directory where you execute the aria2 binary.
#dir=/some/download/
View gist:3ac37709cb614acc090d
To make the card reader working:
sudo add-apt-repository ppa:iacobs/au6601
sudo apt-get update
sudo apt-get install au6601-dkms
Screen brigthness control:
sudo gedit /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="
View gist:748cc8b8044c70098dc2
#!/bin/sh
interface=utun0
/usr/sbin/natd -interface $interface
/sbin/ipfw -f flush
/sbin/ipfw add divert natd all from any to any via $interface
/sbin/ipfw add pass all from any to any
sysctl -w net.inet.ip.forwarding=1
@rudylacrete
rudylacrete / gist:ab057f662763007a930d
Created Jul 14, 2014
init.d script to start nodejs application with forever
View gist:ab057f662763007a930d
### BEGIN INIT INFO
# Provides: mynodejsapplication
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Script for My Node Application
# Description: Script for My Node Application