Skip to content

Instantly share code, notes, and snippets.

View FrancisVarga's full-sized avatar
🌴
On vacation

Francis Varga FrancisVarga

🌴
On vacation
  • Phili-Tech
  • Berlin, Germany
View GitHub Profile
@FrancisVarga
FrancisVarga / hack.sh
Created June 27, 2012 13:08 — forked from mrsimo/hack.sh
OSX For Hackers
#!/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
#
@FrancisVarga
FrancisVarga / mqh_install.sh
Created June 26, 2012 22:32 — forked from masaki/mqh_install.sh
Installing MySQL5.1 / Q4M / HandlerSocket
#!/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
@FrancisVarga
FrancisVarga / setup_macosx.sh
Created March 27, 2012 06:18 — forked from finger-berlin/setup_macosx.sh
setup a virgin mac osx
#!/bin/bash
function test_setup () {
PASS=1
for b in \
/usr/bin/ruby \
/usr/bin/make \
/usr/bin/gcc
do
@FrancisVarga
FrancisVarga / setup_ubuntu.sh
Created January 25, 2012 20:11
setup development environment, taken from https://gist.github.com/987713
#!/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)
@FrancisVarga
FrancisVarga / Passwordless SSH Login
Created June 14, 2011 13:50 — forked from chluehr/Passwordless SSH Login
Passwordless SSH Login
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
I want the last User (Ossi) the Date are highest
//Document 1
{
"_id": "197c15ce8ce054693cbe80dd25002238",
"_rev": "2-eee6f8cafea101f19c5fa155d8002aab",
"name": "Tidde",
"date": 100
}
//Document 2