- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
--- | |
- hosts: all | |
gather_facts: yes | |
## | |
# Create the password then create the user | |
# | |
- name: Users | Generate password for new user | |
shell: makepasswd --chars=20 | |
register: user_password |
#! /bin/bash | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |
----- Esc ----- | |
Quick change directory: Esc + c | |
Quick change directory history: Esc + c and then Esc + h | |
Quick change directory previous entry: Esc + c and then Esc + p | |
Command line history: Esc + h | |
Command line previous command: Esc + p | |
View change: Esc + t (each time you do this shortcut a new directory view will appear) | |
Print current working directory in command line: Esc + a | |
Switch between background command line and MC: Ctrl + o | |
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name |
$ wget http://tengine.taobao.org/download/tengine-1.3.0.tar.gz | |
$ wget http://download.savannah.gnu.org/releases/libunwind/libunwind-1.0.1.tar.gz | |
$ wget http://gperftools.googlecode.com/files/gperftools-2.0.tar.gz | |
$ tar zxvf libunwind-1.0.1.tar.gz && cd libunwind-1.0.1 | |
$ CFLAGS=-fPIC ./configure | |
$ make CFLAGS=-fPIC | |
$ sudo make CFLAGS=-fPIC install | |
$ cd .. |
http { | |
map $http_user_agent $limit_bots { | |
default ''; | |
~*(google|bing|yandex|msnbot) $binary_remote_addr; | |
} | |
limit_req_zone $limit_bots zone=bots:10m rate=1r/m; | |
server { |
<?php /****************** vi: set fenc=utf-8 ts=4 sw=4 et: ***************** | |
* | |
* Copyright : (C) 2012 Nicolas Grekas. All rights reserved. | |
* Email : [email protected] | |
* License : http://apache.org/licenses/LICENSE-2.0 | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the Apache License version 2. | |
* | |
***************************************************************************/ |
@mixin ribbon($color, $ribbon-thickness, $notch-color, $notch-side) { | |
@include background-image(linear-gradient(lighten($color, 20%), darken($color, 10%))); | |
@include inline-block; | |
position: absolute; | |
padding-#{$notch-side}: $ribbon-thickness; | |
@if $notch-side == left { | |
height: $ribbon-thickness; | |
line-height: $ribbon-thickness; | |
right: -2px; | |
padding-right: 10px; |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-s | |
RewriteRule ^(.*)$ rest/index.php?_rest=$1 [QSA,NC,L] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^(.*)$ rest/index.php [QSA,NC,L] | |
</IfModule> |