Skip to content

Instantly share code, notes, and snippets.

View kentsalcedo's full-sized avatar
🎯
Focusing

Kent Salcedo kentsalcedo

🎯
Focusing
View GitHub Profile
@kentsalcedo
kentsalcedo / Ruh-Roh.md
Created December 4, 2015 19:16 — forked from jaywon/Ruh-Roh.md
Email Hell

###Email Hell

We just found out that there is a bug in production that our e-mail function was iterating errantly and sending duplicate e-mails to many users. We need to fix this quickly but we don't want to send out a mass apology letter to all of our users.

Our sysadmin gave us the SMTP logs and we need to process the logs and identify which users received multiple e-mails so that we can directly send them a follow up e-mail explaining the situation and offer super cool swag to keep them on as customers.

Also, the boss wants this done ASAP, we don't have time to do this manually...HAAALLLLPPP!

###The Fix

@kentsalcedo
kentsalcedo / gist:8450d62059d944b3f207
Created December 3, 2015 19:04 — forked from jaywon/gist:c76abc57dc33e1679c02
Circular String Brain Bender

###Good Morning Agents

Your challenge this morning is to create a function that implements an algorithm using the concepts we've covered this week.

###Challenge

  1. Write an algorithm that takes in 2 strings as parameters (source, find).
  2. Your function should return true if the string passed in as the find parameter is found in the source parameter if source were circular in nature. Meaning there is no end to the source string.
  3. Important: A match would be true if the word to find is partially at the end of the word and at the beginning in sequence.

Ex.

@kentsalcedo
kentsalcedo / pulling-and-pushing-to-git.md
Last active September 9, 2015 08:15 — forked from jtallant/pulling-and-pushing-to-git.md
Basic Unix + Pulling and Pushing to Git

UNIX Commands

pwd present working directory

ls list current directory contents

ls -la list current directory contents in long format and show hidden files

man <some unix command> Bring up the manual pages for a command. Type q to exit