Skip to content

Instantly share code, notes, and snippets.

View stharding's full-sized avatar

Stephen Harding stharding

View GitHub Profile
@stharding
stharding / swagger-yaml-to-html.py
Created June 26, 2020 00:23 — forked from oseiskar/swagger-yaml-to-html.py
Converts Swagger YAML to a static HTML document (needs: pip install PyYAML)
#!/usr/bin/python
#
# Copyright 2017 Otto Seiskari
# Licensed under the Apache License, Version 2.0.
# See http://www.apache.org/licenses/LICENSE-2.0 for the full text.
#
# This file is based on
# https://github.com/swagger-api/swagger-ui/blob/4f1772f6544699bc748299bd65f7ae2112777abc/dist/index.html
# (Copyright 2017 SmartBear Software, Licensed under Apache 2.0)
#
@stharding
stharding / gist:218bae1733d906698be1
Created January 20, 2016 03:50
BAP install debug output
00:00.006 SYSTEM locking /Users/harding/.opam/lock
00:00.007 STATE LOAD-STATE(switch-lock)
00:00.021 CUDF Checking version of criteria accepted by the external solver
00:00.036 SYSTEM [log-64298-4438d8] (in 0.001s) aspcud -v
00:00.036 CUDF Solver is aspcud > 1.9: using latest version criteria
00:00.057 STATE Loaded /Users/harding/.opam/state.cache in 0.019s
00:00.106 STATE ROOT : /Users/harding/.opam
00:00.106 STATE SWITCH : 4.02.1
00:00.106 STATE COMPILER : 4.02.1
00:00.106 STATE COMPILERS : { 3.07, 3.08.0, 3.08.1, 3.08.2, 3.08.3, 3.08.4, 3.09.0, 3.09.1, 3.09.2, 3.09.3, 3.10.0, 3.10.1, 3.10.2, 3.11.0, 3.11.1, 3.11.2, 3.12.0, 3.12.1, 4.00.0, 4.00.0+debug-runtime, 4.00.0+fp, 4.00.1, 4.00.1+BER, 4.00.1+PIC, 4.00.1+alloc-profiling, 4.00.1
@stharding
stharding / curry.py
Created November 3, 2015 05:01 — forked from JulienPalard/curry.py
KISS Python curry
#!/usr/bin/env python
def curry(func):
"""
Decorator to curry a function, typical usage:
>>> @curry
... def foo(a, b, c):
... return a + b + c
@stharding
stharding / usr-local-lib-listing
Created July 24, 2014 16:37
Listing of /usr/local/lib
total 4164192
-rwxr-xr-x 1 root root 368912 Jul 23 09:10 BugpointPasses.so
drwxr-xr-x 3 root root 4096 Jul 23 09:10 clang
-rwxr-xr-x 1 root root 75511976 Jul 23 09:11 libclang.a
-rwxr-xr-x 1 root root 59532982 Jul 23 09:10 libclangAnalysis.a
-rwxr-xr-x 1 root root 194562210 Jul 23 09:11 libclangARCMigrate.a
-rwxr-xr-x 1 root root 196338566 Jul 23 09:10 libclangAST.a
-rwxr-xr-x 1 root root 24781468 Jul 23 09:10 libclangASTMatchers.a
-rwxr-xr-x 1 root root 17806528 Jul 23 09:10 libclangBasic.a
-rwxr-xr-x 1 root root 276249136 Jul 23 09:10 libclangCodeGen.a
@stharding
stharding / ste-makefile-output-error
Created July 22, 2014 22:04
ste makefile fails to build stp
make -j8 -C tools-release ENABLE_OPTIMIZED=1 REQUIRES_RTTI=1
make[1]: Entering directory `/repos/build/tools-release'
make[2]: Entering directory `/repos/build/tools-release/lib'
make[3]: Entering directory `/repos/build/tools-release/lib/Utils'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/repos/build/tools-release/lib/Utils'
make[3]: Entering directory `/repos/build/tools-release/lib/ExecutionTracer'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/repos/build/tools-release/lib/ExecutionTracer'
make[3]: Entering directory `/repos/build/tools-release/lib/BinaryReaders'
@stharding
stharding / libbeauty-make-output
Last active August 29, 2015 14:04
libbeauty make fails to build
Making all in src
make[1]: Entering directory `/repos/libbeauty/libbeauty/src'
make all-recursive
make[2]: Entering directory `/repos/libbeauty/libbeauty/src'
Making all in input
make[3]: Entering directory `/repos/libbeauty/libbeauty/src/input'
Making all in binary_file_decoder
make[4]: Entering directory `/repos/libbeauty/libbeauty/src/input/binary_file_decoder'
Making all in libbfd
make[5]: Entering directory `/repos/libbeauty/libbeauty/src/input/binary_file_decoder/libbfd'