Skip to content

Instantly share code, notes, and snippets.

View Rebolon's full-sized avatar
🤩
going back to Angular (v16)

Benjamin RICHARD Rebolon

🤩
going back to Angular (v16)
View GitHub Profile
@Rebolon
Rebolon / gist:d1199e5f8934c6ad8e3651e8d5df2b7a
Created February 19, 2025 21:01
Télécharger les 2 dernières années de consommation électrique par heure depuis le site enedis
0. Il faut avoir activé la remontée d'info sur le site d'enedis
1. Aller sur le site d'enedis, page de visualisation des mesures : https://mon-compte-particulier.enedis.fr/visualiser-vos-mesures-production
2. Ourvir le devtools de votre navigateur : touche F12
3. Coller le script dans la console du devTools
4. Faire un clique droit sur le tableau affiché à la fin du script et choisir Copier Objet
5. Coller le contenu dans un fichier texte/js/json
Faites en ce que vous voulez pour analyser
Script :
@Rebolon
Rebolon / resume.json
Created November 12, 2020 14:54
Resume extracted from linkedin to json (jsonresume.org). Download resume-cli and export with `resume export resume.pdf` you can also use a theme to take care of end of line and tabulation
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Benjamin Richard",
"label": "Manager technique / Concepteur d'application web",
"picture": "https://doschzharf1i9.cloudfront.net/personal_assets/user/200x200/1e784e20-2760-4b90-b0b6-0d7c03af34c1.png",
"email": "[email protected]",
"phone": "(+33) 6-- --- ---",
@Rebolon
Rebolon / LICENSE
Created August 30, 2018 20:43 — forked from noelbundick/LICENSE
Exclude WSL installations from Windows Defender realtime protection
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@Rebolon
Rebolon / nginx.conf
Created January 8, 2018 12:36 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@Rebolon
Rebolon / lodash2es6.js
Last active October 19, 2017 14:51
replace some feature from lodash/underscore with pure es6
let monObjet = {name: "moi", job: "dev", city: "lyon"}
let monTableau = [1, "dessert", "soir", ]
ee = _.first(monTableau)
become
[ee] = monTableau
ee = _.last(monTableau)
become
[ee] = [...monTableau].reverse() // prevent monTableau mutation
@Rebolon
Rebolon / gist:18256816554392f03322ebe44fbb656b
Created October 12, 2017 20:20
Fetch API with Rxjs and their Observable
const uri = 'https://ghibliapi.herokuapp.com/films'
Rx.Observable
.fromPromise(
fetch(uri)
)
.flatMap(res => res.json())
.subscribe(res => console.log(res))
@Rebolon
Rebolon / gitclean.sh
Created September 27, 2017 08:46
clean git branch
git branch --merged | grep -v '\*' | xargs -n 1 git branch -d
@Rebolon
Rebolon / git-clean-branch
Created September 20, 2017 08:00
clean git branch already merged
!git branch --merged | grep -v '\*' | xargs -n 1 git branch -d
@Rebolon
Rebolon / interceptors.js
Created March 13, 2017 17:32
#vuejs : vue-resource cache plugin with PouchDB
/**
* allow to cache response and/or to listen on newRequest event
*
* for cache system, it's freely adapted from https://github.com/pagekit/vue-resource/issues/252 @airtonix sample
*/
export class HttpInterceptors {
_cache
constructor (Vue, ttlInHours) {
@Rebolon
Rebolon / vue.debug.js
Created November 5, 2016 20:50
A solution to use debugger in v-for for VueJS
<ul id="pages-block">
<li v-for="page in pages">
<a v-bind:href="page.url">{{page.name}}</a>
<debug :item="page"/>
</li>
</ul>
...
Vue.component('debug', {