Skip to content

Instantly share code, notes, and snippets.

View kbsali's full-sized avatar

Kevin Saliou kbsali

View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
position;heure;dur�e;sog;cog;TWS;TWD;vit.courant;dir.courant;pression
33�08.280 N 025�33.800 W;13/11/2020 10:30:00;7200;18.24;174.9;37.6;44;0.00;0;1000000000000000019884624838656.00
32�31.947 N 025�29.958 W;13/11/2020 12:30:00;7200;16.72;173.9;33.9;23;0.00;0;1000000000000000019884624838656.00
31�58.696 N 025�25.771 W;13/11/2020 14:30:00;7200;18.49;218.9;37.4;345;0.00;0;1000000000000000019884624838656.00
31�29.926 N 025�53.088 W;13/11/2020 16:30:00;7200;19.31;211.9;36.9;332;0.00;0;1000000000000000019884624838656.00
30�57.154 N 026�16.964 W;13/11/2020 18:30:00;7200;20.90;204.9;31.1;329;0.00;0;1000000000000000019884624838656.00
30�19.249 N 026�37.434 W;13/11/2020 20:30:00;7200;22.06;205.9;27.9;330;0.00;0;1000000000000000019884624838656.00
29�39.569 N 026�59.702 W;13/11/2020 22:30:00;7200;21.58;211.9;21.8;334;0.00;0;1000000000000000019884624838656.00
29�02.939 N 027�25.883 W;14/11/2020 00:30:00;7200;19.80;218.9;17.4;337;0.00;0;1000000000000000019884624838656.00
28�32.138 N 027�54.265 W;14/11/2020 02:30:0

Keybase proof

I hereby claim:

  • I am kbsali on github.
  • I am kbsali (https://keybase.io/kbsali) on keybase.
  • I have a public key whose fingerprint is D36C 3DFC F82D D0A5 32E7 47E7 C04F 90E3 E72B DA66

To claim this, I am signing this object:

@kbsali
kbsali / migrate_sessions.php
Created November 29, 2017 16:08
Migrate php session from file to redis|memcache
#!/usr/bin/env php
<?php
$host = '127.0.0.1';
$port = null;
$oldPrefix = 'sess_';
$newPrefix = 'sess_';
$sessionDir = '/var/lib/php/session/';
$m = new \Redis();
@kbsali
kbsali / ubuntu-16.10-rstudio.md
Last active December 8, 2016 14:17
Rstudio Install guide on Ubuntu 16.10 yakkety

swirl and its dependencies require R version 3.1.0 or later as well as a recent version of libcurl. This page is our attempt to collect any information that might be helpful to Linux users wanting to install swirl.


Ubuntu and its derivatives

These instructions have been successfully tested on:

  • Ubuntu 12.04 LTS (Precise Pangolin)
  • Ubuntu 16.04 LTS (Xenial)
  • Linux Mint 16 (Petra)
[PSR-0]
psr0
[PSR-1]
encoding
short_tag
[PSR-2]
braces
elseif
@kbsali
kbsali / BlablaAdmin.php
Created April 22, 2014 14:56
Disable soft DoctrineExtensions' SoftDeleteable in Sonata Admin list view
<?php
...
class BlablaAdmin extends Admin
{
...
public function createQuery($context = 'list')
{
$query = parent::createQuery($context);
$em = $query->getQueryBuilder()->getEntityManager();
@kbsali
kbsali / mysql-innodb-bulk-inserts.sql
Last active August 23, 2017 15:09
Mysql InnoDB + MyIsam bulk insert statements
LOCK TABLES `table_name` WRITE;
SET autocommit=0;
SET foreign_key_checks=0;
SET unique_checks=0;
/*....
INSERT ... ON DUPLICATE KEY UPDATE
INSERT IGNORE INTO
....*/
@kbsali
kbsali / sticky-footer-navbar.jade
Last active March 7, 2016 23:23
Here is the Jade (http://jade-lang.com/) version of bootstrap's "sticky-footer-navbar" sample page