This file contains hidden or 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
# /etc/bash.bashrc | |
# | |
# https://wiki.archlinux.org/index.php/Color_Bash_Prompt | |
# | |
# This file is sourced by all *interactive* bash shells on startup, | |
# including some apparently interactive shells such as scp and rcp | |
# that can't tolerate any output. So make sure this doesn't display | |
# anything or bad things will happen ! | |
# Test for an interactive shell. There is no need to set anything |
This file contains hidden or 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 -e | |
IN=$1 | |
OUT=`echo "$IN"|sed -e 's/wma$/mp3/'`; | |
echo "Will convert from $IN to $OUT"; | |
echo Extracting... | |
mplayer -ao pcm:waveheader:file=/tmp/audiodump.wav "$IN" 2>/dev/null > /tmp/taginfo; | |
echo Encoding... | |
lame --id3v2-only -m j -h --vbr-new -b 192 "/tmp/audiodump.wav" -o "/tmp/$OUT"; |
This file contains hidden or 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
See | |
http://wiki.embeddedarm.com/wiki/Getting%20Started%20with%20TS-Linux%20ARM | |
http://wiki.embeddedarm.com/wiki/Linux_for_ARM_on_TS-72XX_User%27s_Guide | |
ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7250-linux/ | |
# apt-get install nfs-kernel-server tftpd xinetd | |
Setup TFTP | |
# vi /etc/xinetd.d/tftp |
This file contains hidden or 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 PS1 for Git repositories showing branch and relative path inside | |
# the Repository | |
# Reset | |
RESET="\[\033[0m\]" | |
# Regular Colors | |
BLACK="\[\033[0;30m\]" | |
RED="\[\033[0;31m\]" | |
GREEN="\[\033[0;32m\]" |
This file contains hidden or 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 | |
set -e | |
# Probe for UEFI entries in EFI system partition | |
prefix="/usr" | |
exec_prefix="${prefix}" | |
datarootdir="${prefix}/share" | |
export TEXTDOMAIN=grub | |
export TEXTDOMAINDIR="${datarootdir}/locale" |
NewerOlder