Pour mettre en place une authentification par certificat avec nginx comme reverse proxy.
Créer l'authorité de certification
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
{ | |
"meta": { "theme": "elegant" }, | |
"basics": { | |
"name": "Raphaël Audet", | |
"label": "Software and Technology Consultant", | |
"email": "[email protected]", | |
"phone": "+33 7 66 45 57 75", | |
"picture": "https://avatars.githubusercontent.com/u/1086433?v=4", | |
"website": "https://audetconseil.fr", | |
"summary": "18 years' experience in Software, R&D leadership and strategic IT missions", |
// Function to calculate the number of milliseconds left until 13:00 Paris time | |
function calculateMillisecondsLeft() { | |
const now = new Date(); | |
const parisTime = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 13, 0, 0); // Set the desired time (13:00) | |
const timeUntilParisTime = parisTime - now; // Time difference until 13:00 Paris time | |
const millisecondsLeft = Math.floor(timeUntilParisTime); | |
return millisecondsLeft; | |
} | |
// Function to wait for the specified duration in milliseconds and then navigate |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "test_mauco_sequences", | |
"type": "python", | |
"request": "launch", | |
"stopOnEntry": false, | |
"pythonPath": "${workspaceRoot}/venv/bin/python", |
Based on a list Michael Azerhad published on linkedin.
#!/bin/bash | |
sudo apt-get install zsh | |
sudo apt-get install build-essential git-core tmux | |
sudo chsh ubuntu /usr/bin/zsh | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
cd ~/.rbenv && src/configure && make -C src | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc | |
~/.rbenv/bin/rbenv init | |
vi ../.zshrc |
style=(["'])(?:(?=(\\?))\2.)*?\1 | |
<!--[^>]*--> | |
data-identifier=(["'])(?:(?=(\\?))\2.)*?\1 | |
data-index=(["'])(?:(?=(\\?))\2.)*?\1 | |
class=(["'])(?:(?=(\\?))\2.)*?\1 | |
compilesafe=(["'])(?:(?=(\\?))\2.)*?\1 | |
tooltip=(["'])(?:(?=(\\?))\2.)*?\1 |
# FIXME theses scripts dont really play well if the app or services names have spaces | |
# WARNING theses onlinerss are destructive, please dont copy/paste this without understanding what you are doing, k? | |
# alias to got to the cloud foundry bluemix test environment and remove all apps and all services with "example" | |
alias NukeBluemix="export CF_HOME=~/.cf/profiles/bluemix && \ | |
cf apps | grep .eu-gb.mybluemix.net | awk '{print $1}' | xargs -n 1 cf d -f -r && \ | |
cf s | grep example | awk '{print $1}' | xargs -n 1 cf ds -f" | |
# the same as above but for "example" services only |
# UTF-8 | |
set-option -g status-utf8 on | |
set-window-option -g utf8 on | |
# Set 256-colour terminal | |
set -g default-terminal "screen-256color" | |
# windows starts at 1 | |
set -g base-index 1 |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |