If you are missing colors in the terminal / console, (and the 'l' shortcut command) here is how to fix that.
Open your ~/.bashrc
file in an editor
vim ~/.bashrc
and add the following at the bottom
# script to smartly backup files using cp rather than rsync | |
import sys | |
import os | |
import exceptions | |
from pprint import pprint as pp | |
def removeFile(fp): | |
os.remove(fp) |
import sys | |
import os | |
import traceback | |
from pprint import pprint as pp | |
import string | |
def cleanupName(s): | |
while ' ' in s: | |
s = s.replace(' ', ' ') |
from _winreg import * | |
"""print r"*** Reading from HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\HID ***" """ | |
aReg = ConnectRegistry(None,HKEY_LOCAL_MACHINE) | |
FLIP_FLOP_VALUE = 1 | |
aKey = OpenKey(aReg, r"SYSTEM\CurrentControlSet\Enum\HID") | |
for i in range(1024): |
// returns a range as a list | |
function range(start, stop, step) { | |
let result = [] | |
if (step === undefined) { | |
step = 1 | |
} | |
if (stop === undefined) { | |
stop = start | |
start = 0 | |
} |
// Returns a random number between min (inclusive) and max (exclusive) | |
function rand(min, max) { | |
return Math.random() * (max - min) + min; | |
} | |
// Returns a random integer between min (included) and max (excluded) | |
// Using Math.round() will give you a non-uniform distribution! | |
function randInt(min, max) { | |
return Math.floor(Math.random() * (max - min)) + min; | |
} |
If you are missing colors in the terminal / console, (and the 'l' shortcut command) here is how to fix that.
Open your ~/.bashrc
file in an editor
vim ~/.bashrc
and add the following at the bottom
Here are some useful git config options for
First, create a ~/.gitconfig
file for your user account, which will store the changes we are about to make.
touch ~/.gitconfig
sudo apt-get remove overlay-scrollbar
sudo apt-get remove liboverlay-scrollbar-0.2-0
sudo apt-get remove liboverlay-scrollbar3-0.2-0
; Show on all desktops and Always on top shortcuts for windows | |
WS_EX_TOOLWINDOW := 0x00000080 | |
+MButton::WinSet, ExStyle, ^%WS_EX_TOOLWINDOW%, A | |
^MButton::WinSet, AlwaysOnTop, toggle, A | |
; osx key emulation | |
#Right::send {End} | |
#Left::send {Home} | |
#+Right::send {LShift down}{End}{LShift up} | |
#+Left::send {LShift down}{Home}{LShift up} |