Skip to content

Instantly share code, notes, and snippets.

@CarlosGTrejo
CarlosGTrejo / package.xml
Last active March 25, 2025 01:28
ROS 2 PX4 Example App
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>subscriber_app</name>
<version>0.0.0</version>
<description>Simple example app to read altitude from gazebo px4</description>
<maintainer email="carlos@todo.todo">carlos</maintainer>
<license>Apache-2.0</license>
<exec_depend>rclpy</exec_depend>
@CarlosGTrejo
CarlosGTrejo / aleks.js
Last active October 18, 2023 19:50
ALEKS Missing Features Snippet
/*
Installation:
1. Open Developer Tools
2. Go to Sources
3. Copy and paste the contents of this file
4. Save it
5. Press Ctrl + Enter
Keybinds:
Ctrl + Enter to check answer
@CarlosGTrejo
CarlosGTrejo / Debian Minecraft Server
Last active July 23, 2024 04:47
Minecraft Server Config (systemd unit, interfaces, sshd_config, iptables)
After a fresh install of Debian, run the setup script as root:
(If you're not root run su - root)
bash <(wget -qO- https://gist.githubusercontent.com/CarlosGTrejo/1877195ea8421c5745e36c3ddfff8914/raw/setup.sh)
Create some SSH keys to securely access your server via SSH:
ssh-keygen -t ed25519 -a 100 -C "minecraft"
And send it to your server (not using the root user):
cat ~\.ssh\ed25519.pub | ssh YOUR_USERNAME@192.168.1.10 "mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys && chmod -R go= ~/.ssh && cat >> ~/.ssh/authorized_keys"