For those who want to use Vim from Cadence because visual editors don't cause a verilog recompile after save and exit, Vim can be modified to act like a usable editor (ex, allows pasting from other apps). Just add a ".vimrc" file to your home directory with mouse and paste support:
set mouse=a set paste
Mouse=a enables moving the cursor by clicking, wheel scrolling, and selection using the mouse.
Paste enables pasting in from other apps.
Why the average linux user would not need such features evades me.
Save the following as myserver.sh
ssh -L 59$1:localhost:59$1 myserver.domain
now you can call ". myserver 23" to port forward 23
Better option: switch to TextMate on Mac
Source: https://live.gnome.org/Gedit/NewLanguage
Gedit doesn't highlight .v files as verilog by default. The solution is to make a file: ~/.local/share/mime/packages/verilog.xml
Check "/usr/share/gtksourceview-1.0/language-specs/verilog.lang" and see if your verilog is called x-verilog or x-verilog-src. Use whichever below.
Paste the following into your verilog.xml:
<?xml version='1.0' encoding='utf-8'?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="text/x-verilog">
<comment>Verilog source</comment>
<glob pattern="*.v"/>
</mime-type>
</mime-info>
You may have to run "update-mime-database mime" from the .local/share directory for things to apply.
http://mah.everybody.org/docs/ssh
Summary:
Generate your key
$ ssh-keygen -t rsa
- use a password
To use the key on other hosts you will be connecting from, copy the ~/.ssh/id_dsa key to the other hosts:
$ scp ~/.ssh/id_dsa you@another-box:.ssh/
Start the agent
$ eval `ssh-agent` - make sure to use the ` which is on the tilde key
$ ssh-add
- which adds all your keys. You can specify a key, or use -l to list installed keys in the agent.
To get the agent to start automagically (or use the existing process, see the web link above) ==[[#Unix Tips and Tricks-CSH and TCSH]]CSH and TCSH== ===[[#Unix Tips and Tricks-CSH and TCSH-.cshrc]].cshrc=== Testing if we are being executed from a prompt or being called from a script if ($?prompt == 0) exit Turning off the obnoxious terminal beeps set nobeep Enabling tab-auto-complete listing set autolist Turning on color set color set colorcat Aliases alias tools 'cd /tools/designs/yeagerd/' alias matlab2009b /tools/mathworks/matlab2009b/bin/matlab ==General== Login in a second user: ctrl-alt-F6 ===SED=== http://www-rohan.sdsu.edu/doc/sed.html
substitute "foo" with "bar" EXCEPT for lines which contain "baz"
sed '/baz/!s/foo/bar/g'
1. Ubuntu 9.1 Upgrade -> Blue (Negative) Hue in videos
Solution: go to terminal. Type 'nvidia-settings'. Go to 'X Server Xvideo Setting' Click 'Reset Hardware Defaults'
Move files from subfolders into a new folder:
http://www.cyberciti.biz/tips/howto-linux-unix-find-move-all-mp3-file.html
Ex, mp3 files:
find / -iname "*.mp3" -type f | xargs -I '{}' mv {} /mnt/mp3