##Power of g in pentadactyl##
Pentadactyl is vim inspired interface to firefox and similar to vimperator.
like vim (:g) , g is a power key in pentadactyl
some examples:
| command | ... |
|---|
| netstat -ant | awk '{print $6}' | sort | uniq -c |
| redis-cli keys "*" | xargs -I {} redis-cli del "{}" |
##Power of g in pentadactyl##
Pentadactyl is vim inspired interface to firefox and similar to vimperator.
like vim (:g) , g is a power key in pentadactyl
some examples:
| command | ... |
|---|
| io.configure(function () { | |
| io.set("transports", ["xhr-polling"]); | |
| io.set("polling duration", 10); | |
| }); |
| RewriteEngine On | |
| RewriteCond %{REMOTE_ADDR} !^100\.212\.123\.XX$ | |
| RewriteCond %{REMOTE_ADDR} !^XX\.XX\.XXX\.XX$ | |
| RewriteRule ^/foo - [F] | |
| RewriteRule ^/foo http://example.com/foo?bar=qux [P,QSA] |
| var collectionNames = db.getCollectionNames(); | |
| for(var i = 0, len = collectionNames.length; i < len ; i++){ | |
| var collectionName = collectionNames[i]; | |
| if(collectionName.indexOf('foo') == 0){ | |
| db[collectionName].drop() | |
| } | |
| } |
| time python -c "from os import listdir; print len(listdir('some dir'))" |
| # Chef-Zero | |
| # | |
| # VERSION 0.0.1 | |
| FROM base | |
| MAINTAINER Paul Czarkowski "[email protected]" | |
| RUN apt-get update | |
| RUN apt-get install -y ruby1.9.1-dev build-essential |
| wget https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef-server_11.0.8-1.ubuntu.12.04_amd64.deb | |
| dpkg -i chef-server_11.0.8-1.ubuntu.12.04_amd64.deb | |
| sudo chef-server-ctl reconfigure |
| sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -" | |
| # Add the Docker repository to your apt sources list. | |
| sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ | |
| > /etc/apt/sources.list.d/docker.list" | |
| # Update your sources | |
| sudo apt-get update | |
| # Install, you will see another warning that the package cannot be authenticated. Confirm install. |