Skip to content

Instantly share code, notes, and snippets.

View jgribonvald's full-sized avatar

Julien Gribonvald jgribonvald

  • GIP RECIA
  • France, Olivet 45160
  • 20:55 (UTC +01:00)
View GitHub Profile
@jgribonvald
jgribonvald / PBs_Wayland_Ubuntu_24.04.md
Last active November 4, 2024 13:13
Pbs Wayland Ubuntu 24.04
  • Cluster SSH problem
$ cssh -l user mycluster
Connection to server failed -- (version 11.0)
Authorization required, but no authorization protocol specified
 at /usr/share/perl5/App/ClusterSSH/Window/Tk.pm line 57.

Fix:

$ xhost +SI:localuser:$(whoami)

Atelier "Installation et démarrage avec Karuta + KAPC 1.3"

Plan:

Demander pour enregistrer l'atelier

  1. Installation des services
  2. Initialisation programme de formation et portfolios
  3. Échanges et discussions
    • alimentation (via APOGEE / PEGASE)

Installation des services

Pré-requis:

@jgribonvald
jgribonvald / sftp-setup-ssh-keys.sh
Created July 21, 2021 12:57 — forked from angrychimp/sftp-setup-ssh-keys.sh
Setting up SSH keys for key-auth with ProFTPd (w/ SFTP module)
#!/bin/bash
USERNAME="your username here"
SFTPHOST="your sftp host"
SFTPPORT=22 # or other port, if non-standard
# Create SSH key-pair for SFTP access
# (creates pair with no passphrase)
ssh-keygen -b 4096 -t rsa -C "$SFTPHOST" -N "" -f ~/.ssh/id_rsa.sftp
@jgribonvald
jgribonvald / datetime.java
Created February 10, 2020 09:19 — forked from salomvary/datetime.java
Java 8 Date and Time Parsing and Formatting Microtutorial
import java.time.format.DateTimeFormatter;
import java.time.Instant;
import java.time.ZonedDateTime;
import java.time.ZoneId;
import java.time.ZoneOffset;
Instant.now();
// java.time.Instant = 2015-08-13T09:28:27.141Z
DateTimeFormatter.ISO_INSTANT.format(Instant.now());
@jgribonvald
jgribonvald / git-commit-log-stats.md
Created May 28, 2019 10:00 — forked from eyecatchup/git-commit-log-stats.md
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.




@jgribonvald
jgribonvald / README-Template.md
Created March 28, 2019 12:05 — forked from PurpleBooth/README-Template.md
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

Affichage des log avec décoration et détails personnalisés

git log --graph --decorate --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

définir des alias de commandes

git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@jgribonvald
jgribonvald / webcomponent_caching_buster
Created June 14, 2018 08:53
Avoiding javascript browser caching of webcomponent
<script type="text/javascript" language="javascript">
//adapt this line to insert a version number for production use, or use this line for dev use
var versionUpdate = (new Date()).getTime();
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "/PATH_SCRIPT/your_component.js?v=" + versionUpdate;
document.body.appendChild(script);
</script>
@jgribonvald
jgribonvald / browserLangDetection.js
Created June 12, 2018 15:25
js script to detect user Browser lang
function checkLang () {
// These window.navigator contain language information
// 1. languages -> Array of preferred languages (eg ["en-US", "zh-CN", "ja-JP"]) Firefox^32, Chrome^32
// 2. language -> Preferred language as String (eg "en-US") Firefox^5, IE^11, Safari,
// Chrome sends Browser UI language
// 3. browserLanguage -> UI Language of IE
// 4. userLanguage -> Language of Windows Regional Options
// 5. systemLanguage -> UI Language of Windows
var browserLanguagePropertyKeys = ['languages', 'language', 'browserLanguage', 'userLanguage', 'systemLanguage'];

Création d'un keystore à partir des certificats wildcard obtenus par une autorité de certification Pré-requis : avoir la clé privée, publique et le certificat intermédiaire.

extraction sous forme de pkcs12 :

openssl pkcs12 -export -out mydomain.pkcs12 -inkey my_privatekeyfile.key -in the_public_key.crt -certfile the_intermediate_CA.crt

generation du keystore