Skip to content

Instantly share code, notes, and snippets.


Basile Bruneau NTag

View GitHub Profile
NTag / trainline-data-to-geojson.js
Last active Nov 27, 2019
Simple script example to create a GeoJSON of your Trainline trips using Raildar.
View trainline-data-to-geojson.js
// npm install request request-promise
// ./data.json is Trainline Europe data export (ask the support)
// node trainline-data-to-geojson.js > trips.geojson
const fs = require('fs');
const rp = require('request-promise');
const computeGeojson = async () => {
const data = JSON.parse(fs.readFileSync('./data.json'), { encoding: 'utf8' });
const legs = data.pnrs.filter(pnr => pnr.status === 'emitted').map(pnr => => ({
View color-font-awesome.js
import { library } from '@fortawesome/fontawesome-svg-core';
import { faCloudSun } from '@fortawesome/free-solid-svg-icons';
import FontAwesomeIcon from '@ntag/react-fontawesome';
export const Weather = () => (
<FontAwesomeIcon icon="cloud-sun" fill={['#3C6997', '#EDFF71', '#F1DB4B']} />
NTag / dnspvd.c
Last active May 12, 2016
PoC of draft-stenberg-mif-mpvd-dns-00 in C using ldns
View dnspvd.c
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <netinet/in.h>
#include <ldns/ldns.h>
#include <arpa/inet.h>
#include "neat.h"
#include "neat_internal.h"
NTag /
Last active Sep 19, 2021
How to install and use remote-atom


  1. Install Atom on your computer (

  2. Launch Atom, go in Preferences, then chose Install, search for "remote-atom", and install it

  3. On the distant machine:

    cd ~
    chmod +x rmate
NTag /
Last active Nov 17, 2018
Beautiful Terminal with Ubuntu 14.04 LTS
  1. Install ZSH
    • sudo apt-get install git zsh
  2. Install OhMyZSH
    • sh -c "$(curl -fsSL"
  3. Install zsh-autosuggestions
    • git clone git:// $ZSH_CUSTOM/plugins/zsh-autosuggestions
    • Edit ~/.zshrc and replace line plugins=(git) with plugins=(git zsh-autosuggestions)
    • Create a file ~/.oh-my-zsh/custom/colors.zsh containing ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=240'
  4. Install zsh-syntax-highlighting
  • git clone ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
NTag /
Last active Sep 15, 2020
Display Deezer played track in tmux powerline segment
# Display current played track by Deezer Application
generate_segmentrc() {
read -d '' rccontents << EORC
echo "${rccontents}"
run_segment() {
View rapportIntermediaire.text
NTag / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
NTag / API Vevo
Created Jul 31, 2014
Some URL of Vevo API
View API Vevo