Skip to content

Instantly share code, notes, and snippets.

View oisinmulvihill's full-sized avatar
🎉

Oisin Mulvihill oisinmulvihill

🎉
View GitHub Profile
@oisinmulvihill
oisinmulvihill / _verify-repair-permissions-disk.md
Created January 10, 2020 17:24 — forked from bzerangue/_verify-repair-permissions-disk.md
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@oisinmulvihill
oisinmulvihill / assert_not_raises.py
Created August 4, 2019 12:58
How to test a python exception is not raised with pytests
# Updated for python3
#
# https://stackoverflow.com/questions/20274987/how-to-use-pytest-to-check-that-error-is-not-raised/35458249#35458249
#
from contextlib import contextmanager
@contextmanager
def not_raises(ExpectedException):
try:

Keybase proof

I hereby claim:

  • I am oisinmulvihill on github.
  • I am oisinmulvihill (https://keybase.io/oisinmulvihill) on keybase.
  • I have a public key ASA9vt7LG4EdVSlrjl-j6Ppm-yUOpSHiN1lnGQZ-tyyQPAo

To claim this, I am signing this object:

@oisinmulvihill
oisinmulvihill / sql.py
Created November 18, 2015 17:32
Very rough hacked together test script of the excellent article http://charlesleifer.com/blog/using-the-sqlite-json1-and-fts5-extensions-with-python/
#
# Oisin Mulvihill
# 2015-11-18
#
# Very rough hacked together test of the excellent article:
# * http://charlesleifer.com/blog/using-the-sqlite-json1-and-fts5-extensions-with-python/
#
import json
import urllib2
from pysqlite2.dbapi2 import connect