Skip to content

Instantly share code, notes, and snippets.

View AnthonyZJiang's full-sized avatar
🎓
Busy building robots 🤖

Anthony Jiang AnthonyZJiang

🎓
Busy building robots 🤖
View GitHub Profile
@AnthonyZJiang
AnthonyZJiang / extract_pdf.py
Created March 11, 2024 11:22
Python script to extract PDF files embedded in Microsoft Word *.docx files
import olefile
from zipfile import ZipFile
from glob import glob
# How many PDF documents have we saved
pdf_count = 0
# Loop through all the .docx files in the current folder
for filename in glob("*.docx"):
try:
@AnthonyZJiang
AnthonyZJiang / setup_wifi.sh
Created February 15, 2024 15:49
Set up internet access for bridged network for Parallels Desktop Ubuntu
#!/bin/bash
net_interf=enp0s5
vm_ip=192.168.7.172
gateway_ip=192.168.7.1
sudo ip address add ${vm_ip} dev ${net_interf}
sudo ip route add ${gateway_ip} dev ${net_interf}
sudo ip route add default via ${gateway_ip} dev ${net_interf}
@AnthonyZJiang
AnthonyZJiang / readme.md
Last active January 30, 2024 16:02
ros2_bag_play_exclude

Download the script, then

chmod +x ros2_bag_play_exclude.sh
./ros2_bag_play_exclude.sh <ros2_bag_file> /topic_to_exclude /more_topics_to_exclude /wild_card_match*
@AnthonyZJiang
AnthonyZJiang / setup_ubuntu2004.sh
Last active November 14, 2023 15:33
Ubuntu fresh installation setup
#!/bin/bash
# Ubuntu 18.04
# This script prepares a fresh Ubuntu installation for general ROS development
# Define software switches
utilities_enable=true
ros_enable=true
husarnet_enable=true