Skip to content

Instantly share code, notes, and snippets.

View tdaron's full-sized avatar
☀️
Enjoying life

Théo Daron tdaron

☀️
Enjoying life
View GitHub Profile
@tdaron
tdaron / uclouvain.user.js
Last active March 4, 2025 09:27
UCLouvain, but better
// ==UserScript==
// @name UCLouvain, but better
// @namespace http://tampermonkey.net/
// @version 2025-03-04
// @description Fix this awful website.
// @author tdaron
// @match https://www.uclouvain.be/*
// @run-at document-start
// @grant none
// @downloadURL https://gist.github.com/tdaron/853e65ee535cf0e9889edd0d270bfdc5/raw/uclouvain.user.js
@tdaron
tdaron / chrono_macro.c
Created February 5, 2025 13:43
Useful macro in C to measure time some code block takes !
#define setupChrono() clock_t start; clock_t end; double cpu_time_used;
#define chrono(t, ...) start = clock();\
__VA_ARGS__;\
end = clock();\
cpu_time_used = ((double) (end - start)) * 1000 / CLOCKS_PER_SEC; \
printf("[PERFORMANCE] Name: %s | File: %s | Line: %d | Execution Time: %.3f ms\n", t,__FILE__, __LINE__, cpu_time_used);
ID_start ID_end
BKK ADD
BOM ADD
CAI ADD
CAN ADD
CDG ADD
DEL ADD
DOH ADD
DXB ADD
FRA ADD
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:type" content="video.other">
<meta property="og:title" content="Amazing Video You Must Watch!">
<meta property="og:description" content="This video will change your life!">
<meta property="og:url" content="https://www.youtube.com/watch?v=wlsdMpnDBn8">
<meta property="og:image" content="https://img.youtube.com/vi/wlsdMpnDBn8/maxresdefault.jpg">
@tdaron
tdaron / config.fish
Last active December 10, 2024 17:58
revision picker for jj using fzf
function fzf_jj_edit
if test -d .jj
set -l name (jj log --no-graph -T 'change_id.shortest() ++ "\t" ++ description.first_line() ++ " " ++ bookmarks.join(" ") ++ "\n"' --color always | fzf --ansi | cut -f1)
commandline -it "$name"
else
commandline -it "# not in a jj directory"
end
end
bind \cj 'fzf_jj_edit'
import frida
import sys
# Define the JavaScript code to be injected
js_code = """
Interceptor.attach(Module.findExportByName(null, "calloc"), {
onEnter: function(args) {
console.log("calloc(" + args[0] + ") called");
console.log("count = "+Interceptor.count);
Interceptor.count++;
var stack = Thread.backtrace(this.context, Backtracer.ACCURATE);

Érasme

Table des matières

TODO: Plan de l’exposé

Biographie

version: '2.1'
services:
sonarr:
image: ghcr.io/linuxserver/sonarr
container_name: sonarr
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Brussels
volumes:
@tdaron
tdaron / Distribucloud_.idea_Distribucloud.iml
Created July 29, 2019 12:33
Distributed Cloud Written in Go
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>