Skip to content

Instantly share code, notes, and snippets.

View malys's full-sized avatar

Malys malys

View GitHub Profile
@malys
malys / .bashrc
Created February 7, 2021 15:37
[Nyagos + Bash ] Include bash completion in nyagos #nyagos #bast #completion #windows
#
# Author: Brian Beffa <[email protected]>
# Original source: https://brbsix.github.io/2015/11/29/accessing-tab-completion-programmatically-in-bash/
# License: LGPLv3 (http://www.gnu.org/licenses/lgpl-3.0.txt)
#
get_completions(){
local completion COMP_CWORD COMP_LINE COMP_POINT COMP_WORDS COMPREPLY=()
# load bash-completion if necessary
@malys
malys / keldoc.py
Created May 24, 2021 10:00
Vaccination
import requests
import json
import time
import datetime
proxies={
}
searches=[
{"toulouse-31000":"vaccinodrome-toulouse"},
@malys
malys / markExport.js
Last active August 8, 2025 16:48
[Mark preprocessing] plantuml and external file insertion #md #confluence #plantuml #mark
/*
Prerequisites:
* Plantuml + Java
* Mark
* npm i -g zx
* zx markExport.mjs "password"
<!-- Attachment: ./release_stable.puml.png --> => generate automatically image from release_stable.puml
<!-- file://D:/example.js;10;12 --> => insert code snippets
*/
@malys
malys / suspend.cmd
Created October 15, 2021 07:16
[Suspend process] suspend and resume process #windows #dos #batch
@echo off
rem ================================================================
rem To suspend a process, use the following command:
rem suspend.cmd
rem ===========================
rem To resume a process, use the following command:
rem suspend.cmd resume
rem ================================================================
rem Process to suspend or resume
@malys
malys / Readme.md
Last active January 18, 2022 12:57
[Semantic releasing automation] zx scripts for semver automation #zx #semver #maven #nodejs #javascript

Based on zx-semrel concept, followed scripts are examples to automate full releasing process with zx scripts.

Purpose

zx-semrel concept proposes an implementation of semantic release for node projects using zx.

In our case, we try to generalize this idea to:

  • provide a script agnostic to build technology (npm, maven ,gulp, ...): release.mjs
  • provide a script using maven for build engine: release_maven.mjs
  • provide modularity architecture to factorize code and to cover more use case: release_util_update.mjs
@malys
malys / convertToCurl.js
Last active December 3, 2021 13:41
[Artillery to curl] script to artillery script to curl commands #artillery #curl #nodejs #javascript
//node convertToCurl.mjs script.yml > test.sh
// mv convertToCurl.js convertToCurl.mjs
import convertToCurl from './convertToCurlLib.mjs'
import yargs from 'yargs'
import {
hideBin
} from 'yargs/helpers'
const argv = yargs(hideBin(process.argv)).argv
console.log(convertToCurl(argv._[0]))
@malys
malys / .bashrc.j2
Created January 1, 2022 11:24
[WSL from Clear Linux] script to artillery script to curl commands #wsl #clearlinux #nodejs #docker #kubernetes #desktop
{% if docker %}
export DOCKER_DIR=/mnt/wsl/shared-docker
export DOCKER_SOCK="$DOCKER_DIR/docker.sock"
export DOCKER_HOST="unix://$DOCKER_SOCK"
#if [ ! -f "$DOCKER_SOCK" ]; then
# mkdir -pm o=,ug=rwx "$DOCKER_DIR"
# chgrp docker "$DOCKER_DIR"
# nohup sudo -b dockerd < /dev/null > $DOCKER_DIR/dockerd.log 2>&1
#fi
@malys
malys / index.js
Last active January 14, 2025 07:44
[BBox] API router auto configuration #nodejs #api #router #bbox #configuration #bouygues #telecom
// npm i fetch-cookie debug node-fetch chalk
// Remote configuration for BBox router (Bouygues telecom)
// set password in admin console (xxxxx)
// TODO waiting OpenAPI descriptor to generate client automatically
/****************
* Please contribute supporting new methods including them in methods.js
* see https://api.bbox.fr/doc/apirouter/index.html
* or open chrome dev tools and see the network tab and export the request in fetch format
*****************/
@malys
malys / intuos.sh
Created May 31, 2023 16:18
[Intuos Tablet] configuration #bash
#!/usr/bin/sh
# Wacom Intuos BT S pad
# ___________________________________________
# | _____________________________________ |
# | / | | | | \ |
# | | 0 | 1 | | 2 | 3 | |
# | \_______|________|____|_______|_______/ |
# | ___________________________________ |
# | | | |