Skip to content

Instantly share code, notes, and snippets.

View etihwnad's full-sized avatar

Dan White etihwnad

View GitHub Profile
@etihwnad
etihwnad / conda_env_export.py
Last active June 18, 2023 02:45 — forked from gwerbin/conda_env_export.py
Export a Conda environment with --from-history, but also append Pip-installed dependencies
"""
Export a Conda environment with --from-history, but also append
Pip-installed dependencies
Exports only manually-installed dependencies, excluding build versions, but
including Pip-installed dependencies.
Lots of issues requesting this functionality in the Conda issue tracker, no
sign of progress (as of March 2020).
@etihwnad
etihwnad / whendone.py
Created December 6, 2019 22:18
Give stats about how long a tedious task is taking and an estimate of when it will be finished.
#! /usr/bin/env python3
# MIT license
# Copyright 2019 Dan White
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@etihwnad
etihwnad / rotate.sh
Last active December 13, 2016 19:48 — forked from sarmbruster/rotate.sh
script for Thinkpad X1 Yoga to rotate screen and input devices
#!/bin/sh
# screen and input device rotation for e.g. a Thinkpad X1 Yoga
# adopted from by the script from http://ubuntuforums.org/showthread.php?t=996830&p=6274392#post6274392
#
# Usage:
# ./rotate.sh
# will rotate both the screen and input device either to right or normal setting depending on previous state. Additionally:
# * in "right" layout, a on screen keyboard (onboard) is started or stopped in normal mode
# * the touchpad is switched off in "right" mode

Keybase proof

I hereby claim:

  • I am etihwnad on github.
  • I am etihwnad (https://keybase.io/etihwnad) on keybase.
  • I have a public key whose fingerprint is DA91 A6AE 578A 48D1 BE48 3A65 F76C 2C4B 7F04 32B5

To claim this, I am signing this object:

@etihwnad
etihwnad / make-photo-roster.py
Last active August 13, 2016 19:47
Create a photo roster from ID pics given an input CSV
#! /usr/bin/env python
#support either python 2 and 3
from __future__ import print_function
import argparse
import os
import sys
import csv
@etihwnad
etihwnad / icon.png
Last active May 6, 2023 00:16
Render LaTeX math in the web interface of Slack. Wrap code in $$ ... $$
icon.png