Skip to content

Instantly share code, notes, and snippets.

View zevisert's full-sized avatar

Zev Isert zevisert

  • Revela Systems
  • BC
  • 18:23 (UTC -07:00)
  • X @zevisert
View GitHub Profile
@zevisert
zevisert / .zshrc
Last active February 8, 2019 08:03
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="zev"
## Uncomment the following line to use case-sensitive completion.
@zevisert
zevisert / auto-mpg.csv
Last active March 14, 2019 06:29
Dust and Magnet Data
mpg cylinders displacement horsepower weight acceleration model_year origin name
18 8 307 130 3504 12 70 1 chevrolet chevelle malibu
15 8 350 165 3693 11.5 70 1 buick skylark 320
18 8 318 150 3436 11 70 1 plymouth satellite
16 8 304 150 3433 12 70 1 amc rebel sst
17 8 302 140 3449 10.5 70 1 ford torino
15 8 429 198 4341 10 70 1 ford galaxie 500
14 8 454 220 4354 9 70 1 chevrolet impala
14 8 440 215 4312 8.5 70 1 plymouth fury iii
14 8 455 225 4425 10 70 1 pontiac catalina
@zevisert
zevisert / cars-parallel.png
Last active March 14, 2019 16:38
DataVis Presentation Images
cars-parallel.png
@zevisert
zevisert / dotfiles-setup.sh
Last active May 23, 2019 23:19
Initialize from my private dotfiles repository
# Call this using curl:
# curl -Lks https://bit.do/zevisert-dots | /bin/bash
# Fallback to MD5(zevisert-ssh) if no hash is specified
MD5_KEY=${1:-d2:68:da:ce:5c:d8:d1:30:19:6c:63:b8:e9:fa:38:d1}
# Check for an ssh-agent
if [ -n "$SSH_AGENT_PID" -a -e /proc/$SSH_AGENT_PID ];
then
matching_hashes=$(ssh-add -E MD5 -l | grep -c $MD5_KEY);
@zevisert
zevisert / pyproject.json
Created September 26, 2020 04:17
pyproject.toml json-schema including poetry definitions
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"poetry-authors": {
"type": "array",
"description": "List of authors that contributed to the package. This is typically the main maintainers, not the full list.",
"items": {
"type": "string",
"pattern": "^(?:\\S+?\\s)+?(?:<(?:[a-z\\d!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z\\d!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z\\d](?:[a-z\\d-]*[a-z\\d])?\\.)+[a-z\\d](?:[a-z\\d-]*[a-z\\d])?|\\[(?:(?:25[0-5]|2[0-4][\\d]|[01]?[\\d][\\d]?)\\.){3}(?:25[0-5]|2[0-4][\\d]|[01]?[\\d][\\d]?|[a-z\\d-]*[a-z\\d]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])>)?$"
}