Skip to content

Instantly share code, notes, and snippets.

View ozgurgulsuna's full-sized avatar
💭
traveling at the speed of light

Ozgur Gulsuna ozgurgulsuna

💭
traveling at the speed of light
View GitHub Profile
div.mermaid {
text-align: center;
}
h6 {
text-align: right;
position: relative;
bottom: 43px;
padding: 0px;
border-bottom: 1px solid #888;

USB drive that boots up to a Linux environment to read papers, comment on them and think freely.

bspwm-ok-a-lil-bit-of-what-might-be-my-main-colorscheme-and-v0-wgkt4yor2asb1

features

  • light, nice looking environment
  • [[Pomodoro]] timer
  • Wi-Fi, Ethernet support

TI C2000 Launchpad Initialization
METU PowerLab 2022

TI C2000 MCU Initializaiton from Scratch

This document is prepeared to standartize our way of creating a new project on C2000 family microcontrollers. In acts as a guide to prepare for a new project on a TMS320F29379D Launchpad boards with a fresh install on windows. The software developement kit is specified as C2000Ware and its expansions such as MotorControl pack and DigitalPower pack with offline installation.

%%
clc
clear all
%%
a = imread('C:\Users\ozgur\Desktop\sxs.jpg');
imshow(a);
[RGBdata, map, alpha] = imread('C:\Users\ozgur\Desktop\sxs.jpg', 'jpg');
%% Filter out white
@ozgurgulsuna
ozgurgulsuna / CustomColorbar.m
Last active August 12, 2022 16:38
matlab, colorbar, colormap
%%
clc
clear ;
close all
%%
figure;
set(gcf,'Position',[0 0 1000 500]);
set(0,'defaulttextinterpreter','latex');
set(gca,'TickLabelInterpreter','latex') ;
%%
@ozgurgulsuna
ozgurgulsuna / markdown-magic.md
Last active August 5, 2022 10:53
Github flavored markdown and html snippets

Introduction
Ozgur Gulsuna

/////////////////////////////////////////////////////////
@ozgurgulsuna
ozgurgulsuna / Remote_Program_TM4C123G_from_Linux.md
Last active October 26, 2022 08:41
Texas Instruments, TM4C123G, LaunchPad, Linux, USB/IP, USB Redirection, RDP.

Remote Program TM4C123
Ozgur Gulsuna

Middle East Technical University 2022
@ozgurgulsuna
ozgurgulsuna / rdp_fixes.md
Last active July 19, 2022 13:58
xrdp , rdesktop, x session, problem, solution

Common Problems and Solutions with RDP

  • Problem #1 : XgetWindowProperty Failed

Observed with linux machine trying to connect to another linux machine with xrdp installed.

[ozgur@ozgur ~]$ rdesktop -u <USERNAME> -p <PASSWORD> <IP>
Connection established using plain RDP.
Clipboard(error): xclip_handle_SelectionNotify(), XGetWindowProperty failed
Clipboard(error): xclip_handle_SelectionNotify(), unable to find a textual target to satisfy RDP clipboard text request
Clipboard(error): xclip_handle_SelectionNotify(), XGetWindowProperty failed
@ozgurgulsuna
ozgurgulsuna / InitPicoArchLinux.bash
Last active May 10, 2022 20:11
Raspberry Pi Pico C/C++ Programming on Manjaro/Arch Linux Setup and No-Boot-Button Guide
# Start with installing dependencies
# Manual insallation might be required for some refer to https://dev.to/nabbisen/installing-aur-packages-bdf
sudo pacman -Sy minicom openocd cmake arm-none-eabi-gcc arm-none-eabi-newlib gcc
# clone all the base repos in a dependency folder
git clone https://github.com/raspberrypi/pico-sdk.git
git clone https://github.com/raspberrypi/pico-examples.git
git clone https://github.com/raspberrypi/pico-extras.git
git clone https://github.com/raspberrypi/pico-playground.git