Search For bash

FREE THOUGHT · FREE SOFTWARE · FREE WORLD

Search Results

Custom bash_profile for Advanced Shell Users - AskApache

For those of you power users and server admins that use Bash, ksh, csh, vanilla sh, etc.., or if you are just passionate about shell scripting,

Crazy POWERFUL Bash Prompt

Ultimate BASH Power Prompt Customized for Web Servers and utilizing window-title updates, history saving, terminal color resets, and more.

Super-optimized 256color BASH Prompt - AskApache

Apr 13, 2010 Super-optimized 256color BASH Prompt. Crazy POWERFUL Bash Prompt » Super-optimized 256color BASH Prompt. Super-optimized 256color BASH

Custom Webmaster Shell Environment - AskApache

Create a customized bash shell environment with this .bash_profile when using DreamHost Customized Bash Shell Environment Webmasters often use SSH to

bash power prompt screenshot

bash power prompt screenshot. bash power prompt PS1. This entry was posted on Monday, March 15th, 2010 at 1:32 AM and is filed under .

Bash Shell Script for Encrypted WordPress Backups

Jul 4, 2008 Bash Shell Script for Encrypted WordPress Backups.

PHP and AJAX shell console - AskApache

You may however be able to do stuff like /bin/bash -c "cd ../../;mv this there;ls -la;"or you could try exporting your current dir or something.

Search And Replace shell script helpful for Upgrades - AskApache

Apr 19, 2009 This bash shell script searches in a directory you specify for any files containing a string and replaces that string with another string. www.askapache.com/;search-and-replace-shell-script-helpful-for-upgrades.html

DreamHost Customized Bash Shell Environment

Jul 8, 2007 Custom Webmaster Shell Environment » DreamHost Customized Bash Shell Environment. DreamHost Customized Bash Shell Environment ScreenShot 2

Elite Log File Scrolling with Color Syntax - AskApache

bin/bash -l set -o xtrace renice -p $$ 15 pkill -9 tee\|ccze &>/dev/null || echo -n Tags:Apache, askapache, bash, CCZE, debugging, Elite, error log,

AskApache Crazy Advanced Web Development

bash power prompt PS1 This amazing bash linux prompt does more than meets the . binbash source ~bash_profile &devnulll pmPM is a function to output nice

Pimp out your FeedBurner Count - AskApache

Bash Shell Script. This simple shell script is what I use, it downloads 4 different feedcount bin/bash umask 022 BASE="/home/askapache.com/i/feed"

Serve External Javascript Files locally for Increased Speed

Sep 30, 2008 I created a simple Bash shell-script to download the javascript files. All you need to do is modify the variables to save to your directory www.askapache.com/;serve-external-javascript-files-locally-for-increased-speed.html

Search and Replace bash shell script

Apr 19, 2009 Search and Replace bash shell script. PHP Session File Hacks ·Debugging Tools for Windows ·Crazy POWERFUL Bash Prompt

PHP htaccess tips and tricks - www.askapache.com

PHP Session File Hacks ·Debugging Tools for Windows ·Crazy POWERFUL Bash Prompt. The love of liberty is the love of others;the love of power is the love

A Detailed Introduction to I/O and I/O Redirection

At this point, Bash inherits these three file descriptors, and each command (child process) run by Bash inherits them in turn, except when you redirect the

Encrypted WordPress / phpBB Backups - AskApache

bin/bash # SiteBack Version 3.3, 2008-12-17 # GNU Free Documentation License 1.2 # 12-17-08 - AskApache (www.askapache.com) umask 022 ### SHELL OPTIONS set

Shell Scripts for Dreamhost - AskApache

Shell Scripts for Dreamhost. Example shell scripts (bash or sh) that automate and easyate tasks from within the dreamhost ssh env

Automated Folder Backup Shell-Script - AskApache

bin/bash # # GNU Free Documentation License 1.2 # 06-11-08 - AskApache (www.askapache.com) # # # .mysnapshot # |-- hourly.0 (one hour ago) # |-- nightly.0

Mirroring an Entire Site using Rsync over SSH - www.askapache.com

bin/bash # Author:http://www.askapache.com # Version:1.2 # Date:04-08-2009 # If the command used to login to ssh correctly starts with 'rsync --server'

Advanced Htaccess – SSI, ErrorDocuments, DirectoryIndexing SEO

not executed or parsed AddType text/plain .ini .sh .bsh .bash .csh .var .asc .md5 .sha .sha1 .cgi .pl .php .inc .asp .exe .bin DefaultType text/plain

