Skip to content

Instantly share code, notes, and snippets.

View PierreZ's full-sized avatar
👨‍💻
Working from home

Pierre Zemb PierreZ

👨‍💻
Working from home
View GitHub Profile
@PierreZ
PierreZ / ha2es.pig
Last active August 29, 2015 13:57
First attempt to push logs stored on Hadoop into ElasticSearch
/*
Made by Pierre Zemb
Part-time internship at System Team
Credit Mutuel Arkea
2014
*/
REGISTER elasticsearch-hadoop-1.3.0.M2-yarn.jar;
DEFINE EsStorage org.elasticsearch.hadoop.pig.EsStorage();
@PierreZ
PierreZ / purge.sh
Created August 28, 2014 15:27
Dockerfiles
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
@PierreZ
PierreZ / afficheur_deroulant_top
Last active August 29, 2015 14:07
All the VHDL files
-- Fichier top
library ieee;
use ieee.std_logic_1164.all;
entity circuit1 is
port (
clock,rst: in std_logic;
start,load : in std_logic; -- start is sw0 and sw1 is load
@PierreZ
PierreZ / Dockerfile_shout-irc
Last active August 29, 2015 14:08
shout install
# Based on: https://gist.github.com/furier/09f1bbe309e2c19236a1
FROM node:latest
# set user root
USER root
# install shout
RUN npm install -g shout
@PierreZ
PierreZ / gist:aaa9b3bd04d5271d596d
Last active August 29, 2015 14:09
Mysql Request
1) SELECT nom,salaire from employe WHERE salaire > 1000 AND salaire <1500 ORDER BY salaire,nom;
2) SELECT nom,salaire,comm from employe WHERE comm != 'NULL';
3) SELECT nom,date_embauche from employe WHERE (date_embauche BETWEEN '2001-01-01' AND '2001-12-31') ORDER BY date_embauche;
4) SELECT * from employe where fonction!= 'secretaire';
5) SELECT nom from employe WHERE (num_service=20 OR num_service=30) AND fonction='directeur';
@PierreZ
PierreZ / gist:2e5498d7490c8cf7b464
Created January 21, 2015 15:29
Swing with intellij
public class ColorWindow extends JFrame{
.
.
.
public ColorWindow() {
super("ColorWindow");
setContentPane(RootJPanel);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
pack();
@PierreZ
PierreZ / InfluxDB_Dockerfile
Last active August 29, 2015 14:16
InfluxDB Docker
FROM phusion/baseimage:latest
MAINTAINER Pierre Zemb contact@pierrezemb.fr
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
# ...put your own build instructions here...
#RUN apt-get install -y wget
# Installing latest version of influxdb
@PierreZ
PierreZ / ssh_port_forward.sh
Created March 2, 2015 14:24
port forwarding trough ssh
#!/bin/bash
ssh root@162.243.1.37 -L 3306:127.0.0.1:3306 -N &
@PierreZ
PierreZ / checkupdate.sh
Created March 4, 2015 14:06
check updates for Arch
#!/bin/bash
echo "There's $(checkupdates|wc -l) update(s) available"
@PierreZ
PierreZ / OpenCV_TP
Last active August 29, 2015 14:19
OpenCV TP @ ISEN
all:
g++ -O2 -Wall -o tp1 main.cpp `pkg-config --cflags --libs opencv`
clean:
rm -rf tp1