Skip to content

Instantly share code, notes, and snippets.

View egel's full-sized avatar

Maciej Sypien egel

View GitHub Profile
@egel
egel / bash-improver.sh
Created October 10, 2015 09:36
Bash improver - simple script which add color prompt and man pages, popular aliases, 256 xterm color support, better bash history, and git-prompt (you can find it into my gists)
#!/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\]"
@egel
egel / xterm_and_tmux_256_colors.sh
Created October 10, 2015 09:28
Sample configuration installer for 256 color support for your xterm
#!/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'
@egel
egel / git-loglive.sh
Last active October 10, 2015 09:12
Bash git loglive (refreshing git repository log)
#!/bin/sh
while true;
do
clear
echo "Git livelog: $(pwd)"
git log \
--graph \
--all \
--abbrev-commit \
--date=relative \
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
@egel
egel / mint_software_install.sh
Last active August 30, 2015 11:29
Installing most useful software for Linux Mint 17.2
#!/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'
#!/bin/bash
COMMAND=$(profitelo --version)
if [ "$COMMAND" == "v1.0.4" ]
then
sed -i "s/GIT_PROJECT_FOLDER_PATH/GIT_PROJECT_FOLDER_DIR/" ~/.profiteloconfig
echo "Update .profiteloconfig successfully :)"
fi
@egel
egel / texstudio_config
Created April 12, 2015 21:19
My configuration for TeXstudio editor
[General]
IniMode=true
[version]
written_by_TXS_version=2.8.8
written_by_TXS_hg_revision=:
created_by_TXS_version=2.8.8
created_by_TXS_hg_revision=:
[texmaker]
@egel
egel / tmux.md
Last active August 29, 2015 14:16 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@egel
egel / gist:af4325a5eaba75220aec
Created February 8, 2015 21:56
Egel Theme Mix
sudo add-apt-repository -y ppa:moka/daily
sudo add-apt-repository -y ppa:docky-core/ppa # docky repo (not stable but, not close when sleep >2.2.1)
sudo add-apt-repository -y ppa:numix/ppa
sudo apt-get update
sudo apt-get install docky moka-icon-theme moka-desktop moka-desktop-extras numix-gtk-theme
@egel
egel / soft_install_ubuntu_1404
Last active August 29, 2015 14:14
Software installation for Ubuntu 14.04
#!/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'