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 | |
| RAMDISK_IMAGE=$1 | |
| RAMDISK_MOUNT_IMAGE="/mnt/initrd" | |
| BUSYBOX_IMAGE='/home/rsivagur/oss/linux_lab/busybox/busybox' | |
| # Housekeeping... | |
| rm -f $RAMDISK_IMAGE |
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
| KERNEL_ROOT = ~/linux/kernel | |
| find $KERNEL_ROOT \ | |
| -path "$KERNEL_ROOT/arch/*" ! -path "$KERNEL_ROOT/arch/x86*" -prune -o \ | |
| -path "$KERNEL_ROOT/tmp*" -prune -o \ | |
| -path "$KERNEL_ROOT/Documentation*" -prune -o \ | |
| -path "$KERNEL_ROOT/scripts*" -prune -o \ | |
| -path "$KERNEL_ROOT/drivers*" -prune -o \ | |
| -name "*.[chxsS]" -print > $KERNEL_ROOT/cscope.files | |
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
| <?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="org.eclipse.cdt.ui.text.templates.c" deleted="false" description="Function Header" enabled="true" name="comment_function">/** | |
| * @brief ${brief} | |
| * | |
| * ${detail} | |
| * | |
| * @param [${input}] ${input_desc} | |
| * | |
| * @retval [${output}] ${output_desc} | |
| * | |
| * Example Usage: |
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
| alias ..='cd ..' | |
| alias ...='cd ../..' | |
| alias pfind='ps aux | grep ' |
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
| alias pauseplay='dbus-send --dest=org.gnome.Rhythmbox /org/gnome/Rhythmbox/Player org.gnome.Rhythmbox.Player.playPause boolean:true' | |
| alias next='dbus-send --dest=org.gnome.Rhythmbox /org/gnome/Rhythmbox/Player org.gnome.Rhythmbox.Player.next' | |
| alias prev='dbus-send --dest=org.gnome.Rhythmbox /org/gnome/Rhythmbox/Player org.gnome.Rhythmbox.Player.previous' | |
| alias incvolume='dbus-send --dest=org.gnome.Rhythmbox /org/gnome/Rhythmbox/Player org.gnome.Rhythmbox.Player.setVolumeRelative double:.1' | |
| alias decvolume='dbus-send --dest=org.gnome.Rhythmbox /org/gnome/Rhythmbox/Player org.gnome.Rhythmbox.Player.setVolumeRelative double:-.1' |
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
| alias pauseplay='dbus-send --type=method_call --dest=org.bansheeproject.Banshee /org/bansheeproject/Banshee/PlayerEngine org.bansheeproject.Banshee.PlayerEngine.TogglePlaying' | |
| alias next='dbus-send --type=method_call --dest=org.bansheeproject.Banshee /org/bansheeproject/Banshee/PlaybackController org.bansheeproject.Banshee.PlaybackController.Next boolean:false' | |
| alias prev='dbus-send --type=method_call --dest=org.bansheeproject.Banshee /org/bansheeproject/Banshee/PlaybackController org.bansheeproject.Banshee.PlaybackController.Previous boolean:false' | |
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
| require 'rubygems' | |
| require 'mechanize' | |
| require 'nokogiri' | |
| @filename = "bookslist.txt" | |
| @book_list = {} | |
| @a = Mechanize.new { |agent| | |
| agent.user_agent_alias = 'Mac Safari' | |
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
| def reverse_word str | |
| str.reverse.split(" ").map { |n| n.reverse }.join(" ") | |
| end | |
| reverse_word "This is really awesome" |
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
| ;;============EDIT THESE LINES with your path========== | |
| (add-to-list 'load-path "<path_to_cedet-1.0.1>") | |
| (load-file "<path_to_cedet-1.0.1>/common/cedet.el") | |
| (add-to-list 'load-path "<path_to_ecb_folder>") | |
| (require 'ecb) | |
| (semantic-load-enable-excessive-code-helpers) | |
| (require 'semantic-ia) |
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
| ;; Shift F8 will highlight all the words that match underlying word in the buffer | |
| (defun is-word-highlighted () | |
| (interactive) | |
| (let ((face (or (get-char-property (point) 'read-face-name) | |
| (get-char-property (point) 'face)))) | |
| (if (facep face) (if (face-equal face "hi-yellow") t nil) nil))) | |
| (defun toggle-highlight-word () | |
| (interactive) | |
| (setq sym (concat "\\<" (current-word) "\\>")) |