Skip to content

Instantly share code, notes, and snippets.

View andreajparker's full-sized avatar

Andrea Parker andreajparker

  • California
View GitHub Profile
letter frequency
A .08167
B .01492
C .02780
D .04253
E .12702
F .02288
G .02022
H .06094
I .06973
A .08167
B .01492
C .02780
D .04253
E .12702
F .02288
G .02022
H .06094
I .06973
letter frequency
A .08167
B .01492
C .02780
D .04253
E .12702
F .02288
G .02022
H .06094
I .06973
@andreajparker
andreajparker / buildings_from_nyt.md
Last active June 16, 2018 22:33
Earthquake buildings with flawed welding technique in SF
@andreajparker
andreajparker / google_docstring_example.py
Created November 6, 2018 06:11
Google-style docstring for Python
# -*- coding: utf-8 -*-
"""Example Google style docstrings.
This module demonstrates documentation as specified by the `Google Python
Style Guide`_. Docstrings may extend over multiple lines. Sections are created
with a section header and a colon followed by a block of indented text.
Example:
Examples can be given using either the ``Example`` or ``Examples``
sections. Sections support any reStructuredText formatting, including
@andreajparker
andreajparker / resources-compromised_domains.md
Created January 8, 2019 22:57
Compromised domain name aggregation sites

potential sources

Note to self Archive/mirror these sites in case they go poof.

Zonefiles.io #1 #2 offers a few thousand free API calls per day to its APIs (1 call / domain, so with 330 million + domains... Yeah, that'd take a while to get a complete set of domain names...)

@andreajparker
andreajparker / disable.sh
Last active December 3, 2019 21:12
Disable bunch of #$!@ in Sierra (Version 2.1)
#!/bin/bash
# IMPORTANT: You will need to disable SIP in order to fully execute this script, you can reenable it after.
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
# Agents to disable
TODISABLE=('com.apple.security.keychainsyncingoveridsproxy' 'com.apple.personad' 'com.apple.passd' 'com.apple.screensharing.MessagesAgent' 'com.apple.CommCenter-osx' 'com.apple.Maps.mapspushd' 'com.apple.Maps.pushdaemon' 'com.apple.photoanalysisd' 'com.apple.telephonyutilities.callservicesd' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.CalendarAgent' 'com.apple.DictationIM' 'com.apple.iCloudUserNotifications' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.gamed' 'com.apple.icloud.findmydeviced.findmydevice-user-agent
@andreajparker
andreajparker / howto.md
Last active February 3, 2019 03:28
SSD Installation

Pre-reqs

Make your bootable USB

It'll look something like this:

@andreajparker
andreajparker / ml_dl_setup_feb_2019.md
Last active February 18, 2019 02:14
CUDA, cuDNN, Python development environment setup under Ubuntu 18.04

walkthrough

We'll be setting up our Ubuntu 18.04 LTS (long-term support) environment to support ML/DL via the GPU in our GeForce GTX 1060 3GB card. Using lshw (see man lshw) via the command sudo lshw -C display | grep product we were able to find out our GPU details such as its "make", "model number", etc. Armed with those details, it's recommended to head on over to Nvidia's CUDA GPUs site: select the GPU family that you have (in our case GeForce), upon which you'll be taken to a page showing you the "Compute Capability" score (in our case, a 6.1 Compute Capability score).

Once you've got your Compute Capability score, click on the score value to be taken to a GPU-card-specific landing page (again, in our case a GeForce GTX 1060). Scrollling down we note that our 3GB card is under the Pascal architecture, with 1152 CUDA cores, 3GB GDD