berkes


Member since 11/27/2006

Name: Bèr Kessels

berkes

Location: Nijmegen, Netherlands

Website: http://webschuur.com

The way of the Hacker - Long term #Drupal developer - owner of webschuur.com - OpenSource lover - Long term #linux user - Rails user

10 snippets

5177 profile views

10 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

berkes's Recent Bash Snippets



« Prev 1 Next »
Use wget and sed to get your public IP adress (instead of firing up firefox and visting whatismyip.com). Usefull in scripts where you need your public IP adres. There are probably better ways, maybe even a GNUtool that I missed?
0 677 posted 14 years ago by berkes
Instead of ~/.ssh/id_rsa.pub, you can choose any location on your local machine where your *public* key lives. You may need to adjust the file permissions on remote authorized_keys aftwterwards, depending on the configuration of the remote ssh serve...
0 788 posted 14 years ago by berkes
This script pulls in files with [rsync](http://samba.anu.edu.au/rsync/), storing them locally with hardlinks for unchanged, and real files for changed -files. * KEY=$HOME/.ssh/id_dsa_passwdless -- an id_rtsa key without a password. --adding this t...
0 583 posted 14 years ago by berkes
Change 'username' (twice!) with your imap username,'password'with your imap password, and 'example.com' (twice!) with the url of your imap mailserver. Works on: Ubuntu with Evolution, sqlite3 and archivemail installed. Evolution is required beca...
1 800 posted 14 years ago by berkes
A common Drupal problem: how to save e.g. your blocks configuration without dragging an X Gig database around. A simple command that dumps a table in a way that it can be inserted into SVN. Every row is dumped as a single line, and they are sor...
1 571 posted 14 years ago by berkes
A bash script that calls Drush for all your multisite sites and returns a list of available and installed modules for each site.
2 670 posted 15 years ago by berkes
This script removes (DROPS) all tables that start with foo_. Usefull if you had some CMS or application that (ab)uses table prefixing, and want to clean 0ut your database. NOTE: the data is remove FOREVER! So take good casre: make backups and all...
2 812 posted 16 years ago by berkes
Move all mails with a certain subject (in this case starting with the word "Undelivered" into a backup dir. It is by no means a mail filter, I needed it to clean out the maildirectory after a HDD crash wich caused over 1000000 (one million) local bo...
0 471 posted 17 years ago by berkes
« Prev 1 Next »