Skip to content

Instantly share code, notes, and snippets.

View germainlefebvre4's full-sized avatar

Germain Lefebvre germainlefebvre4

  • Lille
View GitHub Profile
@danielepolencic
danielepolencic / nsm.md
Last active April 10, 2023 17:45
Nginx Service Mesh — installation instructions

Nginx Service Mesh (NSM)

You will install the Nginx Service Mesh locally using minikube.

Launch a new cluster with:

minikube start \
  --extra-config=apiserver.service-account-signing-key-file=/var/lib/minikube/certs/sa.key \
 --extra-config=apiserver.service-account-key-file=/var/lib/minikube/certs/sa.pub \
@ic0n
ic0n / get_chromedriver_download_progress.md
Last active November 17, 2023 17:53
Get chromedriver current downloads progress(es) with python using selenium

Notice:

* This method is tested on Chrome Version 61.0.3163.100, chromedriver Version 2.33.506106

Getting the progress of the first downloads-item

So for some reason, chrome keeps download items in the shadow-root of tag .

This makes me so confused when I am trying to automate chrome to download files.

@mdonkers
mdonkers / server.py
Last active July 22, 2024 13:51
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
@PurpleBooth
PurpleBooth / README-Template.md
Last active July 25, 2024 06:10
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@germainlefebvre4
germainlefebvre4 / Wordpress_Shortcode_Lister_Brouillons
Last active August 29, 2015 14:04
Wordpress : Créer un shortcode pour lister les articles en brouillon
------------------------------------------------------------
Wordpress
------------------------------------------------------------
Créer un [Shortcode] pour lister les articles en brouillon
------------------------------------------------------------
<?php
function shortcode_brouillons($param) {

Google Apps Script Document Utilities

  • getAllLinks.js

  • getAllLinks(element) - returns array of all UrlLinks in Document

  • findAndReplaceLinks(searchPattern,replacement) - changes all matching links in Document

  • changeCase.js - Document add-in, provides case-change operations in the add-in Menu.

  • onOpen - installs "Change Case" menu

  • _changeCase - worker function to locate selected text and change text case. Case conversion is managed via callback to a function that accepts a string as a parameter and returns the converted string.

  • helper functions for five cases

@willurd
willurd / web-servers.md
Last active July 23, 2024 17:12
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000