git
discard all local changes/commits and pull from upstream
git reset --hard origin/master
git pull origin master
#!/bin/bash | |
# | |
# rotate_desktop.sh | |
# | |
# Rotates modern Linux desktop screen and input devices to match. Handy for | |
# convertible notebooks. Call this script from panel launchers, keyboard | |
# shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.). | |
# | |
# Using transformation matrix bits taken from: | |
# https://wiki.ubuntu.com/X/InputCoordinateTransformation |
git
discard all local changes/commits and pull from upstream
git reset --hard origin/master
git pull origin master
;;; stupid-indent-mode.el --- Plain stupid indentation minor mode | |
;; Copyright (C) 2013 Mihai Bazon | |
;; Author: Mihai Bazon <mihai.bazon@gmail.com> | |
;; Keywords: | |
;; This program is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation, either version 3 of the License, or |
def removecomments(s): | |
inCommentSingle = False | |
inCommentMulti = False | |
inString = False | |
t = [] | |
l = len(s) | |
i = 0 | |
fromIndex = 0 |
#! /usr/bin/env python | |
""" Convert values between RGB hex codes and xterm-256 color codes. | |
Nice long listing of all 256 colors and their codes. Useful for | |
developing console color themes, or even script output schemes. | |
Resources: | |
* http://en.wikipedia.org/wiki/8-bit_color | |
* http://en.wikipedia.org/wiki/ANSI_escape_code |