This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
green='\e[1;32m' # '\e[1;32m' is too bright for white bg. | |
red='\e[0;31m' | |
yellow='\e[0;33m' | |
purple='\e[0;35m' | |
endColor='\e[0m' | |
echo -e "${purple}====== Install: cowsay, fortune-mod ======${endColor}" | |
sudo apt-get install -y cowsay fortune-mod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Bash Extras - personal configuration | |
RESET="\[\017\]" | |
NORMAL="\[\033[00m\]" | |
GREEN="\[\033[01;32m\]" | |
PURPLE="\[\033[01;35m\]" | |
BLUE="\[\033[01;34m\]" | |
RED="\[\033[31;1m\]" | |
YELLOW="\[\033[01;33m\]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run this program to add 256 color support for your xterm | |
green='\e[0;32m' # '\e[1;32m' is too bright for white bg. | |
red='\e[0;31m' | |
yellow='\e[0;33m' | |
purple='\e[0;35m' | |
endColor='\e[0m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To work, link this file to your .bashrc file | |
# Add colors to man pages | |
export LESS_TERMCAP_mb=$'\E[01;31m' # enter blinking mode | |
export LESS_TERMCAP_md=$'\E[01;31m' # enter double-bright mode | |
export LESS_TERMCAP_me=$'\E[0m' # turn off all appearance modes (mb, md, so, us) | |
export LESS_TERMCAP_se=$'\E[0m' # leave standout mode | |
export LESS_TERMCAP_so=$'\E[01;44;33m' # enter standout mode – yellow | |
export LESS_TERMCAP_ue=$'\E[0m' # leave underline mode | |
export LESS_TERMCAP_us=$'\E[01;32m' # enter underline mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash/zsh git prompt support | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# This script allows you to see repository status in your prompt. | |
# | |
# To enable: | |
# | |
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while true; | |
do | |
clear | |
echo "Git livelog: $(pwd)" | |
git log \ | |
--graph \ | |
--all \ | |
--abbrev-commit \ | |
--date=relative \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
class Colors: | |
HEADER = '\033[95m' | |
OKBLUE = '\033[94m' | |
OKGREEN = '\033[92m' | |
WARNING = '\033[93m' | |
FAIL = '\033[91m' | |
ENDC = '\033[0m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libffi-dev libssl-dev # for python | |
sudo pip install requests[security] | |
sudo apt-get install libgtkspell-dev libgtkspell0 | |
sudo apt-get install libdb6.0-* # berkley db | |
sudo apt-get install libboost-all-dev # boost lib c++ | |
# lucane plus plus lib | |
git clone https://github.com/luceneplusplus/LucenePlusPlus.git | |
mkdir LucenePlusPlus/build; cd LucenePlusPlus.build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# General colors | |
black='\x1B[0;30m' | |
red='\x1B[0;31m' | |
green='\x1B[0;32m' # '\x1B[1;32m' is too bright for white bg. | |
blue='\x1B[1;34m' | |
yellow='\x1B[0;33m' | |
purple='\x1B[1;35m' | |
cyan='\x1B[0;36m' |