background preloader

Linux: What are some time-saving tips that every Linux user should know

Linux: What are some time-saving tips that every Linux user should know

Programming Methodology - Download free content from Stanford Vim tips: Folding fun The problem with writing and editing on a computer, versus having words on paper, is that it's usually hard to compare text from different sections of a document when they don't fit on the screen together. One way to do it is to use Vim's viewports feature. Another is to "fold" the text. Using Vim's folding features, you can tuck away portions of a file's text so that they're out of sight until you want to work with them again. Here's how. Vim's folding commands begin with z -- which, as the Vim docs point out, sort of looks like a folded piece of paper. Creating folds Let's start with some simple folding actions. Folding also works in visual mode. Another option is to specify a range in command mode. Vim can also make some smart text selections. As an added bonus, Vim also recognizes nested blocks, so it will create the fold based on matching delimiters, and not the first closing bracket it comes across. Finally, you can create a fold from the cursor position to a search result.

30+ Awesome Free and Open Source Audio Applications List Open Source community has great Audio Applications. We had featured 20 Audio Editors. Here is a best of the Audio Applications list that has, Audio Editors, Audio Sequencers, Stream Rippers, CD Rippers and much more. This list is constantly updated and comments, additions are most welcome. Thanks for commenting and helping us to grow the list. Also check out similar posts; Amarok – Rediscover music Amarok is a powerful music player for Linux and Unix, MacOS X and Windows with an intuitive interface. Ardour – Digital Audio Workstation Record Audio, Mix, Edit and Collaborate. Audacity – The Free, Cross-Platform Sound Editor Audacity® is free, open source software for recording and editing sounds. Banshee – Music Player Play your music and videos. CDEx – Audio CD Extractor CDEx is a very popular Open Source Digital Audio CD Extractor with more than 38 million downloads. Grip – CD Ripper/CD Player Grip is a cd-player and cd-ripper for the Gnome desktop. Jokosher – Multi-Track Audio Studio

