I was asking about something like this yesterday in IRC, can't wait to hear how it goes for ya. ![]()
51 2009-02-04 22:19:52
Re: version controlled home directory (15 replies, posted in Tips, Tricks & Scripts)
52 2009-02-04 11:27:48
Re: Spotify (17 replies, posted in Off Topic / General Chat)
I got so excited 'til it told me it wouldn't work for my country. Now I know how Canada feels. ![]()
53 2009-02-04 02:48:38
Re: What are you listening to right now ? (6,227 replies, posted in Off Topic / General Chat)
Amy Winehouse - Some Unholy War :x
54 2009-02-03 22:06:17
Re: [Solved] Remove app from right click context menu in Thunar (7 replies, posted in Help & Support (Stable))
I have this problem too with not being able to remove apps from the menu, thanks for the tip anonymous, though I wish I could figure out why it's inactive in the first place. ![]()
55 2009-02-03 11:52:27
Topic: Post your .bashrc! (132 replies, posted in Tips, Tricks & Scripts)
Title says it all, post your .bashrc, .bash_profile, etc with an explanation if ya feel like it. ![]()
If you're new to .bashrc or like editing it a lot, one good alias is alias reload='source ~/.bashrc'. This way you can type reload everytime you make a change to .bashrc to see the changes.
Mine's mainly aliases for easy/quick browsing and the extract function. Been tryin' to think of more useful things to add.
PS1='\[\033[1;31m\]\W/\[\033[0m\] '
##### DEFAULTS #####
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
PROMPT_COLOR='35;1m'
export HISTCONTROL=ignoreboth
export EDITOR="nano"
export VISUAL="nano"
shopt -s histappend
shopt -s checkwinsize
# Make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# Set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# Color prompt
force_color_prompt=yes
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
##### CUSTOM STARTS HERE #####
### FUNCTIONS
# Easy extract
extract () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) rar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
*.tgz) tar xvzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*) echo "don't know how to extract '$1'..." ;;
esac
else
echo "'$1' is not a valid file!"
fi
}
# Makes directory then moves into it
function mkcdr {
mkdir -p -v $1
cd $1
}
# Creates an archive from given directory
mktar() { tar cvf "${1%%/}.tar" "${1%%/}/"; }
mktgz() { tar cvzf "${1%%/}.tar.gz" "${1%%/}/"; }
mktbz() { tar cvjf "${1%%/}.tar.bz2" "${1%%/}/"; }
### ALIASES
## Keeping things organized
alias ls='ls --color=auto'
alias ll='ls -l'
alias la='ls -A'
alias rm='mv -t ~/.local/share/Trash/files'
alias cp='cp -i'
alias mv='mv -i'
alias mkdir='mkdir -p -v'
alias df='df -h'
alias du='du -h -c'
alias reload='source ~/.bashrc'
alias biggest='BLOCKSIZE=1048576; du -x | sort -nr | head -10'
## Moving around & all that jazz
alias back='cd $OLDPWD'
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ......="cd ../../../../.."
## Dir shortcuts
alias home='cd ~/'
alias documents='cd ~/Documents'
alias downloads='cd ~/Downloads'
alias books='cd ~/eBooks'
alias images='cd ~/Images'
alias packages='cd ~/Packages'
alias aruby='cd ~/Ruby'
alias torrents='cd ~/Torrents'
alias videos='cd ~/Videos'
alias webdesign='cd ~/Web\ Design'
alias localhost='cd /var/www'
## App-specific
alias nano='nano -W -m'
alias music='ncmpcpp'
alias ftp='ncftp Personal'
alias wget='wget -c'
alias scrot='scrot -c -d 7'
## Easy script callin'
alias show-info='~/.bin/info.pl'
alias show-colors='~/.bin/colors.sh'
## Sudo fixes
alias install='sudo apt-get install'
alias remove='sudo apt-get remove'
alias orphand='sudo deborphan | xargs sudo apt-get -y remove --purge'
alias cleanup='sudo apt-get autoclean && sudo apt-get autoremove && sudo apt-get clean && sudo apt-get remove && orphand'
alias updatedb='sudo updatedb'
## Dev related
alias restart-apache='sudo /etc/init.d/apache2 restart'
## Misc
alias edit='nano'56 2009-02-03 08:44:02
Re: And a warm welcome to... me? (10 replies, posted in Introductions)
Warm welcome, Joshnunn. Glad you're liking #!, and appreciate us havin' our sh-t together. ![]()
57 2009-02-03 08:42:28
Re: CrunchBang's Guide for Beginners (First Draft, and Wiki discussion) (57 replies, posted in CrunchBang Talk)
kestrel wrote:Figuring out the importation of the articles seems to me to be the biggest challenge.
About that, personally I am not sure that duplicating the articles on the Wiki is totally desirable -- I was thinking more in terms of using TiddlyWiki to produce a guide/handbook with Tiddlers which could be linked to from Openbox's main menu, as opposed to trying to distribute a full community wiki.
Distributing TiddlyWiki would be very easy, producing it could prove to be more difficult; although as I am sure you are aware, it does come with some excellent features for importing Tiddlers and plugins. I think a collaborative effort could be arranged without too much effort.
Also, I found a very interesting plugin for launching applications from within a Tiddler, this could be used to great affect when detailing how to edit config files etc. For example, when detailing how to edit ~/.config/openbox/rc.xml a button could be provided to open the file.
Anyhow, I almost completely sold on the idea of using TiddlyWiki, not only because I believe it would make an excellent platform for delivery, but because the alternatives (?) are far from convincing.
Sounds like a great idea to me, especially like having it in the OB menu.
58 2009-02-03 02:48:40
Re: Not sure who conferred my membership status but... (3 replies, posted in Feedback & Suggestions)
3. I hope this doesn't raise the bar on expectations from any contributions I might make
Oh, it does. ![]()
59 2009-02-02 19:51:18
Re: The Free Software Conundrum (25 replies, posted in Off Topic / General Chat)
Nik_Doof wrote:anonymous wrote:As repeated by other, using free software is great but sometimes I find that the best or necessary software may not be free.
+1, I think that just sums it up for me.
*cough*dreamweaver > text editor for web pages*cough*
Last time I used Dreamweaver (granted it's been many years back) it was horrible at creating clean and standard code. I enjoy text editors more either way, even nano'll do it for me. ![]()
But I do agree with anonymouse, I'm not gonna go out of my way to use free software. What works, works.
60 2009-02-02 18:30:06
Re: #! CrunchBang Linux Desktop Screenshots (1,110 replies, posted in Artwork & Screenshots)
Looks nice, Bast. Definitely stealing your conky. ![]()
61 2009-02-01 22:52:42
Re: #! Install with LXDE instead of Openbox as only wm. (18 replies, posted in Help & Support (Stable))
dannytatom wrote:Also, if you relly want lxde, they have their own version of ubuntu you can get. http://lxde.org/download
The PUD distro seems to work well in many ways, but doesn't seem to provide the same Ubuntu language modules. It seems to be only English and Chinese centric. It also includes things like OpenOffice.org, which in my estimation can by no means be considered to be "light".
No doubt, was just mentioinin' it in case ya didn't know. ![]()
62 2009-02-01 21:06:21
Re: #! Install with LXDE instead of Openbox as only wm. (18 replies, posted in Help & Support (Stable))
Also, if you relly want lxde, they have their own version of ubuntu you can get. http://lxde.org/download
63 2009-02-01 07:56:33
Re: Introducing Myself (9 replies, posted in Introductions)
'elo and welcome aboard, Liam. ![]()
64 2009-01-31 23:47:00
Re: #! Ubiquity commands (7 replies, posted in Tips, Tricks & Scripts)
Added to the wiki: http://crunchbanglinux.org/wiki/crunchb y_commands
65 2009-01-31 22:03:32
Re: #! Ubiquity commands (7 replies, posted in Tips, Tricks & Scripts)
You can easily add these to the herd, though I forget how.
Anyone fancy making a #! skin for ubiquity?
There's a way to do it, and it's not hard, but last time I checked it wasn't well done. Like if I were to put all the commands on a page, there'd be an "Add to herd" button. Problem would be you'd have to all or not, so this way seems better fit in case someone only wants the forums or wiki and not the other.
Or, of course, you can set seperate pages for each command. This seems a bit easier to manage, though.
66 2009-01-31 11:55:42
Topic: #! Ubiquity commands (7 replies, posted in Tips, Tricks & Scripts)
If you use the firefox add-on Ubiquity, I made a couple commands to search the forums and wiki.
To install 'em, Ctrl+Space (or whatever you have set to open Ubiquity) and type in command-editor. There'll be a huge textbox on the page, paste this in there:
makeSearchCommand({
name: "crunchwiki",
url: "http://crunchbanglinux.org/wiki/?do=search&id={QUERY}",
icon: "http://crunchbanglinux.org/favicon.ico",
description: "Searches the CrunchBang Wiki."
});
makeSearchCommand({
name: "crunchbbs",
url: "http://crunchbanglinux.org/forums/search/?action=search&keywords={QUERY}",
icon: "http://crunchbanglinux.org/favicon.ico",
description: "Searches the CrunchBang Forums."
});It saves as you type, so once you paste it go ahead and ctrl+space and type crunchbbs for the forums or crunchwiki for the wiki.
Enjoy. ![]()
67 2009-01-30 23:59:46
Re: Pypanel (7 replies, posted in Tips, Tricks & Scripts)
I've been using pypanel for the last few days and love it. When/if iggy fixes this bug, will it be included as the default panel for lite instead of lxpanel? Seems to me like a better choice, at least.
68 2009-01-30 10:05:02
Re: #! CrunchBang Linux Desktop Screenshots (1,110 replies, posted in Artwork & Screenshots)
69 2009-01-29 22:31:41
Re: #! CrunchBang Linux Desktop Screenshots (1,110 replies, posted in Artwork & Screenshots)
Thank you, ma'am! They're here if you want 'em:
70 2009-01-29 22:23:35
Re: #! CrunchBang Linux Desktop Screenshots (1,110 replies, posted in Artwork & Screenshots)
71 2009-01-28 21:38:23
Re: CrunchBang's Guide for Beginners (First Draft, and Wiki discussion) (57 replies, posted in CrunchBang Talk)
Sounds good to me, just don't ignore the terminal. ![]()
72 2009-01-28 19:36:23
Re: #! CrunchBang Linux Desktop Screenshots (1,110 replies, posted in Artwork & Screenshots)
73 2009-01-28 18:44:15
Re: What are you listening to right now ? (6,227 replies, posted in Off Topic / General Chat)
Great Lake Swimmers - Passenger Song
74 2009-01-28 18:36:08
Re: Internet Explorer like browser without Wine [Resolved] (19 replies, posted in Help & Support (Stable))
Hah, my bad, didn't see that part. ![]()
75 2009-01-28 18:08:20
Re: Internet Explorer like browser without Wine [Resolved] (19 replies, posted in Help & Support (Stable))
Have you tried this: http://www.tatanka.com.br/ies4linux/page/Main_Page ?