Skip to content

Instantly share code, notes, and snippets.

View benjaminxscott's full-sized avatar
😺

Benjamin Scott benjaminxscott

😺
View GitHub Profile

You must try, and then you must ask

I like working with grownups.

Here's an example:

When I was a wee little New Hire at my current employer, one of the things that came up a lot was the "15 minute rule." That is, if you're stuck on a problem, take a solid 15 minutes to bash your brain against it in whatever manner you see fit. However, if you still don't have an answer after 15 minutes, you must ask someone. I shorten this down to "You must try, and then you must ask." It's a simply-worded rule, which works something like this:

If you've hit the point of giving up, you have to push yourself for another 15 minutes. The pressure is now off. You know that in 15 minutes, you'll be able to take what you found and talk to another person about it and get their help. For right now, all you have to do is step back and look at the whole problem from the top. Maybe you'll find the solution that was sitting there all along. Maybe you'll convince yourself it's completely unsolvable. Whatever you end up doing, tho

@benjaminxscott
benjaminxscott / tc_api.md
Last active September 1, 2016 17:39
Summary of ThreatConnect apps and api

Deployment models

  • A local script can leverage the ThreatConnect API to make changes on behalf of a user's API key
  • Code written in Java or Python can be deployed as an App to a ThreatConnect instance (useful for recurring server-side jobs)
  • Code written in JavaScript can be deployed as a Spaces App ThreatConnect instance and (useful for client-side GUI tools)

Supported SDK Languages

Python library - Available in pip as ‘threatconnect’ - Can be used to build server-side apps for the platform

Java - Available in maven as `threatconnect-sdk. Can be used to build server-side apps for the platform

@benjaminxscott
benjaminxscott / fullstack.md
Last active July 20, 2019 22:41
Free Courses collected in udacity "full stack" nanodegree
@benjaminxscott
benjaminxscott / python-ref.md
Last active July 22, 2024 00:17
Learn about Python and its idioms

dictionaries in python

 # init dict
 stuff = {
  'name': 'Zed',
  'age': 39
  }
 
stuff['city'] = "San Francisco" # inserts are constant time
@benjaminxscott
benjaminxscott / sample_app.rb
Created October 8, 2015 01:13
an example ruby class
#!/usr/bin/env ruby
class Ghost
attr_accessor :haunted
def initialize (loc = "house")
@locations = loc
@haunted = 1
end
@benjaminxscott
benjaminxscott / git-ref.sh
Last active December 2, 2015 15:19
how to check out specific files from another branch, if those files have since moved
git clone $myrepo.git
# bring repo up to date
git checkout master
git pull
# change to PR branch
git checkout reorg_issues_dir
# move test out of the "new folder" created in PR