Skip to content

Instantly share code, notes, and snippets.

View Lobbyra's full-sized avatar

Jérémy Caudal Lobbyra

View GitHub Profile
@Lobbyra
Lobbyra / nouveau.drawio
Created September 10, 2025 12:53
ouaiouaiouai
<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0" version="28.2.0">
<diagram name="ACTUEL" id="FyFq-2kfXTpWsAiSBSE5">
<mxGraphModel dx="1722" dy="949" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="ILXAYd5S_T7aR1IVfI5M-1" value="&lt;strike&gt;main&lt;/strike&gt; develop" style="whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="330" y="340" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="ILXAYd5S_T7aR1IVfI5M-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;curved=1;" edge="1" parent="1" source="ILXAYd5S_T7aR1IVfI5M-2" target="ILXAYd5S_T7aR1IVfI5M-1">
@Lobbyra
Lobbyra / secret.java
Last active August 14, 2023 19:27
This is a secret code for a job form
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/*
* This is the output :
@Lobbyra
Lobbyra / 42_to_\x4\x2.py
Last active March 9, 2023 17:30
42_to_\x4\x2.py
#!/usr/bin/python3
# DONE BY gemaroul & jecaudal
import sys
sys.stderr.write("becarefull to enter an odd hex\n")
arr = []
Publicspeakingisveryeasy.126241207206v7809opukmq426135
Publicspeakingisveryeasy.126241207205t4589opukmq426135
Publicspeakingisveryeasy.126241207204o1609opukmq426135
Publicspeakingisveryeasy.126241207203k2519opukmq426135
Publicspeakingisveryeasy.126241207202b7559opukmq426135
Publicspeakingisveryeasy.126241207201b2149opukmq426135
Publicspeakingisveryeasy.126241207200q7779opukmq426135
Publicspeakingisveryeasy.126241207206v7809opukma426135
Publicspeakingisveryeasy.126241207205t4589opukma426135
Publicspeakingisveryeasy.126241207204o1609opukma426135
This file has been truncated, but you can view the full file.
Publicspeakingisveryeasy.126241207200q7779/0%+-!426135
Publicspeakingisveryeasy.126241207201b2149/0%+-!426135
Publicspeakingisveryeasy.126241207202b7559/0%+-!426135
Publicspeakingisveryeasy.126241207203k2519/0%+-!426135
Publicspeakingisveryeasy.126241207204o1609/0%+-!426135
Publicspeakingisveryeasy.126241207205t4589/0%+-!426135
Publicspeakingisveryeasy.126241207206v7809/0%+-!426135
Publicspeakingisveryeasy.126241207200q7779/0%+-1426135
Publicspeakingisveryeasy.126241207201b2149/0%+-1426135
@Lobbyra
Lobbyra / alertPingProxy.lambda.js
Last active May 13, 2022 12:04
Code of a AWS lambda used as proxy for a grafana to telegram alert
const CHAT_ID = -100424242422442442244242;
const TELEGRAM_TOKEN = "";
const TELEGRAM_HOST = "api.telegram.org";
const SPREADSHEET_ID = ""
const GOOGLE_CLOUD_KEY = ""
const nameUrlMap = new Map();
const https = require('node:https');
@Lobbyra
Lobbyra / errorHiding.filter.ts
Created March 23, 2022 10:02
nest filter http exception for dev verbose and production obstruction
import { ArgumentsHost, Catch, ExceptionFilter, HttpException } from "@nestjs/common";
import { Response } from "express";
@Catch(HttpException)
export class ErrorHidingFilter implements ExceptionFilter {
catch(exception: HttpException, host: ArgumentsHost): void {
const ctx = host.switchToHttp();
const response = ctx.getResponse<Response>();
const status = exception.getStatus();
const message = exception.getResponse();
@Lobbyra
Lobbyra / iframe.html
Last active March 17, 2022 07:43
full div iframe
<html>
<style>
body,
html {
width: 100%;
height: 100%;
margin: 0;
padding: 0
}
@Lobbyra
Lobbyra / gist:613b4551f05a6010b12765961ba64a9a
Created March 15, 2022 15:51
proxy reverse nginx model
server {
listen 80;
server_name example.com;
location / {
proxy_pass https://xxxx/;
}
}
@Lobbyra
Lobbyra / script.js
Created February 26, 2022 17:25
App Script (google) code for connect circleci with telegram channel
var token = "YOUR TELEGRAM API CODE";
var telegramUrl = "https://api.telegram.org/bot" + token;
var webAppUrl = "THE URL OF THE APP SCRIPT INSTANCE"
function setWebhook() {
var url = telegramUrl + "/setWebhook?url=" + webAppUrl;
var response = UrlFetchApp.fetch(url);
}
function sendMessage(chat_id, text) {