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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
[ -z "$PS1" ] && return | |
HISTCONTROL=$HISTCONTROL${HISTCONTROL+:}ignoredups | |
HISTCONTROL=ignoreboth | |
shopt -s histappend |
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 | |
FILE="build.xml" | |
echo -e "<project name=\"Ant build generator\" default=\"doc\">\n\n\t<property name=\"src.dir\" value=\".\"/>\n\t<property name=\"doc.dir\" value=\"doc\"/>" > $FILE | |
echo -e "<target name=\"doc\" description=\"Generates \${ant.project.name}'s Javadoc.\">\n\t<javadoc destdir=\"\${doc.dir}\" author=\"true\" version=\"true\">" >> $FILE | |
for line in `find -type d -name 'src'`; do echo -e "<fileset dir=\""$line"\" defaultexcludes=\"no\">\n\t<include name=\"**/*.java\"/>\n</fileset>">>$FILE; done; | |
echo -e "\t\t</javadoc>\n\t</target>\n</project>" >> $FILE |
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
#--------------------------------------------- | |
# TINT2 CONFIG FILE | |
#--------------------------------------------- | |
# | |
#--------------------------------------------- | |
# BACKGROUND AND BORDER | |
#--------------------------------------------- | |
rounded = 1 | |
border_width = 1 | |
background_color = #000000 10 |
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
"hg6928 | |
loadplugins '\.(js|penta)$' | |
group user | |
command! -nargs=+ -description='Twitter client through ttytter.pl' twitter ! ~/scripts/ttytter.pl -status="<args>" | |
highlight Boolean color: #ffa0a0; | |
highlight CompDesc color: #c6c6c6; width: 50%; font-weight: normal !important; | |
highlight CompItem[selected] color: #f0e685; background: #6b8e23; | |
highlight CompTitle color: #78cee4 !important; background: #000000 !important; | |
highlight Disabled color: #bb493b; |
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 | |
xrandr --auto | |
if [ -n "$1" ] && [ $1 == "--vertical" ]; then | |
xrandr --output VGA1 --left-of LVDS1 | |
xrandr --output VGA1 --rotate right | |
elif [ -n "$1" ] && [ $1 == "--above" ]; then | |
xrandr --output VGA1 --above LVDS1 | |
else | |
xrandr --output VGA1 --left-of LVDS1 --rotate normal | |
fi |
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 | |
read "$@" <&0; | |
grep From: | | |
sed 's/>//g' | | |
cut -d '<' -f 2 >> ~/.mail_config/filters/spamer.list 2>&1 |
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 | |
for i in {0..255} ; do | |
printf "\x1b[38;5;${i}mcolour${i}\n" | |
done |
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 | |
#License CC-BY-NC-SA for the code. | |
#This script converts all flac files in a directory into 320kpbs mp3 files, and then move them into another directory, | |
#set as the first argument. The occurences of words Flac and FLAC will be replace in the name of the working director.y | |
#considering wd is /path/nameOfDirectory-FLAC, the new directory will be $1/nameOfDirectory-mp3. | |
#Needs 1 parameter : the path to save the directory containing the mp3 files. | |
if [ $# -eq 1 ]; then | |
currentPath=`pwd` | |
currentFolder=${currentPath##*/} |
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 | |
#License CC-BY-NC-SA for the code. | |
#This script converts all flac files in a directory into 320kpbs mp3 files, and then move them into another directory, | |
#set as the first argument. The occurences of words Flac and FLAC will be replace in the name of the working director.y | |
#considering wd is /path/nameOfDirectory-FLAC, the new directory will be $1/nameOfDirectory-mp3. | |
#Needs 1 parameter : the path to save the directory containing the mp3 files. | |
if [ $# -eq 1 ]; then | |
currentPath=`pwd` | |
currentFolder=${currentPath##*/} |
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
#On fedora __git_ps1 is not in git_completion.sh | |
if [ -f /usr/share/git-core/contrib/completion/git-prompt.sh ]; then | |
. /usr/share/git-core/contrib/completion/git-prompt.sh | |
fi | |
function set_bash_prompt { | |
PS1="\[$IGreen\]\u \[$Blue\]\w \[$Color_Off\]$(__git_ps1 '(%s)') > " | |
} | |
PROMPT_COMMAND=set_bash_prompt |
OlderNewer