Skip to content

Instantly share code, notes, and snippets.

Daniel Taveras taveras

Block or report user

Report or block taveras

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am taveras on github.
  • I am taveras ( on keybase.
  • I have a public key ASA2q6kCCof31X58OiwOiorlSit5mvExHOH4UygKFz5KFwo

To claim this, I am signing this object:

taveras / fetch-and-render.js
Last active Oct 11, 2016
mimics Google Search Console's fetch and render, using Nightmare.js
View fetch-and-render.js
var argv = process.argv.slice(2);
var urlToTest = argv[0];
var screenshotFilename = argv[1];
if (!screenshotFilename) {
throw new Error('Invalid screenshot path.')
if (!urlToTest) {
taveras /
Last active Nov 3, 2016
Convert Apache redirect map to NGINX format
# copy file 1 to file 2, and overwrite file 2 if necessary
yes | cp $1 ${2}-tmp
# %g/^#/normal dd # Deletes all comments
# %normal Elcw # Collapses whitespace between segments
# %normal A; # Adds semicolon to the end of each line
# %g/\S\/\;/normal f;hx # Removes trailling slash for second segment
# %g/\/ /normal Ex # Removes trailing slash for first segment
You can’t perform that action at this time.