Site Map

Crazy POWERFUL Bash Prompt Ultimate BASH Power Prompt Customized for Web Servers and utilizing windowtitle updates history saving terminal color resets

Wget Trick to Download from Restrictive Sites - AskApache

Tags:403 Forbidden, Apache, askapache, bash, bash_profile, Blocking, Firefox, GET, Google, Htaccess, HTTP Headers, Prompt, Robot, robots, Security, server,

Upgrading to DreamHost Private Servers - AskApache

bin/bash # Version 1.0 by AskApache 5/29/2008 shopt -s extglob renice 19 $$ OLDSERVER=208.113.183.103 NEWSERVER=208.113.134.190 FIXFILES=$(grep -R -l -i

An AskApache Plugin Upgrade to Rule them All - AskApache

I can code in plenty of languages (bash, lua, windows .bat and vbs, ocaml, big fan of all things shell) and can work my way through C and even sorta

The Ultimate Htaccess

applicationxshockwaveflashswf AddType applicationxrds+xmlxrdf AddType textplaininishbshbashawknawkgawkcshvarcinhascmd5shasha1 AddType videoxflvflv

Apache Web Server Speed Configuration Hacks - AskApache

bash-3.00$ telnet www.webperformance.org 80 Trying 24.60.234.27Connected to www.webperformance.org (24.60.234.27). Escape character is '^]'.

256 color prompt - AskApache

Apr 12, 2010 Crazy POWERFUL Bash Prompt » 256 color prompt. 256 color prompt_command and PS1 Super-optimized 256color BASH Prompt

IP Abuse Detection for DreamHost - AskApache

Jan 16, 2008 Tags:403 Forbidden, Apache, askapache, bash, Blocking, debugging, DNS, DreamHost, error log, grep, Htaccess, htaccess files, ip abuse,

Optimizing Servers and Processes for Speed with ionice, nice, ulimit

Runs 'bash'as a best-effort program with highest priority. ionice -c2 -n0 bash. Returns the class and priority of the process with PID 89 ionice -p89

On-Demand MySQL Backup Shell Script - AskApache

bin/bash DATE1=`date | awk '{print $3}'` DATE2=`date | awk '{print $2}'` DATE3=`date | awk '{print $6}'` THEDATE="${DATE1}${DATE2}${DATE3}"

toprc - AskApache

Apr 22, 2010 Crazy POWERFUL Bash Prompt PHP Session File Hacks ·Debugging Tools for Windows ·Crazy POWERFUL Bash Prompt

PHP5 Custom Install Shell Script Example - AskApache

Dec 16, 2007 Tags:Apache, askapache, bash, curl, DreamHost, filesystem, GET, Hacking, Linux, Nice, PHP, Port, post, Python, ram, Scripts, Shell,

AskApache Search

Sep 22, 2007 PHP Session File Hacks ·Debugging Tools for Windows ·Crazy POWERFUL Bash Prompt. The love of liberty is the love of others the love of power is the love

.htaccess Plugin Blocks Spam, Hackers, and Password Protects Blog

Nov 22, 2008 I just hacked together a bash shell script that downloaded each version, unpacked it, and also installed/built them, all autopilot baby. www.askapache.com/;htaccess-plugin-blocks-spam-hackers-and-password-protects-blog.html

PortaPutty Auto-Reconnecting SSH Tunnels on an Encrypted TrueCrypt

Tags:401, Apache, askapache, ASP, Backups, Bandwidth, bash, bash_profile, Boot, compression, curl, Defrag, Email, encryption, filesystem, Firefox, Flash,

Questions I Ask Web Hosting Companies, Before Buying - AskApache

HOWTO:Uninstall CPANEL over SSHCrazy POWERFUL Bash Prompt » ·Questions I Ask Web Hosting Companies, Before Buying. I'm always on the lookout for cheap

Commonly Used htaccess Code - AskApache

Newest Posts. PHP Session File Hacks ·Debugging Tools for Windows ·Crazy POWERFUL Bash Prompt. I'm Reading. Go Null YourSelf ·AntiLimit ·BackTrack

mod_rewrite Fix for Caching Updated Files - AskApache

Oct 20, 2008 PHP Session File Hacks ·Debugging Tools for Windows ·Crazy POWERFUL Bash Prompt. The love of liberty is the love of others;the love of

Debugging Tools for Windows

