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
  • 03:24 (UTC -05:00)
View GitHub Profile
@bukzor
bukzor / gist:8746934
Last active May 30, 2019 00:44
Sierpinski Gasket, in sed
CMD='h;s/(.)/\1\1\1/g;x;s/(.)/\1 \1/g;H;s/(.) (.)/\1\1\2/g;H;x' sh -c 'echo "|" | sed -r "$CMD" | sed -r "$CMD" | sed -r "$CMD" | sed -r "$CMD"'
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| || || || || || || || || || || || || || || || || || || || || || || || || || || |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
||| |||||| |||||| |||||| |||||| |||||| |||||| |||||| |||||| |||
| | | || | | || | | || | | || | | || | | || | | || | | || | | |
||| |||||| |||||| |||||| |||||| |||||| |||||| |||||| |||||| |||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| || || || || || || || || || || || || || || || || || || || || || || || || || || |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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:
@bukzor
bukzor / slow-pip.png
Last active August 29, 2015 14:06
pip-wheel profile
NT
@bukzor
bukzor / .gitignore
Last active August 29, 2015 14:06
find_requirements diagram
*/
@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'
#include <Python.h>
static PyObject* _hello_world(PyObject* self) {
PyObject_Print(PyUnicode_FromString("hello world\n"), stdout, Py_PRINT_RAW);
return Py_None;
}
static struct PyMethodDef methods[] = {
{"hello_world", (PyCFunction)_hello_world, METH_NOARGS},
{NULL, NULL}
@bukzor
bukzor / gist:56a191b7cd526787338f
Created March 2, 2016 22:05
trying PURGE for the codecov badge
$ curl -vvX PURGE https://codecov.io/github/Yelp/venv-update/coverage.svg?branch=development
* About to connect() to codecov.io port 443 (#0)
* Trying 54.225.168.88... connected
* Connected to codecov.io (54.225.168.88) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
$ curl https://api.github.com/repos/Yelp/venv-update/branches
[
{
"name": "development",
"commit": {
"sha": "6298d4a2c9161525275e95f25bd5b3b1ac2feb41",
"url": "https://api.github.com/repos/Yelp/venv-update/commits/6298d4a2c9161525275e95f25bd5b3b1ac2feb41"
}
},
{
# Simulate two slowly-running batch jobs:
slow() {
# print stdout at 10bps
pv -qL 10
}
timestamp() {
# prefix stdin with a sortable timestamp
tai64n
@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