Subscribe RSS

Tag-Archive for "cheatsheet"

Apache error codes Jan 08
Error 206: Partial Content

Error 206: Partial Content

Always handy, a list of Apache error codes.

Or why not read the RFC2616

Successful Client Requests
200 OK
201 Created
202 Accepted
203 Non-Authorative Information
204 No Content
205 Reset Content
206 Partial Content
Client Request Redirected
300 Multiple Choices
301 Moved Permanently
302 Moved Temporarily
303 See Other
304 Not Modified
305 Use Proxy
Client Request Errors
400 Bad Request
401 Authorization Required
402 Payment Required (not used yet)
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable (encoding)
407 Proxy Authentication Required
408 Request Timed Out
409 Conflicting Request
410 Gone
411 Content Length Required
412 Precondition Failed
413 Request Entity Too Long
414 Request URI Too Long
415 Unsupported Media Type
Server Errors
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported
Category: Apache  | Tags: ,  | Leave a Comment
Useful VI commands Dec 30
Shes not using vi

:set hold-board-look-pretty

I use vi/vim quite a lot, heres a useful list of commands. Thanks to these people for the original: here

:set paste
turn off all auto-formatting. Use before pasting  text

:set nu
show line numbers.

:set ic
ignore case differences when searching.

:set ai
set automatic indent.

:set sm
show matching ( or { with ) or } in insert mode.

---------------

down-arrow up-arrow
move down/up 1 line.

right-arrow left-arrow
move right/left 1 character column.

0  $
go to 1st/last column of current line.

return
go down to 1st printable character of next line.

nw  nb
move right/left n words (1 word if n omitted).

ng
go to line n (end of file if n omitted).

ctrl-f  ctrl-b
page forward/backward 1 screen.

ctrl-d  ctrl-u
page forward/backward half a screen.

[[  ]]
go to beginning of current/next c function.

/expressionreturn
search forwards for expression.

?expressionreturn
search backwards for expression.

n  n
repeat last / or ? command in same/reverse direction.

ytarget
copy (yank) text up to target to buffer.

y
copy current line to buffer.

itextesc
insert text before cursor.

otextesc
open new line below cursor and insert text.

r
replace character under cursor with next typed.

rtextesc
replace text.

backspace
in insert mode, delete character before cursor.

x  x
delete character under/before cursor.

nx
delete n characters under and to right of cursor.

nx
delete n characters before cursor.

dd
delete current line.

ndd
delete n lines.

d
delete from cursor to end of line.

p  p
put back yanked or deleted text below/above current line.

j
join current and next lines.

:m,n s/old/new/gc
global replace (g=every occurrence on line, c=prompt);

m=.
means from current position, n=$ means to eof.

u
undo last change.

--------------

:q
quit, provided no changes were made.

:q!
quit without saving.

:w
save (write) changes.

:m,n w file
save lines m through n (default=all) to file.

:x
save changes and quit.
Category: Linux  | Tags: , ,  | Leave a Comment
ASCII and HTML Entity Reference Nov 25
Sheila never cheats

&fit;

Looking for the entity or hex for that weird ascii character.. try one of these

Ascii Cheatsheet

HTML Entities

Extensive HTML Entities by name

Category: Web Dev  | Tags: ,  | Leave a Comment
Apache configuration tricks Nov 25
This configuration will do nicely

This configuration will do nicely

This site is a good start point for a number of useful apache configuration (htaccess) tips and tricks.

http://www.askapache.com/htaccess/apache-htaccess.html

A more structured but basic cheat sheet can be found here:

mod_rewrite Cheatsheet/

Another collection of tips:

http://www.thejackol.com/htaccess-cheatsheet/

Category: Web Dev  | Tags: , ,  | Leave a Comment