Skip to content

Instantly share code, notes, and snippets.

rudylacrete / gist:ab057f662763007a930d
Created July 14, 2014 09:20
init.d script to start nodejs application with forever
View gist:ab057f662763007a930d
# 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
View gist:748cc8b8044c70098dc2
/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 / gist:3ac37709cb614acc090d
Created September 6, 2015 12:05
asus BU401L ubuntu
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="
rudylacrete / gist:a8c474aa6e8b221530a654d1f363f7c8
Created July 15, 2016 07:23
How to ssh to the raspberry pi through the UART bus
View gist:a8c474aa6e8b221530a654d1f363f7c8
Commands found on
Raspberry part
echo "Starting pppd..."
stty -F /dev/ttyAMA0 raw
stty -F /dev/ttyAMA0 -a
pppd /dev/ttyAMA0 115200 noauth local debug dump defaultroute nocrtscts persist maxfail 0 holdoff 1
host part
rudylacrete / gist:285e530e84f020b3561ade9228e26872
Created August 15, 2016 07:37
How to make a2dp profile working on raspberry pi 3 with bluez5
View gist:285e530e84f020b3561ade9228e26872
Most informations were found here:
- create systemd service for running pulseaudio: /etc/systemd/system/pulseaudio.service
Description=Pulse Audio
ExecStart=/usr/bin/pulseaudio --system --disallow-exit --disable-shm
rudylacrete / gist:cf0cda735c735e83cda3cca6f6f57b7f
Created August 18, 2016 18:32
Custom meteor application deployment script
View gist:cf0cda735c735e83cda3cca6f6f57b7f
echo "Creating build"
meteor build ..
echo "OK"
rudylacrete /
Last active September 6, 2021 13:01 — forked from chaseroden/
How to use `mencoder` to convert MP4 videos for a Pioneer AVH-280BT head unit

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
View aria2.conf
## aria2 config
# man page =
# 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.