Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
"""Set all repositories of a given GitHub organization name for a given user
to watching.
"""
import argparse
import json
import requests
import os
@brettporter
brettporter / oo2otl.py
Created January 3, 2017 22:43 — forked from adambyrtek/oo2otl.py
Quick and dirty OmniOutliner to plain-text conversion
#!/usr/bin/env python
import xml.etree.ElementTree as ET
import sys
import re
class OutlinerParser:
def __init__(self):
self.indent = 0
self.is_note = False
# Uses http://www.ltr-data.se/opencode.html/#ImDisk virtual disk driver for windows 7 or less
# Tries to use chocolatey to install imdisk
# Sample use case:
# Import-Module ".\mount.iso.psm1"
# Invoke-IsoExe "C:\test.iso" "setup.exe" "/passive"
function Mount-Iso([string] $isoPath)
{
if ( -not (Test-Path $isoPath)) { throw "$isoPath does not exist" }