Skip to content

Instantly share code, notes, and snippets.

View johndryan's full-sized avatar

John Ryan johndryan

View GitHub Profile

RaspberryPi AC Remote using LIRC.md

I bought this Infrared Shield for my Rasberry Pi model B (running Raspian Jessie). I wanted to use it to remotely control my Frigidaire FFRE0833S1 window-mounted AC unit. Here are the steps I undertook to get it up and running.

Frigidaire WF-RG63/CE-EL-3 A/C Remote

Installating LIRC

  1. Install LIRC software (instructions here were slightly outdated)

Keybase proof

I hereby claim:

  • I am johndryan on github.
  • I am johndryan (https://keybase.io/johndryan) on keybase.
  • I have a public key ASCV_9tlf5ItGJwDSmrZLMh2OMbthwMz9UwPX8uOGCXfBAo

To claim this, I am signing this object:

#!/bin/bash
# Pandoc: convert multiple html files to markdown
# Requires pandoc (installed via homebrew)
for f in *.html ; do pandoc ${f} -f html -t markdown -s -o ${f}.md ; done
@johndryan
johndryan / create_site.sh
Last active December 19, 2015 20:49
Bash Script to automate creation of new websites on my Mediatemple Ubuntu server which runs Nginx as a Reverse Web Proxy. Such a pain setting up both and users, etc. each time, so this is a shortcut. Based on this script: http://bit.ly/1bmcJ7e
#!/bin/bash
# Author: Seb Dangerfield
# URL: http://sebdangerfield.me.uk
# ./create_site.sh example.com admin@example.com
NGINX_ALL_VHOSTS='/etc/nginx/sites-available'
NGINX_ENABLED_VHOSTS='/etc/nginx/sites-enabled'
APACHE_ALL_VHOSTS='/etc/apache2/sites-available'
WEB_DIR='/var/www'
SED=`which sed`
@johndryan
johndryan / gist:3861946
Created October 9, 2012 22:46
SMS to Arduino Experiment: Text Output
Hi there. I'm a screen. You can send me messages by SMS and they will appear here.
Hello there. I'm a screen. You can send me messages by SMS and they will appear here.
F***KKKKK
ok bye
Hi there. I'm a screen. You can send me messages by SMS and they will appear here.