The plugin for xbar, thath detects a high CPU consuming process (>50% CPU by default) and shows it in the top menu bar. If there is no high CPU usage the plugin stays quiet.
This file contains 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
// Copyright (c) 2024 Oleg Kalachev <okalachev@gmail.com> | |
// Flip controller for the Flix drone https://github.com/okalachev/flix | |
// Video and details: https://t.me/opensourcequadcopter/21 | |
#define BOUNCE_TIME 0.6 | |
#define ACCELERATE_TIME 0.07 | |
#define BRAKE_TIME ACCELERATE_TIME | |
enum { |
This file contains 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
#!/usr/bin/env python3 | |
# Read and parse USB data from KingKong/LDARC Tiny X8 2.4G 8CH Radio Transmitter | |
# Usage: ./tiny_rc.py <device_path> | |
# Example: ./tiny_rc.py /dev/tty.usbserial-210 | |
# Author: Oleg Kalachev <okalachev@gmail.com> | |
# https://github.com/okalachev |
This file contains 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
#!/usr/bin/env python3 | |
import rospy | |
from geometry_msgs.msg import PoseStamped | |
from gazebo_msgs.msg import LinkStates, ModelStates | |
rospy.init_node('groundtruth_pose') | |
pose_pub = rospy.Publisher('groundtruth', PoseStamped, queue_size=1) | |
# uncomment to loop groundtruth pose to vision pose input: |
This file contains 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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""MAVLink Monitor | |
Monitor MAVLink packages from a serial port, UDP, or TCP link. | |
Usage: | |
mavlink_monitor.py [--dialect=<dialect>] [-b] <url> | |
mavlink_monitor.py (-h | --help) | |
Options: | |
--dialect=<dialect> MAVLink dialect [default: common] |
This file contains 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
import requests | |
r = requests.get('http://192.168.11.136:5000', params={'foo': 123}) | |
print(r.text) |
This file contains 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
#!/usr/bin/env python3 | |
# Fetch all GitHub repo stargazers | |
# Usage: REPO=<username>/<repo> ./stars.py | |
# Results are saved in JSON and TXT format into ./<username>-<repo>/ directory (by timestamp) | |
import os, os.path | |
from datetime import datetime | |
import requests | |
import json |
This file contains 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
TAG=<tag_name> && git tag -d $TAG && git push --delete origin $TAG |
This file contains 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
#!/usr/bin/env bash | |
# Usage: copy <filename> | |
SSH=($SSH_CONNECTION) | |
echo scp $1 $(whoami)@${SSH[2]}:$(pwd) |
NewerOlder