Skip to content

Instantly share code, notes, and snippets.

View beckermr's full-sized avatar

Matthew R. Becker beckermr

View GitHub Profile
@beckermr
beckermr / Untitled.ipynb
Last active February 2, 2022 21:27
hybrideb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@beckermr
beckermr / bin_shears.ipynb
Created October 30, 2021 10:53
binning shears on CCDs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@beckermr
beckermr / examples_and_notes.ipynb
Created August 4, 2021 18:15
boolean_masks.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@beckermr
beckermr / metadetect_two_stage_ngmix_pm.ipynb
Last active July 22, 2021 16:14
metadetect_two_stage_ngmix_pm.ipynb
Loading
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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
Loading
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]