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
@ozgurgulsuna
ozgurgulsuna / bambulab-discover.ps1
Created August 22, 2024 16:36 — forked from fritzw/bambulab-discover.ps1
PowerShell script to make BambuStudio discover a specific printer by IP address, even if it is not on the same subnet (see BambuStudio Issue #702)
# Send the IP address of your BambuLab printer to port 2021/udp, which BambuStudio is listens on.
#
# Ensure your PC has firewall pot 2021/udp open. This is required as the proper response would usually go to the ephemeral source port that the M-SEARCH ssdp:discover message.
# But we are are blindly sending a response directly to the BambuStudio listening service port (2021/udp).
#
# Temporary solution to BambuStudio not allowing you to manually specify the Printer IP.
#
# Author(s): gashton <https://github.com/gashton>, Fritz webering <https://github.com/fritzw>
#
param (
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