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 / mapfunction.js
Created November 22, 2010 16:46
couchdb map function for static user view's
function(doc) {
var userID = 500;
var userTags = [
100000036,
100000065,
100000077,
100000046,
100000062,
100000103
];
@FrancisVarga
FrancisVarga / brewFirstInstall.sh
Created November 23, 2010 19:50
first brew install on a virgin mac book pro
brew install git imagemagick couchdb macvim ejabberd git-flow git-extras postgresql git-multipush git-utils darwinbuild ffmpeg node nmap maven wget cassandra mysql memcached redis git-cola git-extras git-flow subversion beanstalk
package laan.xml
{
public class PlistParser
{
public function PlistParser()
{
}
public static function parsePlist ( xmlPlist : XML ) : XML {
@FrancisVarga
FrancisVarga / wikileaks_replication
Created December 13, 2010 23:21
replicate wikileaks
curl -X POST -H "Content-Type: application/json" -d '{"source": "http://wikileaks.nymphormation.org/wikileaks", "target": "http://localhost:5984/_replicate", "create_target": true, "continuous": true}' http://localhost:5984/_replicate
@FrancisVarga
FrancisVarga / npmLibInstalls.sh
Created January 13, 2011 08:47
installs all my npm libs
npm install beanstalk_client cloud9 beanstalk_worker bufferlib carrier cookie cradle facebook-client facebook-connect file filesystem-composer gitter git hash hamljs haml gzip gzip-stack headers mkdirp monitor mysql-native n natives node-restclient node-uuid node-xmpp nstore npm-github-service oauth nurl restartr user-agent yaml xmpp-client ya-csv
sudo add-apt-repository ppa:nikount/orta-desktop && sudo apt-get update && sudo apt-get install orta-theme && sudo add-apt-repository ppa:tiheum/equinox && sudo apt-get update && sudo apt-get install faenza-icon-theme
@FrancisVarga
FrancisVarga / highscore.sql
Created March 25, 2011 11:48
Generate User highscore
SET @rownum =0;
SET @rank =0;
SET @prev_val=0;
SELECT @rownum := @rownum + 1 AS row
, @rank := IF(@prev_val!=uxp,@rownum,@rank) AS rank
, @prev_val := uxp AS uxp,
userId
FROM
(
@FrancisVarga
FrancisVarga / rsyncBackup.sh
Created April 5, 2011 22:06
Backuping via. rsync without ssh
rsync -ruzptv --archive spaces/ /Volumes/Stuff/Backup\ New\ MBP/Backup/
#!/bin/bash
#-----------------------------------------------------------
#
# Purpose: Just run this script to install the required
# ubuntu/pear packages for php development.
#
# Tested on Ubuntu 10.04
#-----------------------------------------------------------
echo "Installing basic packages for development."
@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