Skip to content

Instantly share code, notes, and snippets.

View glenux's full-sized avatar
Being happy

Glenn Y. Rolland glenux

Being happy
View GitHub Profile
##
## CreateBOM: A Macro for FreeCAD
##
## The goal of this macro is to generate a Bill of Materials (BOM)
## from the active FreeCAD document.
##
# Build BOM from document objects
doc = FreeCAD.ActiveDocument
objects = doc.Objects
# variant: FreeCADGui.Selection.getSelection()

TP3 (nextcloud)

Sur la base de l'exercice précédent (TP2 et TP1)

  1. Installer l'outil Kompose (voir site du Kubernetes)
  2. Définir un fichier docker-compose.yml permettant de faire fonctionner le logiciel Nextcloud, avec l'image NEXTCLOUD et l'image POSTGRES
  3. Ajouter les volumes dans le docker-compose.yml
    • nextcloud_data: utilisé par nextcloud, monté sur /var/www/html
  • postgres_data: utilisé par postgres, monté sur /var/lib/postgres/data (a vérifier)

Analyse rapide des consequences de la guerre Ukraine-Russie

Légende:

  • HYPO = hypothese
  • FACT = faits
  • DESC = description

Conséquences

blockchain-development--blockchain-from-scratch

Parent: blockchain

Blockchain development: from scratch

Games

blockchain-development--from-scratch
Parent: blockchain
## Theory
* [The Blockchain Explained to Web Developers, Part 1: The Theory](https://marmelab.com/blog/2016/04/28/blockchain-for-web-developers-the-theory.html)
* [The Blockchain Explained to Web Developers, Part 2: In Practice](https://marmelab.com/blog/2016/05/20/blockchain-for-web-developers-in-practice.html)
* [The Blockchain Explained to Web Developers, Part 3: The Truth](https://marmelab.com/blog/2016/06/14/blockchain-for-web-developers-the-truth.html)

TP S1E1 - Automatisation du provisionning d'un serveur de wikis

On souhaite utiliser dokuwiki, une application de Wiki, c'est à dire de gestion collaborative de contenu, pour créer plusieurs espaces communautaires.

  • recettes.wiki
  • politique.wiki

On souhaite utiliser Puppet pour faciliter et automatiser les multiples

@glenux
glenux / n8n-function-truncate.js
Last active January 23, 2021 17:29
n8n.io Function - Smart text truncate for tweets
let MAX_TWEET_LENGTH = 270;
function naiveCut(str, maxLen){
// Guard
if (str.length <= maxLen) {
return str;
}
return str.slice(0, maxLen-1);
}
# -*- mode: ruby -*-
# vi: set ft=ruby sw=2 st=2 et :
SERVERS_COUNT = 2
CLIENTS_COUNT = 1
HOSTS = {}
Vagrant.configure("2") do |config|
config.vm.box = "debian/buster64"

TP - automatisation du provisionning d'un serveur de wikis

On souhaite utiliser dokuwiki pour créer plusieurs espaces communautaires

  • recettes.wiki
  • politique.wiki

Etapes communes

<template>
<div class="header">
<transition name="fade">
<dt-header-search v-if="searchEnable" @search="toggleSearch" />
<dt-header-normal v-else @search="toggleSearch" />
</transition>
</div>
</template>
<script lang="ts">