Debugging Tools for Windows. FREE THOUGHT FREE SOFTWARE FREE WORLD. « Crazy POWERFUL Bash Prompt ·Debugging Tools for Windows

Real-Life Htaccess Files from My Server - AskApache

Apr 15, 2010 application/x-shockwave-flash .swf AddType application/xrds+xml .xrdf AddType text/plain .ini .sh .bsh .bash .awk .nawk .gawk .csh .var

WordPress

Tags:Apache, askapache, Backups, bash, debugging, encryption, GET, GPG, grep, Linux, mysql, Nice, password, PHP, phpBB, Renice, Security, Shell,

trick

Tags:admin, Apache, Bandwidth, bash, Bottleneck, Cache, Cache-Control, caching, compression, DNS, feed, File System, GET, Htaccess, HTTP Headers, httpd,

Speed Tips:Add Cache-Control Headers - www.askapache.com

Apr 15, 2010 PHP Session File Hacks ·Debugging Tools for Windows ·Crazy POWERFUL Bash Prompt. The love of liberty is the love of others;

htaccess f-off

Mar 9, 2009 Crazy POWERFUL Bash Prompt ·Questions I Ask Web Hosting Companies, Before Buying ·Uninstalling CPANEL, A Guide

2010-05-22T18:46 - AskApache - Crazy Advanced Web Development

http://www.askapache.com/ 2010-06-12T07:21:04+00:00 daily 1.0 http://www.askapache.com/linux-unix/bash-power-prompt.html 2010-06-12T07:21:04+00:00 monthly

HOWTO:Uninstall CPANEL over SSH

Some super cool bash commands in this post.. let's start with one to find all the files and folders on your machine owned by cpanel.

Vulnerability Scanners Review - AskApache

It is amazing to me how so many people in this thread bash the author's professionalism in one aspect or another and then proceed to discredit themselves by

30x Faster WP-Super Cache Site Speed - AskApache

bin/bash ### Bind temporary directories to /dev/shm ### # I do this instead of mounting tmpfs on the # # directories, so less memory gets wasted.

XP Boot Menu - AskApache

Aug 11, 2007 Newest Posts. PHP Session File Hacks ·Debugging Tools for Windows ·Crazy POWERFUL Bash Prompt. I'm Reading. Go Null YourSelf ·AntiLimit

HOWTO: Uninstall CPANEL over SSH

The following is just a quick reference of some of the commands I used to uninstall cpanel. This is for advanced users of the shell. If you aren’t that advanced and you run a single one of these commands without fully understanding it, you will probably kill your server, probably lose everything on it permanently, probably not have a website or email for weeks.. So backup all your data FIRST. Also, if you aren’t 100% sure you won’t run into problems, you should contact your hosts technical support – but be prepared for some MAJOR negativity.. cpanel makes things very easy for hosts, and the last thing tech support wants is to fix a server broken by someone who doesn’t know what they are doing.

Real-Life Htaccess Files from My Server

#### No https except to wp-admin -
# If the request is empty ( implies fopen or normal file access by a php script )
RewriteCond %{THE_REQUEST} ^$ [OR]
 
# OR if the request if for wp-admin or wp-login.php
RewriteCond %{REQUEST_URI} ^/(wp-admin|wp-login\.php).*$ [NC,OR]
 
# OR if the Referer is https
RewriteCond %{HTTP_REFERER} ^https://www.askapache.com/.*$ [NC]
 
# THEN skip the following rule, basically all this does is force https or badhost to be redirected
# BUT because of the above 3 rewritecond's, this won't break poorly written admin scripts
RewriteRule .* - [S=1]
 
RewriteCond %{HTTPS} =on [OR]
RewriteCond %{HTTP_HOST} !^www\.askapache\.com$ [NC]
RewriteRule .* http://www.askapache.com%{REQUEST_URI} [R=301,L]
 
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(wp-admin/.*|wp-login\.php.*)\ HTTP/ [NC]
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

30x Faster WP-Super Cache Site Speed

NOT a typo.. 30x is measurable, well-documented, and easily tested. This is what open-source is about. I haven’t had time to post much the past year, I’m always working! So I wanted to make up for that by publishing an article on a topic that would blow your mind and be something that you could actually start using and really get some benefit out of it. This is one of those articles that the majority of web hosting companies would love to see in paperback, so they could burn it.

Custom bash_profile for Advanced Shell Users

