This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| here = path.abspath(path.dirname(__file__)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew services start tomcat | |
| brew services stop tomcat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| textwrap.dedent("""SELECT * | |
| FROM mytable | |
| LIMIT 10""") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| autossh -M9042 -N -L 7070:127.0.0.1:7070 airflow@kelrisks-data -i ~/.ssh/id_rsa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # switch from lat/lon to lambert93 | |
| st_transform(st_geomfromtext('POINT(0.4705555555555556 46.600000000000)',4326),2154) | |
| SELECT | |
| st_x(st_centroid(st_transform(geog, 4326))), | |
| st_y(st_centroid(st_transform(geog, 4326))), | |
| FROM table |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh -L 5432:localhost:5432 user@ip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> from geopy import distance | |
| >>> paris = (48.8589, 2.3469) | |
| >>> marseille = (43.2804, 5.3806) | |
| # distance between Paris and Marseille using WGS-84 | |
| >>> distance.geodesic(paris, marseille, ellipsoid='WGS-84').km | |
| 662.8544512165864 | |
| # distance between Paris and Marseille using GRS-80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="application/ld+json"> | |
| { | |
| "@context": "http://schema.org/", | |
| "@type": "Person", | |
| "url": "https://benoitguigal.fr", | |
| "mainEntityOfPage": "https://benoitguigal.fr", | |
| "description": "Benoît Guigal – Développeur et Data Engineer", | |
| "birthDate": "1989-02-26", | |
| "image": "https://benoitguigal.fr/assets/image/benoit.png", | |
| "birthPlace": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <meta property="og:type" content=website> | |
| <meta property="og:title" content="Benoît Guigal – Développeur et Data Engineer"> | |
| <meta property="og:url" content="https://benoitguigal.fr/"> | |
| <meta property="og:image" content="https://benoitguigal.fr/assets/images/georgie.png"> | |
| <meta property="og:description" content="Benoît Guigal"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <meta name="description" content="Benoît Guigal – Développeur et Data Engineer"> | |
| <meta name="keywords" content="benoit guigal, resume, blog, skills, experiences, contact"> | |
| <meta name="author" content="Benoît Guigal"> |