sudo apt install texlive-science texlive-latex-extra texlive-extra-utils texlive-publishers
sudo apt-get install perl-tk
tlmgr --version
tlmgr init-usertree
tlmgr --gui
This file contains hidden or 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
| <# | |
| .SYNOPSIS | |
| Recursively converts PNG images to JPG in a given directory. | |
| Moves original PNG files to a png-backups directory. | |
| Ensures unique filenames using timestamps if necessary. | |
| Converts transparent PNGs to JPG with white background using ImageMagick. | |
| .USAGE | |
| Right-click -> Run with PowerShell (or execute in a terminal): | |
| ./convert_png_to_jpg.ps1 "C:\Path\To\Directory" |
This file contains hidden or 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
| #!/bin/bash | |
| # This script recursively converts PNG images to JPG images in a given directory. | |
| # It moves original PNG files to a png-backups directory. | |
| # Ensures unique filenames using nanoseconds if necessary. | |
| # Converts transparent PNGs to JPG with a white background. | |
| # Make it executable: | |
| # chmod +x convert_png_to_jpg.sh | |
| # Run the script: | |
| # ./convert_png_to_jpg.sh /path/to/directory |
This file contains hidden or 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 tkinter as tk | |
| from tkinter import ttk, messagebox | |
| from datetime import datetime, timedelta | |
| # Global timeline list: each item will be an event (session or break) | |
| timeline = [] | |
| # ------------------------------- | |
| # Event class to store details | |
| # ------------------------------- |
This file contains hidden or 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
| # ------------------------------------------------------------------------------------------------------------------- | |
| # Description: This script is used to pick HSV color threshold for a given image. | |
| # See down below for the other script that captures a colored object in real time. | |
| # import cv2 | |
| # import argparse | |
| # import numpy as np | |
| # def nothing(x): | |
| # pass |
This file contains hidden or 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
| #!/bin/bash | |
| # Define source and destination directories | |
| src_dir="./generated_plans_i9_10885h" | |
| dst_dir="${src_dir}_bag_files" | |
| # Create the new bag files directory | |
| mkdir -p "$dst_dir" | |
| # Find and move all .bag files while maintaining folder structure |
This file contains hidden or 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
| #!/bin/bash | |
| # Speed Up All Videos Script using ffmpeg | |
| # This script speeds up all .mp4 video files in the current directory using ffmpeg. | |
| # By default, the output videos will have no sound. | |
| # | |
| # Install: | |
| # sudo apt install ffmpeg | |
| # | |
| # Save this script as: speedup_all_videos.sh |
This file contains hidden or 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
| #!/bin/bash | |
| # Speed Up Video Script using ffmpeg | |
| # This script speeds up a video file using ffmpeg. | |
| # By default, the output video will have no sound. | |
| # | |
| # Install: | |
| # sudo apt install ffmpeg | |
| # | |
| # Save this script as: speedup_video.sh |
This file contains hidden or 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
| SAWYER SIMULATOR SETUP | |
| Date: Tue 17 Mar 2020 05:20:31 PM EDT | |
| Author: Burak Aksoy | |
| STEPS FOR A FRESHLY INSTALLED UBUNTU 18.04 | |
| ------ | |
| NOTE: | |
| -A question: Can I use Ubuntu Xenial(16.04) and ROS kinetic instead of Bionic and Melodic? | |
| -Answer: The teach pendant will be targeting a minimum Python version of 3.6. Version 3.6 added some important features like type hints. Unfortunately Ubuntu Xenial uses Python 3.5, so we will need to use a minimum of Ubuntu Bionic. |