Skip to content

Instantly share code, notes, and snippets.

View Tutorgaming's full-sized avatar
🤖
Beep Boop Beep Beep

iTUTOR Tutorgaming

🤖
Beep Boop Beep Beep
View GitHub Profile
@Tutorgaming
Tutorgaming / topbar_change.sh
Created May 10, 2024 07:51
Mac Osx Ventura - Change Top Bar Spacing
#! /bin/bash
icon_size=$1
defaults -currentHost read -globalDomain NSStatusItemSpacing; defaults -currentHost read -globalDomain NSStatusItemSelectionPadding
echo "Changing icon to size $icon_size"
defaults -currentHost write -globalDomain NSStatusItemSpacing -int $icon_size; defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int $icon_size
@Tutorgaming
Tutorgaming / README.md
Last active January 28, 2024 18:40
colcon_build with src folder only

Colcon_Build :)

This is the simple function to avoid running colcon build in the directory which is not contain folder named 'src/' (which might infer the place which is not the colcon workspace)

i know that removing build/ install/ logs/ is so painful !

@Tutorgaming
Tutorgaming / launch.launch
Created May 22, 2023 09:22
rospy ROS1 Connection Header Secret !
<?xml version="1.0"?>
<launch>
<node pkg="test_pkg" type="quick_publisher.py" name="my_talker_1" output="screen" />
<node pkg="test_pkg" type="quick_publisher.py" name="my_talker_2" output="screen" />
<node pkg="test_pkg" type="quick_publisher.py" name="my_talker_3" output="screen" />
<node pkg="test_pkg" type="quick_publisher.py" name="my_talker_4" output="screen" />
</launch>
@Tutorgaming
Tutorgaming / play_rtsp_nvdec_jetson_agx.py
Last active August 12, 2023 11:30
RTSP Stream through GStreamer + STDOUT on Jetson Xavier AGX
#!/usr/bin/python
"""
RTSP Stream Reader Class for Jetson Xavier AGX
Requirement : Jetpack, OpenCV 4.4 with CUDA-Enabled
Tested RTSP Stream from
- HIKVISION DS-2CD2021-IAX [1280*720 Main-Stream Selected]
CPU Used : 20-35% on Jetson AGX
@Tutorgaming
Tutorgaming / .vimrc
Last active March 26, 2021 12:01
MY VIM SETTING ! - vim_plug
call plug#begin()
Plug 'tpope/vim-fugitive'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-sensible'
Plug 'fratajczak/one-monokai-vim'
Plug 'gosukiwi/vim-atom-dark'
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
@Tutorgaming
Tutorgaming / diff_drive_estimation_simple.py
Last active September 30, 2020 11:10
Differential Drive Kinematics
# Reference
# http://planning.cs.uiuc.edu/node659.html
# Author : C3MX <tutorgaming@gmail.com>
# Global Variables
odom_x = 0.0
odom_y = 0.0
odom_theta = 0.0
# Wheel&Encoder Config
@Tutorgaming
Tutorgaming / raspberry-pi-2-3-and-4-wireless-bridge-ubuntu-server-18.04-arm+netplan.md Raspberry Pi 2/3B/B+/4B Wireless Bridge using Ubuntu Server 18.04 ARM Image and Netplan

Raspberry Pi 2/3B/B+/4B Wireless Bridge using Ubuntu Server 18.04 ARM Image and Netplan

The initial goal of this project is to use the raspberry pi in place of my Wireless Range Extender and then going from 3 wireless networks (2.4ghz, 2.4ghz extended, 5ghz) at home to only one (5ghz). This way I'm reducing the exposition to radio waves for the whole familly at home.

Let's go technical

Ok, enough drama for now, let's go technical. 😁

Setup

@Tutorgaming
Tutorgaming / find_network_setting.bash
Created September 9, 2020 08:30
Raspberry Pi Bash Startup Script
FILE=/boot/wifi-setup.yaml
if [[ -f "$FILE" ]]; then
# Do the copy and apply the netplan profile
echo "$FILE exists."
fi
@Tutorgaming
Tutorgaming / launch.py
Created February 20, 2020 11:31
Playing with Subprocess
#!/usr/bin/python
import subprocess
import time
def bash_command(cmd):
subprocess.Popen(cmd)
def gnome_terminal_open_tab(cmd_list):
"""
Open The Command in tabs
@Tutorgaming
Tutorgaming / look_legs.py
Created February 6, 2020 11:00 — forked from awesomebytes/look_legs.py
Look with PR2 head to closest legs
#!/usr/bin/env python
import rospy
from people_msgs.msg import PositionMeasurementArray, PositionMeasurement
from pr2_controllers_msgs.msg import PointHeadActionGoal
import tf.transformations
from geometry_msgs.msg import PointStamped
"""