Skip to content

Instantly share code, notes, and snippets.

View beckermr's full-sized avatar

Matthew R. Becker beckermr

View GitHub Profile
@beckermr
beckermr / metadetect_two_stage_ngmix_pm.ipynb
Last active July 22, 2021 16:14
metadetect_two_stage_ngmix_pm.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@beckermr
beckermr / notebook.ipynb
Last active September 9, 2021 18:22
notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@beckermr
beckermr / risk_census.ipynb
Last active December 9, 2020 14:22
risk_census.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@beckermr
beckermr / get_hist.py
Created May 24, 2020 11:19
get conda package history for cf-staging
r = requests.get("https://anaconda.org/cf-staging/repo/history?label=all", headers={'Authorization': 'token %s' % token})
from bs4 import BeautifulSoup
soup = BeautifulSoup(r.text, 'html.parser')
# this is the table
tb = soup.find("table", class_="full-width")
# this iterates over all of the rows
for r in soup.find_all("tr"):
print(r)
@beckermr
beckermr / diff.txt
Last active March 17, 2021 10:53
sysroot diff conda cos6
(base) clarence:Downloads beckermr$ diff -qr gcc_impl_linux-64-7.3.0-hd420e75_5/x86_64-conda_cos6-linux-gnu/sysroot sysroot_linux-64-2.12-0/x86_64-conda-linux-gnu/sysroot | grep "Only in"
Only in sysroot_linux-64-2.12-0/x86_64-conda-linux-gnu/sysroot/etc: default
Only in sysroot_linux-64-2.12-0/x86_64-conda-linux-gnu/sysroot/etc: gai.conf
Only in sysroot_linux-64-2.12-0/x86_64-conda-linux-gnu/sysroot/etc: ld.so.conf
Only in sysroot_linux-64-2.12-0/x86_64-conda-linux-gnu/sysroot/etc: nsswitch.conf
Only in gcc_impl_linux-64-7.3.0-hd420e75_5/x86_64-conda_cos6-linux-gnu/sysroot/lib: ld-2.12.2.so
Only in sysroot_linux-64-2.12-0/x86_64-conda-linux-gnu/sysroot/lib: ld-2.12.so
Only in gcc_impl_linux-64-7.3.0-hd420e75_5/x86_64-conda_cos6-linux-gnu/sysroot/lib: libBrokenLocale-2.12.2.so
Only in sysroot_linux-64-2.12-0/x86_64-conda-linux-gnu/sysroot/lib: libBrokenLocale-2.12.so
Only in gcc_impl_linux-64-7.3.0-hd420e75_5/x86_64-conda_cos6-linux-gnu/sysroot/lib: libanl-2.12.2.so
@beckermr
beckermr / mangle_homebrew.py
Last active April 10, 2020 12:32
homebrew-rename
#!/usr/bin/env python
from __future__ import print_function
import os
import subprocess
import shutil
import uuid
import sys
MANGLE_STR = 'h' + uuid.uuid4().hex[0:6]
@beckermr
beckermr / .condarc
Last active March 31, 2020 16:29
firecrown install
channels:
- conda-forge
- defaults
show_channel_urls: True
channel_priority: strict
@beckermr
beckermr / des_y3_plots.ipynb
Last active April 25, 2020 16:32
notebook for making DES y3 plots
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@beckermr
beckermr / clone.sh
Last active March 19, 2020 21:56
conda forge graph getting started
#!/usr/bin/env bash
git clone https://github.com/regro/cf-scripts.git
pushd cf-scripts
pip install --no-deps -e .
popd
git clone --depth=1 https://github.com/regro/cf-graph-countyfair.git
cd cf-graph-countyfair