Skip to content

Instantly share code, notes, and snippets.

View chaseroden's full-sized avatar

Chase Roden chaseroden

View GitHub Profile
@chaseroden
chaseroden / pioner_video_conversion.md
Last active May 31, 2022 21:01
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

Keybase proof

I hereby claim:

  • I am chaseroden on github.
  • I am chaseroden (https://keybase.io/chaseroden) on keybase.
  • I have a public key whose fingerprint is 7E6A 4CE6 E2B7 58A5 5961 77CC 9B86 3ACC 27BE E89C

To claim this, I am signing this object:

@chaseroden
chaseroden / add-key.sh
Created September 3, 2014 13:27
Adds ssh key to remote server
#!/bin/sh
# ./add-key.sh <keyfile> <remote server>
# First argument is the key file
# Second argument is the server name or IP
# To do: check remote server to see if the key's already there first
scp $1 $2:.ssh/new_key
ssh $2 /bin/bash << EOF
cd .ssh
@chaseroden
chaseroden / workaround.html
Last active August 29, 2015 14:05
The workaround
Take your tag that looks like this:
<script language="JavaScript" src="http://ad.doubleclick.net/N4206/adj/rmm.usnews/prairieview_cc_wichitahutchinson_300x250vid;sz=300x250;ord=[timestamp]?" type="text/javascript"></script>
<noscript><a href="http://ad.doubleclick.net/N4206/jump/rmm.usnews/prairieview_cc_wichitahutchinson_300x250vid;sz=300x250;ord=[timestamp]?"
target="_blank"><img src="http://ad.doubleclick.net/N4206/ad/rmm.usnews/prairieview_cc_wichitahutchinson_300x250vid;sz=300x250;ord=[timestamp]?"
width="300" height="250" border="0" alt=""></a></noscript>
<!-- end ad tag -->
This part ...
@chaseroden
chaseroden / pvt-zd-integrator.py
Created August 22, 2014 17:18
Pivotal Tracker / Zendesk integrator
#!/usr/bin/env python
# This script receives POSTs from a Zendesk target and submits comments to existing Pivotal Tracker stories via
# the Pivotal API
# The Zendesk target is a URL target with the following settings:
# Url: http://SERVER_ADDRESS/pvt?token=PVT_API_TOKEN_HERE&project=PVT_PROJECT_ID_HERE&story={{ticket.ticket_field_XXXXXXX}}
# Method: POST
# Attribute name: comment
# where:
# SERVER_ADDRESS is replaced with your server's address, obviously
@chaseroden
chaseroden / forward_to_zendesk.scpt
Last active August 29, 2015 14:05
AppleScript to forward emails to Zendesk
set target_string to "\\"
set zendeskAddress to "[email protected]"
-- This script forwards an email from Outlook 2011 to your Zendesk support address, provided above.
-- Specifically, it checks your clipboard for a Zendesk message ID and adds it to the subject line if one is there.
-- If there isn't a Zendesk ID in the format [XXXX-XXXX] somewhere on your clipboard, it asks for one.
-- It adds the original sender of the email as the ticket's #requester and marks it a private #note on the ticket.
-- Presently it doesn't forward attachments.
-- To do: have it remove the agent's signature from the message.
-- Chase Roden <[email protected]>
@chaseroden
chaseroden / get_zendesk_id.scpt
Last active August 29, 2015 14:05
Copies Zendesk ID from Outlook 2011 email to clipboard
set target_string to "\\"
tell application "Microsoft Outlook"
set selectedMessages to current messages
if selectedMessages is {} then
display dialog "Please select a message first and then run this script." with icon 1
return
end if