Skip to content

Instantly share code, notes, and snippets.

View tisseurdetoile's full-sized avatar
🏠
confiné

tisseurdetoile tisseurdetoile

🏠
confiné
View GitHub Profile
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
PRODID:adamgibbons/ics
METHOD:PUBLISH
X-PUBLISHED-TTL:PT1H
BEGIN:VEVENT
UID:Yo9w3HmzQHhEXVeu_Sjhm
SUMMARY:Theme: délavé/flétri
DTSTAMP:20220804T192100Z
@tisseurdetoile
tisseurdetoile / .git-commit-template
Last active May 26, 2020 19:34 — forked from zakkak/.git-commit-template
This commit message template that helps you write great commit messages and enforce it across your team.
# <type(scope)> (Si appliqué, ce commit fera...) <sujet> (Max 72 char)
# |<---- C'est mieux en 50 charactères --->|<------------------->|
# Exemples:
# feat: automatisation des messages de commits
# feat(commit): automatisation des messages
# (Optionnel) Expliquer pourquoi ce changement est fait
# |<---- Essayer de vous limiter à un maximum de 72 characteres ---->|
# (Optionnel) Fournissez les liens/référence vers les tickets et autres resources
@tisseurdetoile
tisseurdetoile / ts_middleware.js
Created October 1, 2018 08:46
middleware for json-server
/**
* ts_middleware.js for json-server
* add a timestamp _ts variable for entry
* https://github.com/typicode/json-server
*/
module.exports = function(req, res, next) {
if (req.method === 'PUT' || req.method === 'POST') {
if (req.body) {
req.body['_TS'] = Math.round(new Date().getTime() / 1000)
}
@tisseurdetoile
tisseurdetoile / hsqldb.cmd
Created May 31, 2018 13:11 — forked from kdabir/hsqldb.cmd
Windows cmd script to run HSQLDB server and client GUI
@echo off
REM set these variables
SET HSQLDB_HOME=c:\path\to\hsqldb
SET DB_NAME=mydb
REM start the server in new window ( prompt visible, so that you can CTRL+C )
REM database files are created in current directory/data
start java -cp %HSQLDB_HOME%\lib\hsqldb.jar org.hsqldb.server.Server --database.0 file:data/%DB_NAME% --dbname.0 %DB_NAME%
REM start the client GUI and connect to server ( no new cmd window opens because of javaw )
@tisseurdetoile
tisseurdetoile / .git-commit-template-simple.txt
Created May 26, 2018 16:02 — forked from adeekshith/.git-commit-template.txt
This commit message template helps you write great commit messages and enforce it across teams.
# S'il est appliqué ce chagement fera...
# Expliquer pourquoi ce changement est intervenue ?
Avant ce changement,
# Comment cela regle le problème ?
Ce changement
# Fournir les liens et les ids de tous les tickets, articles ressources utiles
@tisseurdetoile
tisseurdetoile / readme.md
Created March 9, 2018 09:33 — forked from mattliuoz/readme.md
User_story

EPIC = Group of user stories
RMP = Rate My Photographer
Vister is a user doesn’t have login to RMP website

EPIC - Vister

  • As a visiter,
    when I visit RMP homepage,
    then I should be able to see: -Top 5 photographers in a list -Newest added 5 photographers in a list
@tisseurdetoile
tisseurdetoile / destroyMe.sh
Created March 1, 2018 09:13
RancherScript - A script that remove the service associated to his container.
#!/bin/bash
ranchermeta=http://rancher-metadata/latest/self
rancherkey=<<PASTE YOUR RANCHER KEY>>
ranchersecretkey=<<PASTE YOUR RANCHER SECRET KEY>>
rancherserverurl=<<PASTE YOUR RANCHER URL>>>
servicename=$(curl -s $ranchermeta/service/name)
echo $servicename
projectname=$(curl -s $ranchermeta/stack/environment_name)
echo $projectname
urlproject=$(curl -s -u "$rancherkey:$ranchersecretkey" -H 'Accept: application/json' $rancherserverurl/v2-beta/projects?name=$projectname | jq -r '.data[0].links.self')
@tisseurdetoile
tisseurdetoile / arrays_tips.js
Last active November 11, 2022 10:23
Array transformation for javaScript
/**
* Arrays to parse.
*/
const array_one = ['one', 'two', 'three', 'four']
const array_two = ['three', 'four', 'five', 'six']
const big_one = ['one', 'two', 'three', 'four', 'three', 'four', 'five', 'six']
const array_number = [1, 10, 100, 9, 7, 5, 4, 55, 76, 45, 32, 92, 41]
const array_obj_number = [
{ val: 1 },
{ val: 10 },

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@tisseurdetoile
tisseurdetoile / README-Template.md
Created January 23, 2018 01: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