Skip to content

Instantly share code, notes, and snippets.

View khancyr's full-sized avatar

Pierre Kancir khancyr

View GitHub Profile
try:
from pymavlink import mavextra
except ImportError:
# get path to pymavlink in module directory
pymavlink_relative_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../modules/mavlink/pymavlink')
sys.path.append(pymavlink_relative_path)
import mavextra
@khancyr
khancyr / fortress
Last active January 27, 2022 22:11
ignition
On docker:
install ppa:kisak/kisak-mesa to upgrade mesa
gedit .ignition/gazebo/6/gui.config and change ogre2 to ogre
ogre-next
git clone --branch v2-2 https://github.com/OGRECave/ogre-next --depth 2 --no-single-branch
cmake -G "Ninja" -D OGRE_BUILD_SAMPLES2=1 -D OGRE_USE_BOOST=0 -D OGRE_CONFIG_THREAD_PROVIDER=0 -D OGRE_CONFIG_THREADS=0 -D CMAKE_BUILD_TYPE=Release ../
echo "deb https://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-stable/xUbuntu_21.04/ ./" | sudo tee -a /etc/apt/sources.list.d/zmq.list
@khancyr
khancyr / Dockerfile
Created March 31, 2022 19:40
ArduPilot ignition plugin dirty builder
FROM ubuntu:20.04
WORKDIR /ardupilot_ignition
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install --no-install-recommends -y \
lsb-release \
sudo \
software-properties-common \
wget \
@khancyr
khancyr / create500logs.py
Last active May 4, 2022 11:40
create500logs.py
#!/usr/bin/env python
from pathlib import Path
from shutil import move
import random
import time
# ArduPilot SITL Logs path
LOGSPATH = Path("logs")
if LOGSPATH.exists() and any(LOGSPATH.iterdir()):
print("Backing up current log directory")
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from webdriver_manager.chrome import ChromeDriverManager
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.action_chains import ActionChains
import time
login5.spotify.com
spclient.wg.spotify.com
open.spotify.com
api-partner.spotify.com
partners.wg.spotify.com
api.spotify.com
@khancyr
khancyr / calendy.py
Created January 9, 2025 10:56
calendy
import requests
import time
from datetime import datetime, timedelta
from faker import Faker
# we'll use Faker to generate fake names, emails, etc
fake = Faker()
starting_url = "https://calendly.com/tanguy-12/1-reunion-presentation-30min-clone/"
scheduling_link_uuid="3g3-bw9-g7j"
@khancyr
khancyr / finding
Created January 28, 2026 18:22
Jdrone
sudo iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -d 192.168.144.0/24 -j MASQUERADE
on the drone
and sudo ip route add 192.168.144.0/24 via 192.168.0.90 on laptop
To access the drone subnet