Skip to content

Instantly share code, notes, and snippets.

View clouedoc's full-sized avatar
🦀
Learning Rust for fun&profit

Camille Louédoc-Eyriès clouedoc

🦀
Learning Rust for fun&profit
View GitHub Profile
@clouedoc
clouedoc / Dockerfile
Created October 21, 2021 10:13
Add 3proxy to an alpine Dockerfile
FROM alpine
ENV THREEPROXY_VERSION=0.9.4
# Install 3proxy to /usr/local/bin
RUN apk add alpine-sdk && \
export DIR=$(mktemp -d) && cd $DIR && \
wget https://github.com/3proxy/3proxy/archive/refs/tags/${THREEPROXY_VERSION}.tar.gz && tar -xf ${THREEPROXY_VERSION}.tar.gz && mv 3proxy* 3proxy && \
cd 3proxy && \
make -f Makefile.Linux || true && \
@clouedoc
clouedoc / 3proxy_install.sh
Last active October 21, 2021 09:48
3Proxy installation instructions for MacOS
cd /tmp
git clone https://github.com/3proxy/3proxy.git
cd 3proxy
ln -s Makefile.unix Makefile
make || true # ignore final installation step errors
sudo mv ./bin/3proxy /usr/local/bin
echo "3proxy installed!"
cd ../
sudo rm -rf ./3proxy
echo "cleanup done"
@clouedoc
clouedoc / migration.md
Last active June 9, 2021 05:30
Migrating from VSCode Insiders to VSCode Stable

Migrating from VSCode Insiders to VSCode Stable

The problem with VSCode Insiders is that it's unstable, and you have to fix issues every few days to have it still running properly.

This guide will help you with replicating your VSCode Insiders profile into VSCode Stable. There's no automated way of doing it.

1. Remove all extensions from VSCode Stable

Do it manually.

@clouedoc
clouedoc / multilogin_puppeteer.md
Created April 21, 2021 22:01
Unofficial documentation of Multilogin + puppeteer

clouedoc's Multilogin documentation

net::ERR_INVALID_AUTH_CREDENTIALS

When using a proxy with authentication, this error does come up.

The solution is to:

  1. add delay
  2. make the page go to a dummy URL first (httpbin.org/ip) and handle the ERR_INVALID_AUTH_CREDENTIALS error by throwing a warning
@clouedoc
clouedoc / triple-click.md
Last active April 14, 2021 13:02
Studying triple click's event flow

Studying triple click's property

When should we send mousedown and mouseup events?

document.querySelector('body').onmousedown = () => console.log('mousedown; ' + new Date().getSeconds() + ":" + new Date().getUTCMilliseconds())
document.querySelector('body').onmouseup = () => console.log('mouseup; ' + new Date().getSeconds() + ":" + new Date().getUTCMilliseconds())

Gives:

@clouedoc
clouedoc / antidetect.md
Created April 13, 2021 20:40
puppeteer-extra-plugin-stealth evasions for Antidetect browsers (Multilogin)

puppeteer-extra-plugin-stealth evasions for antidetect browsers

Multilogin

To check

Everything

Not needed

@clouedoc
clouedoc / podman-macos.md
Last active April 3, 2021 08:33
Installing Podman on MacOS using Vagrant (Arch Linux flavor). Last updated: april 2021

Installing Podman on MacOS

There is no standard or easy way to install Podman on your machine. So here is my flavour. I want it straightforward, easy to comprehend, and lighter than alternatives.

Introducing the Vagrant X Podman method, that I've just stolen from this blog post and modified to use Arch Linux instead.

The goal is to install an Arch Linux virtual machine using Vagrant, install podman on it, and then connect to it using podman-remote from the MacOS host.

Creating an Arch Linux podman-server guest.

@clouedoc
clouedoc / convert_parallels_to_iso.md
Created November 10, 2020 07:40
How to convert a parallels Virtual Machine to an ISO file ?

Converting a Parallels Virtual Machine to an ISO File

The method consists of using a GParted live CD (well, virtual ISO) that you boot on your virtual machine. Note that you'll have to change the boot order.

@clouedoc
clouedoc / cartflows_mautic_contact_tracking.html
Created February 22, 2020 19:14
CartFlows automatic Mautic contact information population - can be used to send abandonment carts(not RGPD compliant !)
<!-- NOTE: concerning phone number validation; replace FR with your targeted country code -->
<!-- libphonenumber-mex: validation du numéro de téléphone -->
<script src="https://unpkg.com/[email protected]/bundle/libphonenumber-max.js"></script>
<!-- choppage des informations du visiteur -->
<script>
function deferMauticJQuery(method) {
if (Boolean(window.jQuery) && Boolean(window.MauticJS)) {
method();
@clouedoc
clouedoc / cartflows_facebook_advanced_mapping.html
Last active February 21, 2020 21:55
Enable Facebook Pixel Advanced Mapping with CartFlows
<!-- replace FACEBOOK_PIXEL_ID with your Facebook Pixel's ID -->
<!-- place this script in the "Custom Script" section of your CartFlows step -->
<!-- this will send user checkout informations to Facebook when one of the following buttons are clicked: the next tab button (bottom of first step) or the second tab button (at the top of the two columns checkout) -->
<!-- let's make this bread!! -->
<script>
// this function will execute the given method when jQuery becomes available
function defer(method) {
if (window.jQuery) {
method();