Welcome To Snipplr


Everyone's Recent Bash Snippets



1 ... 5 6 7 8 9 ... 41
A pair of handy terminal commands for converting Apple .plist preference files from binary to XML format [allowing for easy editing with a text editor] and then back to binary again, afterwards.
0 1384 posted 13 years ago by stiobhart
tar is usually used for achiving applications, but what we are going to do in this case is tar it then pipe it over an ssh connection. tar handles large file trees quite well and preserves all file permissions, etc, including those UNIX systems which...
0 859 posted 13 years ago by wnasich
From the Pickaxe, 4th edition, p. 352: A rescue clause with no parameter is treated as if it had a parameter of StandardError. This means that some lower-level exceptions will not be caught by a parameterless rescue class. If you want to rescue ev...
1 836 posted 13 years ago by cczona
must install flac and lame apt-get install flac apt-get install lame
0 713 posted 13 years ago by pbreah
Now when you do a git commit without specifying a commit message, TextMate will pop-up and allow you to enter a commit message in it. When you save the file and close the window, the commit will go through as normal. (If you have another text editor...
0 1359 posted 13 years ago by magicrebirth
Open up your terminal and type in the following commands to show hidden files (such as a .htaccess file).
0 907 posted 13 years ago by BFTrick
Because our server is a virtual machine inside a virtual machine (it's like inception), we can't transfer file using FTP. You need using SVN repository as a bridge to do so. Follow [Exercise 3](http://www.cs.sfu.ca/cc/470/ggbaker/exer/3 "Exercise...
0 872 posted 13 years ago by Xixian
0 844 posted 13 years ago by athome
Zipping Files on ssh using terminal etc
0 749 posted 13 years ago by bubaphex
Here's a quick one-off trick for sed editing conf files on remote hosts. I will post the core sed command first, showing the crazy quoting, then a for loop demonstrating how one might tackle multiple hosts. Took me a few tries to get the quoting so...
0 602 posted 13 years ago by bubnoff
Kudos to http://snipplr.com/view/26670/
0 807 posted 13 years ago by klovera
0 738 posted 13 years ago by 4fthawaiian
See also http://www.gnu.org/software/bash/manual/bashref.html#Bindable-Readline-Commands for the standard bindings and more detailed explanation of what they do.
0 958 posted 13 years ago by cczona
A simple but useful command. List processes running on the system.
0 649 posted 13 years ago by klovera
Displays the # of emails in Exim queue.
0 663 posted 13 years ago by klovera
When modifying file permissions it is sometimes necessary to go back to the drawing board and set back to the default permissions. The following command can be used via ssh and takes a couple seconds vs trying to do this via ftp file by file (which c...
0 711 posted 13 years ago by klovera
0 777 posted 13 years ago by klovera
-R = recursive
0 636 posted 13 years ago by klovera
If you need to zip a directory named folderName and ignore all .DS_Store files, then do the following:
0 842 posted 13 years ago by beneberle
This allow serve web pages to internet behind a firewall, using a linux server with a public IP address running sshd. We must have root credentials and sshd configured with: GatewayPorts yes
0 804 posted 13 years ago by wnasich
1 ... 5 6 7 8 9 ... 41