Skip to content

Instantly share code, notes, and snippets.

View cve_template.yaml
<CVE ID>:
- reviewer: <your github name>
date: 2020-08-05
comment: >
Explanation of your determinations and why,
using R1, R2, etc. to point to the References section.
affected:
- fizzbuzz<0.11.1
unaffected:
- fizzbuzz>=0.11.1
View libssh2_182_exports.txt
Microsoft (R) COFF/PE Dumper Version 14.16.27032.1
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file libssh2.dll
File Type: DLL
Section contains the following exports for libssh2.dll
View cof.py
#! /usr/bin/env python
import argparse
import os
import re
def parse_args():
parser = argparse.ArgumentParser(description="Submit c3i one-off job(s)")
parser.add_argument(
View conda_update_spec.md

Conda packages contain a metadata file (index.json) which provides information about the package and the software contained within. The metadata for all packages within a channel are combined into a single json file (repodata.json) which is used by conda for package discovery and to resolve and verify dependencies when a package is installed or removed from an environment.

Unfortunately, the metadata contained within a package may be incorrect, either because of a mistake made when the package was created or because new information makes the original metadata incomplete.

View gist:96a5183c13db17d67386ecb2b122ddbf
(orange) ~$ conda --version
conda 4.5.11
(orange) ~$ conda list
# packages in environment at /home/jhelmus/anaconda3/envs/orange:
#
# Name Version Build Channel
ca-certificates 2018.03.07 0 defaults
libedit 3.1.20170329 h6b74fdf_2 defaults
libffi 3.2.1 hd88cf55_4 defaults
libgcc-ng 8.2.0 hdf63c60_1 defaults
@jjhelmus
jjhelmus / plot_polar_bokeh.py
Created Apr 14, 2014
Plotting Polar data with Bokeh
View plot_polar_bokeh.py
# Plot polar data using Bokeh
# Author: Jonathan J. Helmus
import numpy as np
from bokeh.plotting import *
# Data in polar coordinates
azimuths = np.linspace(0, 2 * np.pi, 20)
ranges = np.array([2, 4, 6, 8])
View Dockerfile
FROM centos:6
RUN yum install -y \
bzip2 \
curl \
git \
yum clean all
RUN cd ~ && \
git clone https://github.com/conda/conda && \
View gemmlowp_hash.patch
diff --git a/tensorflow/contrib/cmake/external/gemmlowp.cmake b/tensorflow/contrib/cmake/external/gemmlowp.cmake
index eee61ff..436b5d1 100644
--- a/tensorflow/contrib/cmake/external/gemmlowp.cmake
+++ b/tensorflow/contrib/cmake/external/gemmlowp.cmake
@@ -15,7 +15,7 @@
include (ExternalProject)
set(gemmlowp_URL http://github.com/google/gemmlowp/archive/a6f29d8ac48d63293f845f2253eccbf86bc28321.tar.gz)
-set(gemmlowp_HASH SHA256=75d40ea8e68b0d1644f052fffe8f14a410b2a73d40ccb859a95c0578d194ec26)
+set(gemmlowp_HASH SHA256=1e40863d9f15dd6b15f8f18f49c500944be6118d9fe17e9dc58a1c709cadbb8a)
@jjhelmus
jjhelmus / update_token.py
Created Aug 14, 2017
Python script to update the Anaconda upload token in conda-forge feedstocks
View update_token.py
from __future__ import print_function
import os
import requests
import ruamel.yaml
with open(os.path.expanduser('~/.conda-smithy/circle.token'), 'r') as fh:
circle_token = fh.read().strip()
View find_short_prefix.py
#! /usr/bin/env python3
""" Find conda packages which use a binary prefix. """
import argparse
import bz2
import json
import os
import tarfile
import urllib.request