Skip to content

Instantly share code, notes, and snippets.

@sim51
sim51 / nginx play
Created March 4, 2012 17:44
My nginx configuration for opendata-map.org
server {
listen 80;
server_name www.opendata-map.org;
root /var/www/opendata-map.org;
access_log /var/log/nginx/opendata-map.access.log;
error_log /var/log/nginx/opendata-map.error.log debug;
# GEOSERVER PROXY & CACHE
location /geoserver {
proxy_pass http://127.0.0.1:8080/geoserver;
@sim51
sim51 / gist:2305903
Created April 4, 2012 21:40
Comment inverser une chaine de caractère ... avec twitter
#!/bin/bash
STWEET_USER=logisimatest
STWEET_PASS=
while [[ "$phrase" == "" ]]
do
echo
echo "Tapez une phrase :"
read word
@sim51
sim51 / Neo4j - JUG Nantes.css
Last active December 17, 2015 05:58
La promesse des bases de données orientées graphe c'est d'être veleda ready ! Plus besoin de convertir notre modèle. #hype
@charset "UTF-8";
body{
background:url("https://raw.github.com/sim51/prez-neo4j/gh-pages/img/background.png") no-repeat bottom #000000;
background-size: 100%;
color: #FFFFFF;
font-size:0.9em;
}
.reveal ol, .reveal ul {
list-style: none outside none;
@sim51
sim51 / Génération JVM.css
Last active December 18, 2015 08:09
Présentation du #nunuxpro du 10/06/2013 à 20h à la cantine de Nantes#hype
@charset "UTF-8";
/**********************************************
* GENERAL STYLES
*********************************************/
body{
background:url("http://hype.kissr.com/jvm_generation/background.png") no-repeat bottom #000000;
background-size: 100%;
color: #FFFFFF;
font-size:0.9em;
@sim51
sim51 / Nutch - pom.xml
Last active March 27, 2022 10:39
Maven pom.xml for a nutch project, that do an overlay on the nutch source zip file.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<!-- =========== -->
<!-- = General = -->
<!-- =========== -->
<groupId>com.logisima.search</groupId>
<artifactId>crawler</artifactId>
@sim51
sim51 / nutch.sh
Created December 8, 2013 13:29
Bash script for nutch 2
#!/bin/bash
NUTCH_HOME=/opt/apache-nutch-2.2.1/runtime/local
# depth in the web exploration
nbLoop=10
# number of selected urls for fetching
maxUrls=50
nbThread=2
# solr server
solrUrl=http://localhost:8983/solr/nutch
@sim51
sim51 / Formation GIT.css
Last active August 29, 2015 14:04
Formation GIT#hype
@charset "UTF-8";
/* =============================================================================== */
/* COMMON STYLE
/* =============================================================================== */
body {
background: #FFFFFF;
color : #556F7C;
}
@sim51
sim51 / gist:bb4bba220b28ad2276bf
Created November 11, 2014 12:19
Esigate init.d script
#!/bin/sh
### BEGIN INIT INFO
# Provides: esigate
# Required-Start: $remote_fs $syslog
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start esigate server.
# Description: Enable esigate by daemon.
@sim51
sim51 / README
Last active August 29, 2015 14:24
graphgist
= Graph gist n°1
:neo4j-version: 2.1.0
:author: Benoit Simard
:twitter: @logisima
:labels: Customer,City,Activity,Product
== Initialisation
//hide
@sim51
sim51 / generate.sh
Created July 14, 2015 15:57
Neo4j generate node/relation with lot of property,label & relation type
#!bin/bash
echo "CREATE CONSTRAINT ON (n:Test) ASSERT n.node IS UNIQUE;"
for i in {1..1000}
do
echo "create (:Test:Test$i {"
for j in {1..20}
do
echo "property$i$j : 'test',"
done
echo " node:'$i'});"