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 / 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
Publicspeakingisveryeasy.126241207202b7559/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) {
@Lobbyra
Lobbyra / config.yml
Created February 22, 2022 14:49
[ETELCODE] Working, first version of the POC of ci cd pipeline
# This config is equivalent to both the '.circleci/extended/orb-free.yml' and the base '.circleci/config.yml'
version: 2.1
# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects.
# See: https://circleci.com/docs/2.0/orb-intro/
orbs:
node: circleci/node@5.0.0
jobs:
main:
docker: