Skip to content

Instantly share code, notes, and snippets.

View burakaksoy's full-sized avatar

Burak Aksoy burakaksoy

View GitHub Profile
@burakaksoy
burakaksoy / ubuntu_latex_installation_and_workflow.md
Created September 2, 2025 02:05
My LaTex installation and workflow steps on Ubuntu (20.04)

LaTex installation and workflow steps on Ubuntu (20.04)

Install TexLive

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
@burakaksoy
burakaksoy / convert_png_to_jpg.ps1
Last active March 11, 2025 05:39
Recursively converts PNG images to JPG images in a given directory. Moves original PNG files to a png-backups directory. Alpha channels becomes white
<#
.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"
@burakaksoy
burakaksoy / convert_png_to_jpg.sh
Created March 8, 2025 22:13
Recursively converts PNG images to JPG images in a given directory. Moves original PNG files to a png-backups directory. Alpha channels becomes white
#!/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
@burakaksoy
burakaksoy / study_planner.py
Created February 22, 2025 18:34
Simple daily study scheduler
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
# -------------------------------
@burakaksoy
burakaksoy / color_picker.py
Last active November 18, 2024 04:34
Capture a Colored object in Real time / Color Detection / Find Color object / HSV values / From ROS Subscription or Direct Video Capture
# -------------------------------------------------------------------------------------------------------------------
# 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
@burakaksoy
burakaksoy / move_bag_files.sh
Created September 12, 2024 12:29
Move all bag files in a directory recursively to a new directory with the name extended with "_bag_files".
#!/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
@burakaksoy
burakaksoy / speedup_all_videos.sh
Last active September 23, 2024 14:36
A Quick video speedup bash script for ALL mp4 files in a directory using 'mencoder'
#!/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
@burakaksoy
burakaksoy / speedup_video.sh
Last active September 23, 2024 14:20
A Quick video speedup bash script using 'ffmpeg'
#!/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
@burakaksoy
burakaksoy / SAWYER SIMULATOR SETUP GUIDE.txt
Created March 17, 2020 23:22
Sawyer-Simulation-with-RobotRaconteur-v0.9
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.