Skip to content

Instantly share code, notes, and snippets.

View rimiti's full-sized avatar
🚀
Focusing

Dimitri DO BAIRRO rimiti

🚀
Focusing
View GitHub Profile
@rimiti
rimiti / ipstack.ts
Last active July 31, 2020 13:17
Typescript implementation of ipstack
import axios, { AxiosResponse } from 'axios';
import { config } from '../config';
import { Sentry } from '../libs/sentry';
/**
* @description Ip Stack API response
*/
interface IIpStackResponse {
latitude: number;
longitude: number;
@rimiti
rimiti / README.md
Last active May 19, 2021 11:41
Install OpenVPN through docker

How to install an OpenVPN server (through Docker)

  1. Create an openvpn folder
mkdir -p ~/openvpn/data
  1. Create the configuration
@rimiti
rimiti / README.md
Last active June 16, 2021 17:35
Parcoursup </> Prise de rendez-vous

API recette:

curl --location --request POST 'https://rdv-cfa-recette.apprentissage.beta.gouv.fr/api/appointment-request/context/create' \
--header 'Content-Type: application/json' \
--data-raw '{
    "idParcoursup": "25229",
    "referrer": "parcoursup"
}'
@rimiti
rimiti / README.md
Last active October 26, 2021 09:24
Python dictionary merger (dict_merge)

Dict merge function (deeply)

Example:

import collections.abc

current_lake_configuration = {
    'DataLakeAdmins': [
# opening and closing windows and popovers
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
# smooth scrolling
defaults write -g NSScrollAnimationEnabled -bool false
# showing and hiding sheets, resizing preference windows, zooming windows
# float 0 doesn't work
defaults write -g NSWindowResizeTime -float 0.001
@rimiti
rimiti / main.yml
Created April 26, 2018 18:23
How to install MySQL 5.7 with Ansible
# Add PGP key to install mysql 5.7 from mysql repository
- name: Add PGP key
apt_key:
keyserver: hkp://pgp.mit.edu:80
id: 5072E1F5
- name: Add official APT repository
apt_repository:
repo: "deb http://repo.mysql.com/apt/debian/ stretch mysql-5.7"
@rimiti
rimiti / 🙈❤️.png
Last active July 26, 2023 11:52
Raccoon﹠Monkey lover ❤️
🙈❤️.png