Skip to content

Instantly share code, notes, and snippets.

One liner for backing up wordpress files, and reinstall core
mkdir FIX; cp -rfp public_html/wp-content FIX/; cp -rp public_html/wp-config.php FIX; rm -rf public_html/*; cp -rfp FIX/* public_html/; cd public_html/; wp core download --allow-root
Find files modified by date
find . -type f -name '*.php' -newermt 2017-03-22 ! -newermt 2017-03-23
@joseamirandavelez
joseamirandavelez / IRremote.cpp
Created December 30, 2016 06:53
Arduino Rover with Radio Shack's Robotics IR controller
/*
* IRremote
* Version 0.11 August, 2009
* Copyright 2009 Ken Shirriff
* For details, see http://arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
*
* Modified by Paul Stoffregen <paul@pjrc.com> to support other boards and timers
* Modified by Mitra Ardron <mitra@mitra.biz>
* Added Sanyo and Mitsubishi controllers
* Modified Sony to spot the repeat codes that some Sony's send
@joseamirandavelez
joseamirandavelez / IRLib.cpp
Last active December 30, 2016 06:47
Arduino Robot
/* IRLib.cpp from IRLib - an Arduino library for infrared encoding and decoding
* Version 1.51 March 2015
* Copyright 2014 by Chris Young http://cyborg5.com
*
* This library is a major rewrite of IRemote by Ken Shirriff which was covered by
* GNU LESSER GENERAL PUBLIC LICENSE which as I read it allows me to make modified versions.
* That same license applies to this modified version. See his original copyright below.
* The latest Ken Shirriff code can be found at https://github.com/shirriff/Arduino-IRremote
* My purpose was to reorganize the code to make it easier to add or remove protocols.
* As a result I have separated the act of receiving a set of raw timing codes from the act of decoding them