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 / .gitconfig
Created February 7, 2010 03:48
gitconfig for meeeeeeeeeeeeeeeeeeee
#===========================================
# Author: Francis Varga
# eMail: francis.varga@varga-multimedia.com
# Blog: http://varga-multimedia.com
#===========================================
#
# This is my .gitconfig file
#
# Did you have question ask me ;)...
[core]
#=======================================================
#SELF PART
#=======================================================
-clean
--launcher.XXMaxPermSize
700m
-vmargs
-Xms712m
-Xmx1624m
-XX:PermSize=256m
@chluehr
chluehr / Passwordless SSH Login
Created August 17, 2010 08:33
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/ssh_config for keepalive (30 sec. is very short - only if you get "broken pipe" errors):
ServerAliveInterval 30
IEventDispatcher(event.currentTarget).removeEventListener(event.type, arguments['callee']);
@chluehr
chluehr / h264 mp3
Created September 1, 2010 17:29
encode flv/h264/mp3
mencoder -mc 0 -noskip -o /tmp/test.flv test.mov -ovc x264 -x264encopts bitrate=300 -vf scale=248:204 -oac mp3lame -lavcopts acodec=mp3:abitrate=56
@FrancisVarga
FrancisVarga / flex4HeroCompilerConfig
Created September 24, 2010 23:59
remove unused rsls compiler argument flex 4
-remove-unused-rsls=true
package com.destroytoday.example
{
public class AccountController
{
[Inject]
public var signalBus:SignalBus;
[Inject]
public var twitterService:TwitterService;
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/2.6">
<id>com.johnlindquist.ipad</id>
<filename>MyApp</filename>
<name>MyApp</name>
<versionNumber>1</versionNumber>
<initialWindow>
<renderMode>gpu</renderMode>
<content>deploy/MyApp.swf</content>
<fullScreen>true</fullScreen>
@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 / setup_ubuntu.sh
Created May 23, 2011 21:58
setup a virgin ubuntu thx to -> https://github.com/chluehr
#!/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."