bash
How to - find out if a website is running drupal
Submitted by Federico Pistono on Thu, 07/31/2008 - 12:17.Pretty simple.
#!/usr/bin/env bash wget -S $1 2>&1 | grep -q -m 1 "Expires: Sun, 19 Nov 1978 05:00:00 GMT" \ && echo "Yes" || echo "No"
Save the script in a file called is-drupal, and make it executable (i.e. chmod +x is-drupal) and put it in a directory in your path (e.g. ~/local/bin/). Now, you can easily check a site with following command:
is-drupal www.federicopistono.org
Found here.
hacks - feeling at home with bash
Submitted by Federico Pistono on Mon, 06/02/2008 - 20:40.I longed for this for so many year but somehow never took the effort to research it. Turns out that bash autocompletion can be be made into something sane by adding the following to profile/bashrc:
# make bash autocomplete with up arrow bind '"\e[A":history-search-backward' bind '"\e[B":history-search-forward' # make tab cycle through commands instead of listing bind '"\t":menu-complete' # make cd try only directories complete -d cd
From drupal4hu.
























Recent comments
5 days 22 hours ago
1 week 7 hours ago
2 weeks 2 days ago
2 weeks 5 days ago
3 weeks 6 days ago
4 weeks 5 days ago
5 weeks 3 hours ago
5 weeks 16 hours ago
5 weeks 19 hours ago
5 weeks 6 days ago