Skip to content

Instantly share code, notes, and snippets.

@Tazeg
Tazeg / depts.json
Created September 13, 2020 11:11
Coordonnées GPS des départements français
[
{
"numero": "1",
"nomShort": "AIN",
"nomLong": "Ain, Auvergne-Rhône-Alpes, France métropolitaine, France",
"lat": 46.06551335,
"lng": 5.28478031423462
},
{
"numero": "2",
@Tazeg
Tazeg / gdmbackground.sh
Last active September 9, 2021 11:45
Bash script to change the Gnome 3 GDM background
#!/bin/sh -e
#------------------------------------------------------------------------------------
# Change the GDM background.
# based on https://wiki.archlinux.org/index.php/GDM
# by https://twitter.com/jeffprod
#
# If you have dual screens, you should copy your current settings to gdm
# so that the image is not reversed right-left :
# sudo cp ~/.config/monitors.xml ~gdm/.config
@Tazeg
Tazeg / keybase.md
Created September 13, 2019 13:24
keybase.md

Keybase proof

I hereby claim:

  • I am tazeg on github.
  • I am jeffprod (https://keybase.io/jeffprod) on keybase.
  • I have a public key ASBWEVK8OySEyA2sR64Ag52--w_tJKbcpqkm8wt9GxDj1Ao

To claim this, I am signing this object:

<div class="search" id="search">
<input type="text" placeholder="Search site..." v-model="txt" @keyup="search()" @blur="close()" maxlength="50">
<div class="search-results" :style="{'display': showresult?'block':'none'}">
<a v-for="item in result" :href="item.url">{{ printf "{{ item.title }}" }}</a>
</div>
</div>
@Tazeg
Tazeg / keybase.md
Last active September 13, 2019 13:17

jeffprod JeffProd Coding for fun Paris, France

Keybase proof

I hereby claim:

@Tazeg
Tazeg / Dockerfile
Last active March 15, 2022 09:37
Dockerfile for a dev web server with PHP/Apache
#-----------------------------------------------------------------------
# To create the docker image :
# cd <this file directory>
# docker build -t apache-php-dev .
#
# Start image :
# docker run -d -p 80:80 \
# -v /home/user/html:/var/www/html \
# -v /home/user/subdomain1:/var/www/subdomain1 \
# -v /home/user/subdomain2:/var/www/subdomain2 \
@Tazeg
Tazeg / followers.py
Last active February 9, 2020 20:59
Track Twitter followers/unfollowers and receive difference by email
#!/usr/bin/python3
# coding=utf-8
########################################################################
# AUTHOR : Jean-Francois GAZET
# WEB : http://www.jeffprod.com
# TWITTER : @JeffProd
# MAIL : jeffgazet@gmail.com
# LICENCE : GNU GENERAL PUBLIC LICENSE Version 2, June 1991
########################################################################
@Tazeg
Tazeg / class.csv.php
Last active May 3, 2021 17:22
PHP class to manage CSV files
<?php
//----------------------------------------------------------------------
// based on :
// http://php.net/manual/fr/function.fgetcsv.php#68213
//
// Usage :
//
// $importer = new CsvImporter($CSV,',',true);
// if(!$importer->headerExists('URL')) {echo 'Missing column URL in the CSV.'; exit;}
// foreach($importer->get() as $num=>$ligne) {
public class Chrono {
private long tempsDepart=0;
private long tempsFin=0;
private long pauseDepart=0;
private long pauseFin=0;
private long duree=0;
public void start()
{