Malicious Linux Commands - From (This article was originally published in Ubuntu Forums but was removed there. Ubuntuguide feels that knowledge about these risks is more important than any misguided attempts to "protect the public" by hiding their potential dangers or protect the (K)Ubuntu/Linux image. ATTENTION: It is worthwhile to have some basic awareness about malicious commands in Linux. It is also worthwhile to always enable a Kubuntu screensaver or Ubuntu screensaver with a password so that a casual passerby is not able to maliciously execute one of these commands from your keyboard while you are away from your computer. When in doubt as to the safety of a recommended procedure or command, it is best to verify the command's function from several sources, such as from readily available documentation on Linux commands (e.g. manpages). Here are some common examples of dangerous commands that should raise a red flag. Delete all files, delete current directory, or delete visible files in current directory rm -r or

How To Use UUID To Mount Partitions / Volumes Under Ubuntu Linux Q. Can you explain UUID concept related to Linux ext3 partitions and storage devices? How do I update /etc/fstab using UUID under Ubuntu Linux or any other Linux distro? A. UUID and Partitions Linux's ext2/ext3 filesystem uses UUID to identify partitions. UUID benefits As a sesonded UNIX admin I have to deal with various data storage technologies such as SAN, iSCSI, DAS, scsi disks volumes. However, UUID may be not very useful for single desktop computer at home as you do not have enterprise grade storage and requirements. How do I find out UUID for /dev/sdb2? To probe filesystem type and read label and uuid for /dev/sdb2 (or any other device) use vol_id command: # vol_id --uuid {/dev/device} # vol_id --uuid /dev/sdb2 $ sudo vol_id --uuid /dev/sdb2 Sample output: 41c22818-fbad-4da6-8196-c816df0b7aa8 List all UUIDs Use blkid command-line utility to locate/print block device attributes: $ sudo blkid Sample output: How do I use UUID to update /etc/fstab file? Simply use following syntax:

Chocolate Chip Cookie Dough Truffles I’ve never liked chocolate chip cookies. Go ahead and throw tomatoes at me if you’d like, but I don’t like ’em. They’re just a plain old cookie, after all, with a few studs of chocolate chips in them. They’re nothing special to me, unless you get some cookie dough-action before it meets its fate in the oven. I know there are plenty of cookie-dough-nay-sayers out there… you know, the salmonella scare and all . Chilled dough is rolled into 1-inch balls. Those chilled dough balls are dipped in chocolate and then placed onto waxed paper to set. I dipped a few in Ghirardelli White Chocolate Bark and a few in the Chocolate version too. Oh yeah! Yield: 3 to 4 dozen truffles Prep Time: 45 min + chilling time Chocolate Chip Cookie Dough Truffles Best served cold, these treats are for cookie-dough lovers. Ingredients: Directions: 1. 2. 3. Tips: *I used the Ghirardelli Candy Making Dipping Bar- both Double Chocolate and White flavors. *Have your own favorite cookie dough recipe?

8 Useful and Interesting Bash Prompts Many people don’t think of their command prompt as a particularly useful thing, or even pay it much attention. To me, this is a bit of a shame, as a useful prompt can change the way you use the command line. Well I’ve scoured the Interwebs looking for the best, most useful, or sometimes most amusing bash prompts. Here, in no particular order, are the ones I’d be most likely to use on my computers. Note – to use any of these prompts, you can copy & paste the “PS1=” line directly into your terminal. 1. This prompt is probably the most amusing one on the list, but remains useful. Example: Code: 2.Change color on bad command Here’s one of my favorites. 3. If you’re the type who wants to pack your prompt full of information, then here’s the one for you. 4. There’s nothing particularly fancy about this prompt, other than the good use of color to separate the different pieces of information. 5. This one’s a nice, clean, minimal 2-line prompt (plus a blank line at the top). Code: 6. 7. 8.

Getting Started with TeX, LaTeX, and Friends - TeX Users Group This page is for the benefit of new TeX system users. As such, it tries to be short and simple. (An even shorter getting-started document is available.) What's going on here? TeX is a typesetting language. Here are some links with further background: The Pointers to Frequently Asked Questions document provides a short overview of the TeX world. Installing TeX and LaTeX If you are looking to install a complete system, we recommend TeX Live for Unix/GNU/Linux, MacTeX for MacOSX, and proTeXt for Windows. There are many other TeX implementations, some free software, some shareware, some proprietary/commercial. Online (La)TeX documentation Here is just a little of the principal TeX documentation available on the web. LaTeX: LaTeX Documentation Pointers has references to documentation for many common LaTeX tasks (by Jim Hefferon). Plain TeX: TeX by Topic, A TeXnician's Reference, by Victor Eijkhout. Fonts: a discussion of the fonts available for use with TeX is available separately. Books to buy

Lemon-Basil Ricotta Stuffed Shells in a Champagne Cream Sauce: Can you EVEN believe I almost forgot to share with you this delicious baked pasta recipe? It was back in November when I made this pasta… and I remember the day perfectly… It was real sunny. POW {that’s the sound it makes in my brain when a recipe happens}! Please don’t think I ran out and bought champagne. Butter a baking dish and set aside. On the large holes of your box grater; shred a cup of Pecorino Romano or Parmesan cheese. Season the ricotta with a little extra salt and pepper if you haven’t already. Combine half of the pecorino with the ricotta and set aside. Measure out 3/4 cup of champagne. Cook the pasta just short of al dente in salted water. Drain and spread them out onto a rimmed sheet pan or some parchment paper. Stuff each shell with some of the cheese and place them in your prepared dish. In a small sauce pan, melt three tablespoons of butter and add some finely minced garlic. Whisk until the garlic softens and is fragrant but not brown. Then pour in the champagne… Ingredients:

Android Tools Project Site Tutorial - Learn Python in 10 minutes | Stavros' Stuff NOTE: If you would like some Python development done, my company, Stochastic Technologies, is available for consulting. This tutorial is available as a short ebook. The e-book features extra content from follow-up posts on various Python best practices, all in a convenient, self-contained format. All future updates are free for people who purchase it. Preliminary fluff So, you want to learn the Python programming language but can't find a concise and yet full-featured tutorial. Properties Python is strongly typed (i.e. types are enforced), dynamically, implicitly typed (i.e. you don't have to declare variables), case sensitive (i.e. var and VAR are two different variables) and object-oriented (i.e. everything is an object). Getting help Help in Python is always available right in the interpreter. >>> help(5)Help on int object:(etc etc) >>> dir(5)['__abs__', '__add__', ...] >>> abs. Syntax Python has no mandatory statement termination characters and blocks are specified by indentation. Strings

Related: