Skip to content

Instantly share code, notes, and snippets.

View etihwnad's full-sized avatar

Dan White etihwnad

View GitHub Profile
@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
@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).