I hereby claim:
- I am ixe013 on github.
- I am ixe013 (https://keybase.io/ixe013) on keybase.
- I have a public key ASDVKpY197mr9of1D44fuPwJhESiuireGAjklHQ9UC_sbAo
To claim this, I am signing this object:
| #!/bin/bash | |
| # ========================================== | |
| # 1. CONFIGURATION | |
| # ========================================== | |
| # Utilisation de valeurs par défaut si non définies dans l'environnement | |
| : ${VM_NAME:=ma-vm-debian} | |
| : ${IMAGE_URL:=https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2} | |
| : ${BASE_IMG:=debian-12-base.qcow2} | |
| : ${DISK_IMG:="${VM_NAME}.qcow2"} |
| import argparse | |
| import collections | |
| import json | |
| import sys | |
| def sort_json(json_obj): | |
| if isinstance(json_obj, dict): | |
| sorted_dict = collections.OrderedDict() | |
| for key in sorted(json_obj.keys()): | |
| sorted_dict[key] = sort_json(json_obj[key]) |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "encoding/hex" | |
| "fmt" | |
| "strings" | |
| "github.com/capitalone/fpe/ff1" | |
| //"alphabets" | |
| ) |
| @if (@X)==(@Y) @end /* JScript comment | |
| @echo off | |
| REM Polyglot code adapted from https://stackoverflow.com/a/24396149/591064 | |
| setlocal enableDelayedExpansion | |
| REM Too few arguments? | |
| if "x%1" == "x" goto usage_help | |
| REM Find the latest JScript.Net compiler | |
| for /f "tokens=* delims=" %%v in ('dir /b /s /a:-d /o:-n "%SystemRoot%\Microsoft.NET\Framework\*jsc.exe"') do ( |
| import re | |
| emp = 'cn.l.ble.901:itc' | |
| #Test regex here: | |
| #https://pythex.org/?regex=%5E(%5Ba-z%5D%7B2%2C4%7D)%5C.l%5C.(%5Ba-z%5D%2B%3F)%5C.(.*)%3A(.*)&test_string=cn.l.ble.901%3Atmc | |
| pattern = re.compile(r'^([a-z]{2,4})\.l\.([a-z]+?)\.(.*):(.*)') | |
| match = pattern.search(emp) | |
| scac, origin, number, topic = match.groups() | |
| #print(scac, origin, number, topic) | |
| print(f'emp={emp}') | |
| print(f'locoid={origin}{number}') |
| import itertools | |
| tests_passed = { | |
| 'simple end of line': | |
| [ b'One\nSSH>', | |
| b'no!', | |
| ], | |
| 'simple begining of line': | |
| [ b'SSH>', | |
| ], |
| import concurrent.futures | |
| import logging | |
| import threading | |
| import time | |
| import random | |
| def return_after_5_secs(num, stop): | |
| threading.current_thread().name = f"banane{num}" | |
| logging.debug(f"from inside {num}") |
| #See https://stackoverflow.com/q/54425723/591064 for usage | |
| async def adapter_cmdloop(self, intro=None): | |
| """Repeatedly issue a prompt, accept input, parse an initial prefix | |
| off the received input, and dispatch to action methods, passing them | |
| the remainder of the line as argument. | |
| """ | |
| self.preloop() | |
| #This is the same code as the Python 3.7.2 Cmd class, with the |
| from __future__ import print_function | |
| import base64 | |
| import json | |
| import os.path | |
| import pprint | |
| import sys | |
| import time | |
| import zlib |