Skip to content

Instantly share code, notes, and snippets.

View lbdremy's full-sized avatar

Remy Loubradou lbdremy

View GitHub Profile
@lbdremy
lbdremy / implementinig-a-git-http-server.md
Created May 22, 2013 23:32
Implementing a Git HTTP server
@lbdremy
lbdremy / routing-conf-raspberry-pi.md
Last active December 17, 2015 11:49
routing configuration for my pi
pi@raspberrypi ~ $ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.254   0.0.0.0         UG    0      0        0 wlan0
0.0.0.0         10.5.5.1        0.0.0.0         UG    2      0        0 eth0
10.5.5.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
@lbdremy
lbdremy / how-to-virtualize-raspian-with-qemu.md
Last active October 13, 2019 08:33
HOW-TO: Virtualize Raspian with Qemu.

#HOW-TO: Virtualize Raspian with Qemu

0.Workspace

mkdir -p ~/workspace/raspdev
cd ~/workspace/raspdev

1.Install Qemu

@lbdremy
lbdremy / java-version-management.md
Created April 19, 2013 15:48
See and change the java version used by default
sudo update-alternatives --config java
@lbdremy
lbdremy / solr-logs-into-syslog.md
Created April 19, 2013 15:29
Solr logs into syslog

Solr and Syslog friend again

Configuration file

etc/logging.properties

#
# Licensed to the Apache Software Foundation (ASF) under one or more
@lbdremy
lbdremy / poc-ga.js
Created February 25, 2013 17:50
Using OAuth 2.0 for Server to Server Applications and the Google Analytics API with node.js.
/**
* Module dependencies
*/
var GA = require('googleanalytics'),
jwt = require('jwt-sign'),
request = require('superagent'),
fs = require('fs'),
privateKey = fs.readFileSync(process.env['GA_PATH_PRIVATE_KEY'] || __dirname + '/key/private.pem','utf8');
@lbdremy
lbdremy / click-reference-affiliate-networks.md
Last active December 4, 2023 16:14
click reference parameter in a bunch of affiliate networks. Feel free to contribute, add and remove errors.

- Affiliate network name - &parameter=value_of_the_click_reference_here_CLICKREF

  • Advortis - &xref1=CLICKREF
  • Affiliate Future - &tracking=CLICKREF
  • Affiliate Window - &clickref=CLICKREF
  • Affilinet - &subid=CLICKREF
  • Aflite - &aref=CLICKREF
  • Brand Conversions - &subid=CLICKREF
  • Buyat - &LID=CLICKREF
  • Carpet Right Affiliates - &link_ref=CLICKREF
  • ClixGalore - &OID=CLICKREF
># java -ea:org.apache.lucene -cp /var/lib/chef/solr/solr-jetty/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-core-2.9-dev.jar org.apache.lucene.index.CheckIndex -fix /var/cache/chef/solr/data/index/

Soirée du nouvel an 2012-2013!

Lieu

Chez ma soeur à la vache à Toulouse. Il y a un parking immense disponible à 500 mètres de l'appartement.

Plan

18h30: Début des derniers préparatifs

@lbdremy
lbdremy / template-upstart-script-node-app.conf
Created December 24, 2012 12:17
Template of an _upstart_ script for a node.js app.
description "your description"
author "your name <name@sld.tld>"
# Environment variables
env APP_CONFIG=/home/web/app/config.json
env APP_USER=myapp
env APP_SCRIPT=/home/web/app/index.js
env NODE_ENV=production
env PID_FILE=/var/run/app.pid
env STDERR_LOG_FILE=/var/log/app/stderr.log