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
Process: eclipse [6146]
Path: /Applications/FDT 5.app/Contents/MacOS/eclipse
Identifier: org.eclipse.eclipse
Version: 3.7 (3.7)
Code Type: X86-64 (Native)
Parent Process: launchd [304]
Date/Time: 2011-12-02 00:53:16.031 +0100
OS Version: Mac OS X 10.7.2 (11C26)
Report Version: 9
<?php
namespace Processus\Abstracts\JsonRpc
{
/**
*
*/
abstract class AbstractJsonRpcServer
{
@FrancisVarga
FrancisVarga / error.json
Created September 25, 2011 01:16
fucking error
{
"_id": "4092e0d25355275f595a731a1d022ce2",
"_rev": "1-ace8e9bf29cb22416b6db93754195af9",
"created": 1316913041,
"data": {
"class": "Lib_Db_Xdb_Exception",
"message": "GetRow failed!",
"method": null,
"methodLine": null,
"file": "/Users/francis/www/meetidaaa_newbackend/src/application/Lib/Db/Xdb/Client.php",
@FrancisVarga
FrancisVarga / vhost.xml
Created July 12, 2011 12:47
dafault VHost entry
<VirtualHost *:80>
ServerName home.local.de
DocumentRoot /Users/francis/www
<Directory "/Users/francis/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
@FrancisVarga
FrancisVarga / httpd.conf
Created June 14, 2011 14:41
mac osx apache2 with php and vhost
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
@FrancisVarga
FrancisVarga / default.httpd.conf
Created June 14, 2011 14:26
default apache conf for a vHost
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName localhost
DocumentRoot /home/francis/www
<Directory /home/francis/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
@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
#!/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 / rsyncBackup.sh
Created April 5, 2011 22:06
Backuping via. rsync without ssh
rsync -ruzptv --archive spaces/ /Volumes/Stuff/Backup\ New\ MBP/Backup/
@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
(