Skip to content

Instantly share code, notes, and snippets.

View barmic's full-sized avatar

Michel barmic

  • Grenoble
View GitHub Profile
@barmic
barmic / script.sh
Created September 14, 2015 15:42
script shell
#!/bin/sh
#
STARTDATE="$(date -d '2015-09-14 10:30:00-000' '+%a %e %b %R')"
SUMMARY="Déjeuner avec M."
ics=$(mktemp --suffix=.ics)
cat > "${ics}" <<EOF
BEGIN:VCALENDAR
VERSION:2.0
PRODID:ownCloud Calendar
CALSCALE:GREGORIAN
@VertxGen
public interface Event {
String getProjectId();
long getCreation();
}
for ind in $(seq ${users_nb})
do
users_list=("${users_list[@]}" "${users[${ind}]}" "${users_comment[${ind}]}")
done
backtitle='backtitle'
title='title'
help_text='help text'
dialog --clear --help-button --nocancel --colors --backtitle "${backtitle}" --title "${title}" --menu "${help_text}" 18 110 10 "${users_list[@]}" 2>"${INPUT}"
7cc13c7 - pretty: expand tabs in indented logs to make things line up properly il y a 8 semaines <Linus Torvalds>
1571586 - git log: support "auto" decorations il y a 2 ans <Linus Torvalds>
dc2eacc - request-pull: allow "local:remote" to specify names on both ends il y a 2 ans et 3 mois <Linus Torvalds>
024d34c - request-pull: more strictly match local/remote branches il y a 2 ans et 3 mois <Linus Torvalds>
74faaa1 - Fix "git diff --stat" for interesting - but empty - file changes il y a 3 ans et 7 mois <Linus Torvalds>
9d55b2e - mailinfo: don't require "text" mime type for attachments il y a 3 ans et 8 mois <Linus Torvalds>
08a94a1 - commit/commit-tree: correct latin1 to utf-8 il y a 3 ans et 9 mois <Linus Torvalds>
a3347b9 - fmt-merge-message: add empty line between tag and signature verification il y a 4 ans <Linus Torvalds>
8580830 - "git pull" doesn't know "--edit" il y a 4 ans et 3 mois <Linus Torvalds>
7a2b128 - fetch: do not store peeled tag object names in FETCH_HEAD il y a 4 ans et 7 mois <Linus Tor
{
"application": {
"name": "Firefox",
"osVersion": "Linux 4.5.0-0.bpo.2-amd64",
"version": "49.0a1",
"buildID": "20160605030215",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0",
"safeMode": false,
"updateChannel": "nightly",
"supportURL": "https://support.mozilla.org/1/firefox/49.0a1/Linux/fr/",
@barmic
barmic / thunderbird
Created August 17, 2016 12:46
Information de dépanage de thunderbird
Paramètres de base de l'application
Nom: Thunderbird
Version: 45.2.0
Agent utilisateur: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
Répertoire de profil: Ouvrir le dossier correspondant
(Lecteur local)
@barmic
barmic / tuto.md
Last active April 5, 2022 07:51
Authentification par certificat avec nginx

Pour mettre en place une authentification par certificat avec nginx comme reverse proxy.

Création des certificats

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
@barmic
barmic / idea.sh
Created May 18, 2018 09:34
Run idea
#!/bin/zsh
IDEA_SCRIPT=$(print -l /opt/idea-IU-*/bin/idea.sh | sort | tail -n1)
/usr/local/bin/reset-signal "${IDEA_SCRIPT}" &> /dev/null &
@barmic
barmic / .gitconfig
Created June 6, 2018 12:09
Configuration git
[user]
name = Michel Barret
email = michel.barret@inovatel.com
[push]
default = simple
[alias]
st = status --short --branch
co = checkout
br = branch
fetch = fetch --prune
@barmic
barmic / Hello.java
Created August 5, 2018 09:08
HelloWorld Atlas
import info.q37.atlas.*;
class Hello extends Atlas {
public void handle( DOM dom, String action, String id )
{
String head =
"<title>\"Hello, World !\" example</title>" +
"<style type=\"text/css\">" +
" html, body { height: 100%; padding: 0; margin: 0; }" +
" .vcenter-out, .hcenter { display: table; height: 100%; margin: auto; }" +