Skip to content

Instantly share code, notes, and snippets.

View fxthomas's full-sized avatar

François-Xavier Thomas fxthomas

  • DxOMark Image Labs
  • Paris
View GitHub Profile
@fxthomas
fxthomas / setup.py
Created February 11, 2012 18:01
Distutils setup file for LibSVM 3.11
#!/usr/bin/python
# coding=utf-8
from setuptools import setup, find_packages
setup(
name = "LibSVM",
version = "3.11",
packages = find_packages(),
)
@fxthomas
fxthomas / patch.diff
Created February 11, 2012 01:32
Patch for Kite 1.0.4 (with BDW-GC 7.2alpha6)
--- a/backend/common/kite_vm.c 2010-08-21 01:20:25.000000000 +0200
+++ b/backend/common/kite_vm.c 2012-02-11 02:29:37.000000000 +0100
@@ -152,7 +152,12 @@
#endif
#ifdef HAVE_GC_H
+#if GC_VERSION_MAJOR >= 7 && GC_VERSION_MINOR >= 2
+ ret->old_proc = GC_get_warn_proc();
+ GC_set_warn_proc ((GC_warn_proc)kite_ignore_gc_warnings);
+#else
@fxthomas
fxthomas / jsonv
Created January 18, 2012 21:47
JSON Validation Script for VIM with built-in Python module
#!/bin/bash
# Base Script File (jsonv.sh)
# Created: Fri Jan 13 15:26:18 2012
# Version: 1.0
# Author: François-Xavier Thomas <[email protected]>
#
# This Bash script was developped by François-Xavier Thomas.
# You are free to copy, adapt or modify it.
# If you do so, however, leave my name somewhere in the credits, I'd appreciate it ;)
@fxthomas
fxthomas / gist:1134874
Created August 9, 2011 18:52
Download Shaping Scripts
We couldn’t find that file to show.
@fxthomas
fxthomas / gprs
Created August 2, 2011 21:37
GPRS PPP Scripts for Sony Ericsson W850i
# $Id: gprs,v 1.4 2004/04/28 08:40:32 mcfrisk Exp $
#
# File:
# gprs
#
# Description:
# Serial cable, IrDA, Bluetooth and USB pppd options for GPRS phones.
# See 'man pppd' for detailed option descriptions.
# Most GPRS phones don't reply to LCP echo's
@fxthomas
fxthomas / .htoprc
Created July 23, 2011 01:05
HTop Configuration
# Beware! This file is rewritten every time htop exits.
# The parser is also very primitive, and not human-friendly.
# (I know, it's in the todo list).
fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=46
sort_direction=1
hide_threads=0
hide_kernel_threads=0
hide_userland_threads=0
shadow_other_users=0
@fxthomas
fxthomas / normal.html
Created June 17, 2011 13:17
Vertex & Fragment Shaders for Normal recomputation
<!-- Depth Vertex Shader -->
<script id="depth-vs" type="x-shader/x-vertex">
attribute vec3 vertexPosition;
uniform mat4 modelViewMatrix;
uniform mat4 perspectiveMatrix;
varying float depth;
void main (void) {
// Compute position un screen
@fxthomas
fxthomas / lftp.conf
Created June 16, 2011 23:51
Lftp Configuration
## some useful aliases
alias ls "ls -h"
alias dir ls
alias less more
alias zless zmore
alias bzless bzmore
alias mirror "mirror -v"
alias sync "mirror -R -v -n"
alias reconnect "close; cache flush; cd ."
alias edit "eval -f \"get $0 -o ~/.lftp/edit.tmp.$$ && shell \\\"cp -p ~/.lftp/edit.tmp.$$ ~/.lftp/edit.tmp.$$.orig && $EDITOR ~/.lftp/edit.tmp.$$ && test ~/.lftp/edit.tmp.$$ -nt ~/.lftp/edit.tmp.$$.orig\\\" && put ~/.lftp/edit.tmp.$$ -o $0; shell rm -f ~/.lftp/edit.tmp.$$*\""
@fxthomas
fxthomas / .conkyrc
Created June 16, 2011 23:50
ConkyRC
# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
@fxthomas
fxthomas / .bash_aliases
Created June 16, 2011 23:50
Bash Aliases
# This bash aliases were added by François-Xavier Thomas.
# You are free to copy, adapt or modify it.
# If you do so, however, leave my name somewhere in the credits, I'd appreciate it ;)
# Some more ls aliases
alias ll='ls -lth'
alias la='ls -ltha'
alias l='ls -CF'
## Personnal aliases