This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| from yaml import safe_load_all, dump | |
| import sys | |
| import pika | |
| def serialize(channel, method, props, body): | |
| msg={'body': body.decode('utf-8'), 'headers': props.headers, 'routingkey': method.routing_key} | |
| dump(msg, sys.stdout, default_flow_style=False) | |
| sys.stdout.write('---\n') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| loadbalancer: | |
| image: traefik:1.7 | |
| restart: always | |
| command: --api --docker | |
| ports: | |
| - "80:80" | |
| - "8080:8080" | |
| volumes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| register short *to, *from; | |
| register count; | |
| { | |
| register n=(count+7)/8; | |
| switch(count%8){ | |
| case 0: do{ *to = *from++; | |
| case 7: *to = *from++; | |
| case 6: *to = *from++; | |
| case 5: *to = *from++; | |
| case 4: *to = *from++; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name DLFPNoKarma | |
| // @namespace DLFPNoKarma | |
| // @version 0.1 | |
| // @description https://linuxfr.org/users/peetah/journaux/plonk | |
| // @author You | |
| // @match https://linuxfr.org/* | |
| // @grant none | |
| // @run-at document-body | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sub MAIN ($length){say (1...$length).map({("*" x $length).comb.join("_").subst(/\*_/," ", :x($length-$_))}).join("\n")} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://pastebin.com/raw/u67CjRJZ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Non je rigole on va attendre un peu tout de même ;) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # install in /etc/NetworkManager/dispatcher.d/02tarsnap | |
| IF=$1 | |
| STATUS=$2 | |
| RETENTION_DAYS=7 | |
| RETENTION_COUNT=5 | |
| [[ "$STATUS" != 'up' ]] && exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name AutoFill Push | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://qlf-sun-admin.sfr.com/sun/push/ng/bundles/*/campaigns/add/* | |
| // @match https://sun-admin.sfr.com/sun/push/ng/bundles/*/campaigns/add/* | |
| // @match https://dev-sun-admin.inovatel.com/sun/push/ng/bundles/*/campaigns/add/* | |
| // @grant none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setopt AUTOCD # Faire un cd sans cd | |
| # Permet d'ajouter les répertoires dans les quels on navigue dans une pile | |
| # de manière automatique. S'utilise avec cd -<tab> (cd -2 permet d'aller dans l'avant dernier dossier parcouru) | |
| setopt AUTO_PUSHD | |
| setopt PUSHDMINUS | |
| # permet de créer un racourcis vers un dossier à utiliser ~plouf | |
| hash -d plouf="${HOME}/fold1/fold2/fold3/" |