Skip to content

Instantly share code, notes, and snippets.

View zeddee's full-sized avatar

Zed zeddee

View GitHub Profile
@zeddee
zeddee / basic-azure-rest-client.py
Last active February 10, 2020 08:37
Me trying to grok how to make a basic REST client in Python for Azure Blob Storage services
#!/usr/bin/env python3
import requests
import os
from dotenv import load_dotenv
from datetime import datetime
from azure.storage.common import CloudStorageAccount
load_dotenv('.env')
# from https://course.spacy.io/chapter1
from spacy.lang.en import English
nlp = English()
doc = nlp("hello world!!! one 123")
for token in doc:
print(token.text)
print(doc)
@zeddee
zeddee / azure-grok.rst
Last active March 21, 2020 23:58
added suffix to sectnum directive

Azure Grok

Getting started

@zeddee
zeddee / nytimes-library-test.rst
Last active January 3, 2020 07:47
removed z-iam-roles file for shorter gist

Setting up nytimes/library

This gist is just me trying to make sense of installing and running https://github.com/nytimes/library and figuring out where I've gone wrong.

So far, I've found that at v1.2.0, the library:

The tree <location> command lists the contents of <location> as an ASCII-formatted directory tree.

For example, to:

  • List the contents of the current working directory ($(pwd)),
  • List all hidden files and folders,
  • Exclude the node_modules and .git directories,

Run:

// todo:
// - send 3 "pings" concurrently
// - receive the pings and store them in a slice called "msgbox"
// - print the contents of the "msgbox" -- it should contain 3 "ping" strings
package main
import (
"fmt"
"sync"
)
# there's an ARM-compatible version here: https://github.com/ulm0/gitlab
# datadir and other dirs gleaned from the above repo
docker run -d --rm \
-p 8888:80 \
-p 8443:443 \
-p 8822:22 \
-p 8880:8080 \
-v $(pwd)/config:/etc/gitlab \
-v $(pwd)/log:/var/log/gitlab \
-v $(pwd)/data:/var/opt/gitlab \
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
====
Sphinx Grok
====
Examples of Sphinx projects from official sphinx-doc documentation:
https://www.sphinx-doc.org/en/master/examples.html
----
Why Use Sphinx