Skip to content

Instantly share code, notes, and snippets.

View claydiffrient's full-sized avatar

Clay Diffrient claydiffrient

View GitHub Profile
#!/bin/bash
git branch | grep CNVS | while read -r line; do
echo "Processing $line"
status=$(ticketme $line | grep --color=auto --exclude-dir={.bzr,.cvs,.git,.hg,.svn} "Status:")
if [[ "$status" =~ Closed ]]
then
git branch -D $line
fi
done

Keybase proof

I hereby claim:

  • I am claydiffrient on github.
  • I am claydiffrient (https://keybase.io/claydiffrient) on keybase.
  • I have a public key whose fingerprint is 49A0 873D 101D CF44 0824 9666 33D2 67CD 50EC 7D14

To claim this, I am signing this object:

var _ = require('lodash');
var axios = require('axios');
var parse = require('parse-link-header');
var allIssues = [];
var getGithubIssues = function () {
axios.get('https://api.github.com/repos/instructure/canvas-lms/issues/events?per_page=100').then(compileIssueEvents)
@claydiffrient
claydiffrient / OpenLetterToBluehost
Created October 25, 2014 15:09
Open Letter to Bluehost About Security
tl;dr I would like to know more about how the hosting password storage is accomplished.
To whom it may concern:
Two years or so ago I was hosting with 1&1. I had a technical problem with their service and called in for support. I was asked for my hosting password in order to verify my account. I refused to give it. I promptly left 1&1 and switched to Bluehost, in anticipation of better security.
I have been satisfied with your service, even recommending you to multiple friends and clients of mine. Once such friend recently contacted your technical support and was told to disclose the last four characters of his password in order to verify his ownership of the account. This concerned me so I began to research some of your policies online. I found the following resources:
http://www.bluehost.com/blog/bluehost/preventing-password-panic-259/
https://my.bluehost.com/cgi/help/verify
#include <iostream>
#include <cstdlib>
#include <string>
#include <cctype>
#include <cstring>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@claydiffrient
claydiffrient / Gruntfile.js
Created July 26, 2013 04:50
Signup-System Gruntfile
// Generated on 2013-07-25 using generator-angular 0.3.0
'use strict';
var LIVERELOAD_PORT = 35729;
var lrSnippet = require('connect-livereload')({ port: LIVERELOAD_PORT });
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
var path = require('path');
var urlRewrite = require('grunt-connect-rewrite');
(function($) {
$.eventReport = function(selector, root) {
var s = [];
$(selector || '*', root).addBack().each(function() {
// the following line is the only change
var e = $._data(this, 'events');
if(!e) return;
s.push(this.tagName);
if(this.id) s.push('#', this.id);
if(this.className) s.push('.', this.className.replace(/ +/g, '.'));
#include <cmath>
#include <iostream>
using namespace std;
class Node
{
private:
int mValue;
Node* mLeft;
Node* mRight;