This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2299719/hack.sh | sh | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ `which perl` = "/usr/bin/perl" ]; then | |
echo -n -e "\e[1;31mUSING SYSTEM PERL OK? [y/n]\e[m: " | |
read ANSWER | |
if [ "$ANSWER" != "y" ]; then | |
exit 255 | |
fi | |
PERL_CPANM_OPT="$PERL_CPANM_OPT --sudo" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function test_setup () { | |
PASS=1 | |
for b in \ | |
/usr/bin/ruby \ | |
/usr/bin/make \ | |
/usr/bin/gcc | |
do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Purpose: Just run this script to install the required | |
# ubuntu/pear packages for php development. | |
# | |
# Tested on Ubuntu 11.xx | |
# ---------------------------------------------------------- | |
#### DEFINITIONS ### | |
IPADDR=$(ip addr | grep inet | grep brd | cut -c10-22 | cut -d\/ -f1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Passwordless SSH Login | |
========================= | |
On the client | |
* generate a RSA keypair | |
* copy the *.pub part to the server, add it to ~/.ssh/authorized_keys | |
* modify your /etc/ssh_config for keepalive (30 sec. is very short - only if you get "broken pipe" errors): | |
ServerAliveInterval 30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I want the last User (Ossi) the Date are highest | |
//Document 1 | |
{ | |
"_id": "197c15ce8ce054693cbe80dd25002238", | |
"_rev": "2-eee6f8cafea101f19c5fa155d8002aab", | |
"name": "Tidde", | |
"date": 100 | |
} | |
//Document 2 |