Skip to content

Instantly share code, notes, and snippets.

@ysim
ysim / bash_prompt
Last active March 9, 2018 19:49
A bash prompt for your git status and more.
#!/bin/bash
# DESCRIPTION:
# You might find this bash prompt useful if you make regular use of Git and
# virtualenv.
#
# FEATURES:
# - Displays any activated virtualenv.
# - Displays the username and current working directory.
# - Displays the current git branch, as well as the number of commits to
@ysim
ysim / README.md
Last active April 16, 2022 21:14
Toggle touchpad on/off on Ubuntu

Toggle the touchpad on/off with a keyboard shortcut on Ubuntu 16.04

The keyboard on the Dell XPS is far too sensitive and I would prefer for the touchpad to be disabled while a mouse is plugged in.

Instructions

  1. In the Terminal, determine the device number that corresponds to your touchpad by running:

     xinput