The World's Oldest Intern

The story of a serial change artist

Month: October, 2012

NYC Subway system borked – trapped in Williamsburg North – moustache sucks

 

 

http://www.mta.info/sites/default/files/pdf/HurricaneRecoveryMapOct312012.pdf

Advertisements

Need better git-fu

Creating a new repo on Github

  • go to github, click ‘New Repository’ on right
  • give a name, choose public or private (requires paid account), click ‘Create’
  • In the ‘Quick Setup’ box, click ‘https’
  • If you don’t have a project to share, run ‘rails new foo’ to create one for this example.
  • $ cd foo
  • $ git init # only have to to once per project
  • $ git commit -am “initial commit” # we’ll explain this in a minute
  • $ git log # should show you five lines of output
  • $ git remote add origin https://github.com/bigsnarfdude/foo
  • $ git push -u origin master

How to add teammates:

  • Go to your repository on github (eg. https://github.com/bigsnarfdude/foo )
  • Click the ‘Admin’ tab
  • Click ‘Collaborators’ on the left
  • add their github usernames, one at a time

When added as a teammate:

  • Go to the repository on Github (eg. https://github.com/bigsnarfdude/foo )
  • Under the menu in the page, next to the button labeled HTTPS, copy the URL
  • $ git clone https://github.com/bigsnarfdude/foo.git

To save changes:

  • Edit your code as normal. For this example, edit the README to include your name.
  • $ git status # list of changed files
  • $ git diff # see all changes
  • $ git add –all # this will ‘stage’ all of your work, we’ll explain more options if we have time
  • $ git commit -m “add my name because Vincent told me to”
  • for multi-line messages, just type ‘git commit’. If you end up in vim, you can type :q to quit. To change your editor to something friendlier: git config –global core.editor “mvim”

To share your work:

  • $ git push origin master
  • If you get a warning about ‘failed to push some refs’ and ‘Updates were rejected because the tip of your current branch is behind’, it means someone else has pushed up changes that you need to pull before you can push your code.

To pull others’changes:

  • $ git pull –rebase
  • This copies down all the changes your teammates have shared, and “rebases”, replays any changes you have made on top of this.
  • Every commit points to the commit that came before it, so this edits your work and you might get a scary “merge conflict”, when git is confused because you both edited the same code.

To deal with conflicts:

  • This happens because you and someone else edited the same code, and git can’t guess whose work to keep. It is your job to examine the conflict and sort it out. You will get a big scary message. This is OK, your work hasn’t been lost, and you can read it for a cheat sheet of how to fix things.
  • $ git status # to get a list of changes and see what needs to be done
  • Edit the files, look for <<<<<, which marks conflicts
  • When you’ve fixed all of them: $ git add -a # to stage your work
  • $ git rebase –continute # to finish the merge

Contributing to scikit-learn with Corey – Sharing and fixing to an OSS project

Issue 1264 – trying to create branch and got this error

You are on a Branch yet to be Born

“git push” to scikit-learn repo

First Pull Request to scikit-learn

modified png

One Girl Cookie – DUMBO flooded

 

My favorite coffee place in New York, where each day several @hackerschool students get together and share their knowledge about technology. It is a confidence inspiring humbling moment that we all have daily.

http://instagram.com/p/RYkyjoTbWx/

http://instagram.com/p/RYnio1s6gf/

http://instagram.com/p/RYtQghtKAu/

Jake is helping me work through some contribution choices

Jake of XKCD-style Matplotlib is leading the sci-kit learn Hack-a-thon portion. After discussing how a n00b can contribute to the project, we settled on the potential of building a program to conduct documentation analysis. Its a blend of my documenting skills, python, and interest to contribute to Open Source Software to project that I use. I love learning and I’ve even blogged about Jake. He was looking at my blog and he said “Hey that’s me”. Awesome.

https://gist.github.com/3808292

Sandy is making us leave our place

http://gis.nyc.gov/oem/he/map.htm?lon=-73.96294769527124&lat=40.71877552042322

Zone A Evacuation – People escaping by car

http://www.mta.info/nyct/

In New York City, the Metropolitan Transit Authority has just announced that the subways and buses will stop running at 7 P.M., along with Metro North and the Long Island Rail Road—the most brutal blow for New Yorkers, cutting us off both from the routes in and out of town and from each other.

Two of my roommates have left. A friend on mine across the street in Zone A has been evacuated. He told me that cops came to his door and told him to get out. Cops also said that power would be cut and people would be locked out of the buildings. Is it just a scare tactic? Cops are driving around blasting messages of evacuation on their bullhorns.

There are still some people holed up in their places in Zone A. I can see their TV’s on, watching news of the storm. As of 1:00am I have seen some tweets that are reporting of flooding in south Brooklyn already from the storm surge. Here is my picture of Grand Central from earlier in the day before the MTA shutdown the train stations (photos of closed station here)

I can haz iPython Notebook –pylab=inline

Hello World for iPython Notebook and Matplotlib

http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/

Excited to go to Hack-a-thon on Sunday

As part of PyData Week in NYC we are going to the hack a thon on Sunday

5 minutes in the spotlight – November 7

I submitted for a chance to speak to NYC at the local Hack and Tell. Wish me luck. If I get in, hopefully some of you will come and support me and learn about the world’s oldest intern.

Knowledge Sharing

 

Today was an awesome day. We setup a small ad-hoc network. Connected almost 10 people and setup VirtualBox with Backtrack5 R3 on everyones laptop. We set up a Windows XP SP2, and Metasploitable boxes on the network too and walked thru demos of Fasttrack, Social Engineering Toolkit, and the basics of Metasploit. We even watched a video on Armitage (everyone’s jaw dropped as they watched how easy and trivial it was to pwn a Microsoft Windows network).

I should have spent more time setting up the lab. Eventually were able to set up Metasploitable and a few people used Metasploit techniques to get root on the box. Here are some resources:

Basic Jargon

List of modules

Book

Tutorials

Videos for pentesters

Metaploit Pentester Blog