Skip to content

Instantly share code, notes, and snippets.

View bukzor's full-sized avatar
🌥️
learning google cloud

Buck Evan bukzor

🌥️
learning google cloud
  • google.com
  • Appleton, WI
  • 15:31 (UTC -05:00)
View GitHub Profile
from __future__ import print_function
import contextlib
import pytest
# Introduce a Loud integer class that has some annoying properties that force us into a bunch of
# set up in our tests (in this case, to prevent unnecessary output to stdout during test)
class LoudInt(int):
@bukzor
bukzor / -
Created April 18, 2017 01:19 — forked from anonymous/-
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
from datetime import datetime
from datetime import timedelta
import pytz
import tzlocal
@bukzor
bukzor / -
Last active April 20, 2016 20:53 — forked from anonymous/-
I'd like to know why docker uses so much disk, even after removing *all* containers, images, and volumes.
It looks like this "diff" has a layer, but the layer isn't referenced by anything at all.
/var/lib/docker/aufs/diff# du-summary
806628 c245c4c6d71ecdd834974e1e679506d33c4aac5f552cb4b28e727a596efc1695-removing
302312 a8001a0e9515cbbda89a54120a89bfd9a3d0304c8d2812401aba33d22a2358ea
302304 957e78f9f9f4036689734df16dabccb98973e2c3de0863ef3f84de85dca8d92d
302256 8db1d610f3fbc71415f534a5d88318bbd2f3f783375813f2288d15f15846d312
288204 ac6b8ff4c0e7b91230ebf4c1caf16f06c1fdceff6111fd58f4ea50fc2dd5050b
288180 04a478c413ea80bcfa7f6560763beef991696eace2624254479e5e5dd69708c6
@bukzor
bukzor / 01.make
Last active August 29, 2015 14:16 — forked from anonymous/01.make
2015-02-24 08:31:40 -0800
make
CC=/usr/bin/gcc-4.8
/usr/bin/gcc-4.8 -Wall -Wshadow -Wcast-align -Wunreachable-code -Winline -Wextra -Wmissing-noreturn -Os -w -pipe -march=core2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPXZ_BUILD_DATE=\"`date +%Y%m%d`\" -DPXZ_VERSION=\"4.999.9beta\" -O2 -fopenmp -L/home/buck/prefices/brew/lib -Wl,-rpath,/home/buck/prefices/brew/lib -llzma pxz.c -o pxz
/tmp/buck/ccIkHWNW.o: In function `main._omp_fn.0':
pxz.c:(.text+0xee): undefined reference to `lzma_easy_encoder'
pxz.c:(.text+0x15e): undefined reference to `lzma_code'
pxz.c:(.text+0x1f1): undefined reference to `lzma_code'
DISTRO:
Distributor ID: Ubuntu
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty
KERNEL:
Linux xubuntu-try4 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
DMIDECODE: