aspe:keyoxide.org:4IYTRKNELZZF3LUOSYKBFFQMXU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ``` | |
| npm install jsdom | |
| node ogame-free-planet.js | |
| ``` | |
| docker | |
| ``` | |
| docker run -v ./:/app -w /app node npm install && node ogame-free-planet.js | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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) |