Skip to content

Instantly share code, notes, and snippets.

time devices
2025-09-09 16:06:00 273a13ea
2025-09-09 16:05:30 273a13ea
2025-09-09 16:05:00 273a13ea
2025-09-09 16:04:30 273a13ea
2025-09-09 16:04:00 273a13ea
2025-09-09 16:03:30 273a13ea
2025-09-09 16:03:00 273a13ea
2025-09-09 16:02:30 273a13ea
2025-09-09 16:02:00 273a13ea

DSSG Marketplace

State of administrative privilege

feature grants how to
@jesteria
jesteria / open_url_lazy.py
Created March 1, 2020 18:41
pandas chunk-read resource
import ohio
def open_url_lazy(url):
"""construct file-like object for resource at given url"""
chunks = request_chunks(url)
return ohio.IteratorTextIO(chunks)
@jesteria
jesteria / test_store.py
Created May 7, 2019 16:13
functional test for triage storage
import argparse
import random
import re
import string
import sys
from triage.component.catwalk import storage
SIZE_UNITS = 'kmgtpez'
@jesteria
jesteria / store_map_action.py
Created November 8, 2018 21:00
argparse action to store value defined in dict
import argparse
class StoreMapAction(argparse.Action):
Unspec = object()
def __init__(self,
option_strings,
dest,
function prompt_command() {
PS1="${purple}[\h]${red}$(virtualenv_prompt)${normal} \w ${white}$(scm_prompt_info)${normal}» "
}
PROMPT_COMMAND=prompt_command;
## git-theme
# feel free to change git chars.
GIT_THEME_PROMPT_DIRTY=" ${red}✗"
GIT_THEME_PROMPT_CLEAN=" ${bold_green}✓"