25Feb/100
stupid nano
Posted by oxchronxo
This will allow you to change the default editor of you system. Works for most if not all debian derivatives. SVN commits were really annoying until I switched over to VI.
$ sudo update-alternatives --config editor
Tagged as: bash, vi, vim
No Comments
25Feb/100
locating broken symbolic links
Posted by oxchronxo
Want to find broken/dead/dangling symbolic links on your system. There are a lot ways to do this but one of the simplest is to use a package called "symlinks".
$ sudo apt-get install symlinks $ symlinks -r $(pwd)
once installed you will get output like the following:
messy: FAKE_PATH/Konfabulator -> Konfabulator-Partner-9.10-week3-5.2.6-1-inflated/ dangling: FAKE_PATH/Konfabulator-5.3-1-191083-1250636017/Konfabulator -> /mtd_down/nfs/devices/partner/Konfabulator messy: FAKE_PATH/Konfabulator-5.3-1-191083-1250636017/Konfabulator -> ./Konfabulator.launcher dangling: FAKE_PATH/Konfabulator-5.3-1-191083-1250636017/Konfabulator -> /mtd_down/nfs/devices/partner/Konfabulator dangling: FAKE_PATH/Konfabulator-5.4.1-192904-1253669212/Konfabulator -> /mtd_down/nfs/devices/partner/Konfabulator dangling: FAKE_PATH/Konfabulator-9.10-week3-5.2.6-1/Konfabulator -> /mtd_down/nfs/devices/partner/Konfabulator dangling: FAKE_PATH/Konfabulator-9.10-week3-5.2.6-1/Konfabulator -> /mtd_down/nfs/devices/partner/Konfabulator messy: FAKE_PATH/Konfabulator-9.2-week4-9/Konfabulator -> ./Konfabulator.launcher messy: FAKE_PATH/Konfabulator-9.8-week2-5.2.5-6/Konfabulator -> ./Konfabulator.launcher messy: FAKE_PATH/Konfabulator-5.3-1-191647-1251428074/Konfabulator -> ./Konfabulator.launcher messy: FAKE_PATH/Konfabulator-5.5-1-4994-1255339266/Konfabulator -> ./Konfabulator.launcher messy: FAKE_PATH/Konfabulator-5.5-1-5159-1256950502/Konfabulator -> ./Konfabulator.launcher
Tagged as: bash, directory, list, symlinks
No Comments
25Feb/100
file enumeration by readable timestamp
Posted by oxchronxo
This little bash command let's us order files sequentially based on their actual time while being human readable using. This uses the full year and 24 hour time format.
FORMAT: FILE.date +%Y-%m-%d_%H-%M-%S
OUTPUT: FILE.2010-02-25_11-50-32
Tagged as: bash, date, enumeration, time
No Comments
Tag cloud
xspf
pictures
vi
TV
terminators
vim
time
seek
ubuntu
command
enumeration
Konfabulator
playlist
track
position
Media
bash
symlinks
php
event
list
Yahoo
javascript
jailbreak
mac
linux
Technology
CES
sync
2009
iphone
music
directory
mp3
playlist.com
code
cookies
show
audio
widgets
player
swf
date
ymp
television
Recent Comments
oxchronxo: I don’t have the raw source anymore.
Stephen: Hi Eric, I’m about to start making some skins for the yahoo media player. I thought I’d ask if...
fehmi: hey update pls
Cho Sung-min: Thank you very very very muchhhhh~~~ i just follow this post then works fine!!
Shreyas: Thanks a lot!! Really appreciate the effort.
Recent Trackbacks
- chronx: Playlist.com + YQL + PHP = true XSPF
- chronx: I went the medibuntu route to get w32codecs and all that but that didn't help. BTW… the medibunti...
- The Fehrenbacher’s: Playlist.com + YQL + PHP = true XSPF
- 4 Free Audio Players to Add Audio to Your Site by ClintLalonde.net: Eric has written a number of...
Blogroll
Coding
- Bash Comparison Operators
- Bash Docs
- Bash File Operators
- Code Conventions
- E4X @ MDC
- E4X @ Yahoo
- ECMA Script
- Git
- Git CheatSheet
- Git Docs
- GitHub
- Javascript Beautify
- Javascript Docs
- Javascript Lint
- jQuery
- JSON
- JSON Beautify
- JSON Lint
- JSON View
- MooTools
- Mozilla Developer Center
- Mozilla Labs
- PHP Docs
- PHP DOM
- PHP SimpleXML
- Pipes
- RegEx Editor
- SVN
- SVN CheatSheet
- SVN Docs
- XML Beautify
- XSPF
- XSPF Docs
- YQL
- YQL Console
- YQL Docs
- YQL Open Data Tables