Skip to content

Instantly share code, notes, and snippets.

@4x10m
4x10m / proof.md
Created April 10, 2026 00:13
Plop

aspe:keyoxide.org:4IYTRKNELZZF3LUOSYKBFFQMXU

@4x10m
4x10m / Ogame Free Planet
Last active August 2, 2025 00:36
Find free planet in ogame on specific position
```
npm install jsdom
node ogame-free-planet.js
```
docker
```
docker run -v ./:/app -w /app node npm install && node ogame-free-planet.js
```
@4x10m
4x10m / connect-to-existing-browser.py
Last active October 22, 2024 02:48
Reuse existing browser with selenium 4
# on se connecte au navigateur
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.remote_connection import ChromeRemoteConnection
# ici on essaie de se reposer au maximum sur selenium pour l'instanciation et la gestion de la durée de vie du driver en utilisant la classe Service
myService = Service(executable_path="/usr/local/bin/chromedriver", port=9515)
myService.start()
@4x10m
4x10m / Find-GitRepository.ps1
Created July 27, 2021 01:10 — forked from jdhitsolutions/Find-GitRepository.ps1
Use this PowerShell function to find Git repositories in the specified folder. It is assumed that you have the Git command line tools already installed.
Function Find-GitRepository {
<#
.SYNOPSIS
Find Git repositories
.DESCRIPTION
Use this command to find Git repositories in the specified folder. It is assumed that you have the Git command line tools already installed.
.PARAMETER Path
The top level path to search.
@4x10m
4x10m / autoclick.c
Last active August 29, 2015 14:11 — forked from pioz/autoclick.c
// Written by Pioz.
// Compile with: gcc -o autoclick autoclick.c -lX11
#include <stdio.h>
#include <string.h>
#include <X11/Xlib.h>
// Simulate mouse click
void
click (Display *display, int button)