This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# | |
# Run `fix-emails` to change the format of emails in the macOS | |
# clipboard from Apple Mail to Outlook or vice versa. | |
# | |
# You can't copy/paste emails between them by default because their | |
# formats are different. | |
# | |
# Apple mail emails are comma-separated and always use quotes: | |
# "Last, First" <[email protected]>, ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import re | |
import time | |
import contextlib | |
@contextlib.contextmanager | |
def timeit(): | |
start = time.time() | |
try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# Run `fix-emails` to change the format of emails in the macOS | |
# clipboard from Apple Mail to Outlook or vice versa. | |
# | |
# You can't copy/paste emails between them by default because their | |
# formats are different. | |
# | |
# Apple mail emails are comma-separated and always use quotes: | |
# "Last, First" <[email protected]>, ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env spack-python | |
import os | |
import tempfile | |
import spack.patch | |
import spack.repo | |
import spack.util.crypto | |
from spack.util.executable import which |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env spack-python | |
from pprint import pprint | |
from spack.spec import Spec | |
from spack.solver.asp import SpackSolverSetup | |
specs = [ | |
Spec("openblas +ilp64 +shared").concretized(), | |
Spec("openblas ~ilp64 +shared").concretized(), | |
Spec("openblas +ilp64 ~shared").concretized(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
version="$1" | |
docurl() { | |
curl \ | |
-u "tgamblin:$(cat ~/.github/analysis-token)" \ | |
-H 'Accept: application/vnd.github.inertia-preview+json' \ | |
"$@" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env spack-python | |
import os | |
import tempfile | |
from spack.spec import Spec | |
from spack.stage import DIYStage | |
import llnl.util.filesystem as fs | |
# concrtize a spec of what you want to build. | |
spec = Spec("hdf5 @1.10.2").concretized() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env spack-python | |
import os | |
import yaml | |
import json | |
import tempfile | |
import shutil | |
from timeit import timeit | |
import spack.util.spack_yaml as syaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Simple NVD Stats, showing vulnerabilities by OS. | |
# Run on data from https://nvd.nist.gov/download.cfm | |
# by Todd Gamblin | |
import re | |
import subprocess | |
from contextlib import closing | |
class Entry(object): |