Looking for some advanced uses for the shell? Here is some of my best. The shell is where 70% of my work takes place, and I have at least one terminal open almost 100% of the time, for viewing tailing color-coded logs, and of course for the SSH Tunnels that I use to route various networking through, like my email. So I decided that to standardize and create a bash_profile containing the most time-saving and helpful functions that I could use on all the various hosting environments would really be some sweet sugar, so here is my constant Work-in-progress.

It works for all shells I encounter, including BackTrack, Debian, Knoppix, Arch Linux, etc. Also works for many hosting environments I use including DreamHost, HostGator, WiredTree, and pretty much any linux VPS.

I also rely on this heavily from within shell scripts I write to access all the functions and stuff in this .bash_profile, and to do that I just do like:

#!/bin/bash
 
source ~/.bash_profile &>/dev/nulll
 
pm "PM is a function to output nice messages with color"
yn "Are you enjoying the shell" && pm "Thats great!" || pm "Perhaps you're better suited for DOS"
yn "Show Calendar" && aa_calendar
yn "Show Fortune" && aa_fortune

Optimizing Servers and Processes for Speed with ionice, nice, ulimit

To prepare for several upcoming articles on AskApache that are focused on optimizing Servers and Sites from a server admin level, here is an article to introduce the main tools that we will be using. These tools are used to optimize CPU time for each process using nice and renice, and other tools like ionice are used to optimize the Disk IO, or Disk speed / Disk traffic for each process. Then you can make sure your mysqld and httpd processes are always fast and prioritized.

An AskApache Plugin Upgrade to Rule them All

An AskApache Plugin Upgrade to Rule them AllSo my blog as been rather quiet for almost a year now, and very few updates if any have been released for my Password Protection PLugin, my Google 404 Plugin, and definately not for my AskApache CrazyCache plugin, which I will be releasing last… So for all of you who’ve helped me out by sending me suggestions and notifying me of errors and sticking with it… Just wanted to say sorry about that, and thanks for all the great ideas.. Well, I’ve been sticking with it as well believe it our not. I manage to get free days once in a while, and then its time to jam.

Advanced Htaccess – SSI, ErrorDocuments, DirectoryIndexing SEO

htaccess directory indexingErrorDocument from .htaccess3-Part article covering practical implementation of 3 advanced .htaccess features. Discover an easy way to boost your SEO the AskApache way (focus on visitors), a tip you might keep and use for life. Get some cool security tricks to use against spammers, crackers, and other nefarious sorts. Take your site’s error handling to the next level, enhanced ErrorDocuments that go beyond 404′s.

Serve External Javascript Files locally for Increased Speed

One way I speed up AskApache.com is by downloading external third-party javascript files to host on my own server instead of externally. In addition to the obvious speed boost, this lets you configure the caching and compression settings for the files.

Pimp out your FeedBurner Count

I’ve had a lot of people ask about the FeedBurner FeedCount image on AskApache. Specifically how to set it up with custom messages and different colors each page view… It is pretty sweet..

Elite Log File Scrolling with Color Syntax

Scrolls the latest log entries for multiple log files to the current screen or to any other monitor or TTY in color using syntax highlighting, making debugging easier and saving a lot of time for multi-monitor workstations.

Encrypted WordPress / phpBB Backups

Enter your DOMAIN_ROOT and the location of your wp-config.php or config.php, and this script finds all the mysql settings by parsing the phpbb or wordpress config file, then creates GPG encrypted backups, and saves your settings for future automation.

Automated Folder Backup Shell-Script

This simple unix shell script automatically creates backups of a specific folder at regular hourly, nightly, weekly, and monthly intervals. Instead of the usual method for copying directory trees using tar with fifo, pipes, rsync, or NFS methods this script uses cpio which is much much faster and has cool options like saving m/a/c times, symlinks, relative paths, and weird file names.


  Search Feed
  Comments Feed

Clusty

Ask.com

Yahoo

Windows


It's very simple - you read the protocol and write the code. -Bill Joy

HTML | DCMI | GRDDL | XOXO | XDMP | XFN | DOM | XML | XHTML 1.1 Strict | CSS 2.1 | W3C

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License, just credit with a link.
This site is not supported or endorsed by The Apache Software Foundation (ASF). All software and documentation produced by The ASF is licensed. "Apache" is a trademark of The ASF. NCSA HTTPd.
UNIX ® is a registered Trademark of The Open Group. POSIX ® is a registered Trademark of The IEEE.

Site Map | Contact Webmaster | Glossary | License and Disclaimer | Terms of Service

↑ TOP
Main