Skip to content

Instantly share code, notes, and snippets.

View arthuRHD's full-sized avatar

Arthur Richard arthuRHD

View GitHub Profile
@arthuRHD
arthuRHD / onepiece.sh
Created April 13, 2024 12:54
One Piece scans without ads
#!/bin/bash
# Download the latest one piece chapter and aggregate each scan inside a PDF
#
# Prerequirements:
# - sudo apt install img2pdf ocrmypdf
# - internet access
if [ -z $1 ]; then
echo "You need to provide a chapter number"
exit 1
@arthuRHD
arthuRHD / onepiece.sh
Created December 12, 2023 20:02
Download the latest one piece chapter and aggregate each scan inside a PDF
#!/bin/bash
# Prerequirements:
# - sudo apt install img2pdf ocrmypdf
# - internet access
for i in {01..30}; do
url="https://lelscans.net/mangas/one-piece/$1/$i.jpg"
curl -sf $url -o onepiece_${i}.jpg # assuming there is around 30 pages by chapter
done
2023-05-14T14:46:37.3561136Z Requested labels: ubuntu-latest
2023-05-14T14:46:37.3561405Z Job defined at: BDE-Sciences-Economiques-Bordeaux/bdeseb-shop/.github/workflows/firebase-hosting-pull-request.yml@refs/pull/6/merge
2023-05-14T14:46:37.3561515Z Waiting for a runner to pick up this job...
2023-05-14T14:46:37.5324312Z Job is waiting for a hosted runner to come online.
2023-05-14T14:46:41.5375088Z Job is about to start running on the hosted runner: GitHub Actions 1 (hosted)
2023-05-14T14:46:44.3343139Z Current runner version: '2.304.0'
2023-05-14T14:46:44.3378879Z ##[group]Operating System
2023-05-14T14:46:44.3379828Z Ubuntu
2023-05-14T14:46:44.3380500Z 22.04.2
2023-05-14T14:46:44.3381112Z LTS
@arthuRHD
arthuRHD / crowdfund_poc.sol
Last active July 21, 2023 18:16
Working on a way to crowdfund with ETH
pragma solidity ^0.8.0;
contract CrowdFund {
address public creator;
address public fundRecipient;
uint public minimumToRaise;
string campaignUrl;
uint8 constant version = 1;
enum State {
[debug] [HTTP] Request idempotency key: ecf4ede7-9e3e-4472-96a1-1c5a3d339d0c
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"firstMatch":[{"appium:app":"scanmobile_e2e/e2e/utils/apps/tested.apk","appium:fullReset":true,"appium:clearSystemFiles":true,"platformName":"Android","appium:automationName":"UiAutomator2","appium:deviceName":"MC18N0","appium:allowTestPackage":true,"appium:udid":"17117523021209","appium:platformVersion":"5.1.1","appium:appWaitPackage":"com.budgetbox.appmetromc","appium:appWaitActivity":"com.budgetbox.mcspecific.diagnostic.ui.DiagnosticActivity","appium:settings[shutdownOnPowerDisconnect]":[false]}]},"desiredCapabilities":{"app":"scanmobile_e2e/e2e/utils/apps/tested.apk","fullReset":true,"clearSystemFiles":true,"platformName":"Android","automationName":"UiAutomator2","deviceName":"MC18N0","allowTestPackage":true,"udid":"17117523021209","platformVersion":"5.1.1","appWaitPackage":"com.budgetbox.appmetromc","appWaitActivity":"com.budgetbox.mcspecific.diagnostic.ui.DiagnosticActivit
@arthuRHD
arthuRHD / gist:59c0478b9fa4233e339a7f1719920722
Last active August 3, 2020 15:23
log_error_boolean_parsing
[Appium] New AndroidUiautomator2Driver session created successfully, session 90ffea58-97d7-4b61-a318-a5d71bf6a875 added to master session list
[Appium] Applying the initial values to Appium settings parsed from W3C caps: {"shutdownOnPowerDisconnect":[false],"fixImageTemplateSize":false,"getMatchedImageResult":true,"imageMatchThreshold":0.33694}
[UiAutomator2] Found some settings designed to be handled by BaseDriver: ["fixImageTemplateSize","getMatchedImageResult","imageMatchThreshold"]. Not sending these on to the UiAutomator2 server and instead setting directly on the driver
[debug] [BaseDriver] The value of 'fixImageTemplateSize' setting did not change. Skipping the update for it
[UiAutomator2] Forwarding the following settings to the UiAutomator2 server: ["shutdownOnPowerDisconnect"]
[debug] [WD Proxy] Matched '/appium/settings' to command name 'updateSettings'
[debug] [WD Proxy] Proxying [POST /appium/settings] to [POST http://127.0.0.1:8200/wd/hub/session/24f6cae8-b1b6-4f59-bd9d-2413d0ed90d1/appium/setti