Skip to content

Instantly share code, notes, and snippets.

View joshuarrrr's full-sized avatar

Josh Romero joshuarrrr

View GitHub Profile
@joshuarrrr
joshuarrrr / instructions.md
Last active February 6, 2017 21:16
Clone a local version of a Wordpress site
  1. Install Duplicator plugin

  2. Build package (optionally filter out large image files)

  3. Download archive and installer to an empty directory

  4. Create a softlink to the directory ({name}) in the webserver folder

    $ sudo ln -s /{name} /var/www/html/{name}
    
  5. Change ownership of the directory to make it writable

var mainTextStyles = [
"color: #fff",
"background: #5ba745",
"font-weight: bold",
"display: block",
].join(";")
var errorStyles = [
"color: #fff",
"background: #D05C4D",
"font-weight: bold",

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@joshuarrrr
joshuarrrr / example_strategy.js
Last active August 22, 2018 22:39 — forked from emmettbutler/example_strategy.js
An example script demonstrating how to track custom video players with Parse.ly's JavaScript API
var platform = "myVideoPlatform";
var strategy = {
platform: platform,
searchTags: ["DIV"],
verify: function(elem) {
return (' ' + elem.className + ' ').indexOf(" my_video ") !== -1;
},
subscribe: function(elem) {
var playerApi = myVideoJsApi(elem);
playerApi.on("play", function(playedVideoMetadata) {