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 2858 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 1304 posted 14 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 1295 posted 14 years ago by cczona
must install flac and lame apt-get install flac apt-get install lame
0 1081 posted 14 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 2925 posted 14 years ago by magicrebirth
Open up your terminal and type in the following commands to show hidden files (such as a .htaccess file).
0 1375 posted 14 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 2194 posted 14 years ago by Xixian
0 1220 posted 14 years ago by athome
Zipping Files on ssh using terminal etc
0 1212 posted 14 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 1007 posted 14 years ago by bubnoff
Kudos to http://snipplr.com/view/26670/
0 1369 posted 14 years ago by klovera
0 1059 posted 14 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 2326 posted 14 years ago by cczona
A simple but useful command. List processes running on the system.
0 941 posted 14 years ago by klovera
Displays the # of emails in Exim queue.
0 981 posted 14 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 1082 posted 14 years ago by klovera
0 1154 posted 14 years ago by klovera
-R = recursive
0 938 posted 14 years ago by klovera
If you need to zip a directory named folderName and ignore all .DS_Store files, then do the following:
0 1353 posted 14 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 1241 posted 14 years ago by wnasich
1 ... 5 6 7 8 9 ... 41