df, but with pretty colors.
You can find it in the development page http://projects.gw-computing.net/projects/dfc
Wednesday, April 04, 2012
dfc: df in color
Very nice program that does the same as
Labels:
linux
,
macos
,
Useful Software
Tuesday, April 03, 2012
split2flac: slip a audio file
split2flac splits one big APE/FLAC/WV/WAV audio image (or a collection of such files, recursively) with CUE sheet into FLAC/M4A/MP3/OGG_VORBIS/WAV tracks with tagging, renaming, charset conversion of cue sheet, album cover images. It also uses configuration file, so no need to pass a lot of arguments every time, only an input file.
https://github.com/ftrvxmtrx/split2flac
from onethingwell
https://github.com/ftrvxmtrx/split2flac
from onethingwell
Labels:
Useful Software
Thursday, March 29, 2012
emacs: Cycle windows backward
To cycle windows in emacs you can use the shortcut
c-x o that executes the command other-window.
Now to cycle windows in the reverse order you need to execute the command other-window with argument -1 (other-window accepts integer as argument, being the number of windows to jump).
So I added this code to my .ecmas file:
;; cycle windows in reverse order
(defun prev-window ()
(interactive)
(other-window -1)
)
(global-set-key (kbd "C-x p") 'prev-window)
This will create the command prev-window and assign the shortcut C-x p to this function.
Note: C-x p is by default assigned to narrow-to-page, a function I never used...
This Idea I found it originally in Quora.com
Labels:
emacs
,
keyboard shortcut
,
useful tips
Resize windows in emacs
To easily resize windows in emacs I added the following key shortcuts:
;; * \author Pedro Parracho
;; Resizing windows using alt-arrow
(global-set-key (kbd "\033[1;9D") 'shrink-window-horizontally) ;;alt-left: code ^[[1;9D
(global-set-key (kbd "\033[1;9C") 'enlarge-window-horizontally) ;; alt-right: code ^[[1;9C
(global-set-key (kbd "\033[1;9A") 'shrink-window) ;; alt-up: code ^[[1;9A
(global-set-key (kbd "\033[1;9B") 'enlarge-window) ;; alt-down: code ^[[1;9B
Now alt-arrow will change the window size by a step.
Labels:
emacs
,
keyboard shortcut
,
useful tips
Monday, March 26, 2012
GNU screen renumber windows
When working a long time with a screen session, you might get holes in the screen numbering, to change the number of the current windows do
There is a script that will renumber all the windows in a session, you can find it in http://brainscraps.wikia.com/wiki/Renumbering_GNU_Screen_Windows
ctrl-a : number <number>
There is a script that will renumber all the windows in a session, you can find it in http://brainscraps.wikia.com/wiki/Renumbering_GNU_Screen_Windows
Labels:
screen
,
useful tips
Swap two characters in emacs
To transpose 2 characters the emacs command is
For words the command is
transpose-chars and the shortcut is C-t.
For words the command is
transpose-words and the shortcut is M-t.
Labels:
emacs
,
keyboard shortcut
Thursday, March 22, 2012
Go to next unread message in Mail via keyboard
A long standing annoyance in Mail is that there is no keyboard shortcut to skip to the next message.
I found in hints.macworld.com a apple script that will jump to the next unread mail on
I changed the script to jump to the last item and not the first, as I like to read my messages by chronological order.
ctr-n.
I changed the script to jump to the last item and not the first, as I like to read my messages by chronological order.
try
tell application "Mail"
activate
tell the front message viewer
set unreadMessages to (the messages whose ¬
read status is false) as list
if (count of unreadMessages) is not 0 then
set selected messages to {the last item of unreadMessages}
else
beep
end if
end tell
end tell
on error error_message
beep
display dialog "Error looking for next unread message: " & ¬
return & return & error_message buttons {"OK"} default button 1
end try
To have this script activated, instead of copying it to the mail script folder as suggested in the article, I created a new service with "no input" in "Mail.app" that will run the apple script on the top.
Saved the service, and added the shortcut ctrl-n in the keyboard settings.
Labels:
keyboard shortcut
,
macos
,
useful tips
Wednesday, March 21, 2012
SvnX hurdles
I was having 1 problem common to svn and svnx. The problem was the message:
"Killed by signal 15."
I found out that this was something that happens for svn > 1.6.6.
The solution according to old.nabble.com is to add the option
The other problems was
My line in
I found out that this was something that happens for svn > 1.6.6.
The solution according to old.nabble.com is to add the option
-p to the ssh command in your svn configuration file ~/.subversion/config
The other problems was
/usr/bin/xauth: error in locking authority file .Xauthority this got solved by adding the option -x
My line in
~/.subversion/config is now:ssh = $SVN_SSH ssh -o ControlMaster=no -q -x
Labels:
Recipes
,
Sofware problems
,
useful tips
Tuesday, March 06, 2012
regexp and emacs
You can test your regular expression in emacs by activating the mode
Note: the
Another nice way to test your regexp is in this website http://gskinner.com/RegExr/
regexp-builder.Note: the
regexp-builder by default will use the lisp syntax, to use the one that emacs use in replace-regexp command you need to change the syntax mode using the command reb-change-syntax, use the value string.Another nice way to test your regexp is in this website http://gskinner.com/RegExr/
Labels:
Recipes
,
Sofware problems
Monday, March 05, 2012
Great clipboard manager
FlyCut seems to be a very nice clipboard manager, based in the Jumpcut.
You can find it in the App store, or bettr yet in the git: https://github.com/TermiT/flycut
Labels:
macos
,
Useful Software
Thursday, February 23, 2012
Add your kerberos password to keychain
The magic command is:
security add-generic-password -a "myusername" -l "label to define entry" -s "realm" -w "mypassword" -c "aapl" -T "/usr/bin/kinit"
Thursday, February 09, 2012
Create shortcut by click and drag in Mac OS X
To create a shortcut in Mac Os X you can right-click (click+ctrl) and chose the option "Make alias", and then move this alias where you want it.
Or you can drag the target of the alias and also press Command(apple button)+option. The alias will be created where you drop the file.
Or you can drag the target of the alias and also press Command(apple button)+option. The alias will be created where you drop the file.
Friday, January 06, 2012
Controling airport from command line
I wrote two small scripts to control the power status of the mac airport.
- Power cycle the airport
- Toggle the power status
#/bin/bash
# This script does a power cycle of the airport
# Pedro Parracho <pedro.parracho@gmail.com>
/usr/sbin/networksetup -setairportpower airport OFF
/usr/sbin/networksetup -setairportpower airport ON
#/bin/bash
# This script toogles the power status of the airport
# Pedro Parracho <pedro.parracho@gmail.com>
airportPower=$(/usr/sbin/networksetup -getairportpower airport| cut -d' ' -f4 | tr '[:lower:]' '[:upper:]')
if [ $airportPower = "ON" ]
then
echo airport is ON, turning it OFF
/usr/sbin/networksetup -setairportpower airport OFF
else
echo airport is OFF, turning it ON
/usr/sbin/networksetup -setairportpower airport ON
fi
Labels:
macos
,
useful tips
Monday, December 12, 2011
9menu - create a menu to run commands
9menu is a simple program that accepts a list of menu item and command pairs on the command line. It creates a window that consists of nothing but a menu. When a particular item is selected, the corresponding command is executed.
http://pwet.fr/man/linux/commandes/9menu
http://pwet.fr/man/linux/commandes/9menu
Labels:
linux
,
Useful Software
Friday, December 02, 2011
Convert data tables: Mr Data Converter
A javascript program that will take your csv tables and will output them in other formats: Python dictionaries, SQL, HTML, etc.
Available in git: https://github.com/shancarter/Mr-Data-Converter
Available in git: https://github.com/shancarter/Mr-Data-Converter
Labels:
Useful Software
Fine grain control for volume and brightness
MacOS offers a way to get a finer control on the steps of increase and decrease of volume and screen brightness, to access the fine grain mode, also press the keys shift+option when changing the sound or brightness level.
Labels:
macos
,
useful tips
Thursday, November 17, 2011
csshx and spark
csshx is a mac OS tool to connect in parallel to several machine and send the same command to all the machines see project page http://code.google.com/p/csshx/
spark is shell script to produce sparklines from your command line, project page https://github.com/holman/spark
Suggestion from http://onethingwell.org
Labels:
Useful Software
Saturday, September 03, 2011
Kindle reboot and network choice
To reboot the kindle you must do:
1. Menu
2. Settings
3. Menu
4. Restart
To choose manually the network to connect to do:
1. Menu
2. Settings
3. Type 311
You will get a menu with the detected networks.
1. Menu
2. Settings
3. Menu
4. Restart
To choose manually the network to connect to do:
1. Menu
2. Settings
3. Type 311
You will get a menu with the detected networks.
Tuesday, August 23, 2011
Derpbox replacement for Dropbox, written in bash
Derpbox is a secure replacement for Dropbox, written in bash. Released under the beer-ware license, a pint of cider is fine too. It runs fine with GNU bash 4.2.8 and rsync 3.0.7.
https://github.com/L-P/Derpbox
https://github.com/L-P/Derpbox
Labels:
Useful Software
Friday, August 05, 2011
xmonad - tiling windows manager
Today XKCD mentioned http://xkcd.com/934/ mentioned xmonad. it got to be worth a try...
See: http://xmonad.org/
See: http://xmonad.org/
Labels:
Useful Software
Subscribe to:
Posts
(
Atom
)
