Skip to content

Instantly share code, notes, and snippets.

View bugparty's full-sized avatar
🎯
Focusing

Bowen Han bugparty

🎯
Focusing
View GitHub Profile
@bugparty
bugparty / kobuki_install.sh
Created May 22, 2024 04:17
kobuki install script
#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e
# Install ROS Noetic Kobuki core packages
echo "Installing ROS Noetic Kobuki core packages"
sudo apt-get install -y ros-noetic-kobuki-core
# Install additional dependencies
@bugparty
bugparty / ros1_kobuki.sh
Last active May 22, 2024 05:41
install ros1 and kobuki
#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e
# Function to install ROS Noetic
install_ros() {
echo "Setting up sources.list for ROS Noetic"
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
@bugparty
bugparty / bcache-status
Last active February 17, 2025 23:59 — forked from damoxc/bcache-status
#!/usr/bin/env python3
#
# Dumb script to dump (some) of bcache status
# Copyright 2013 Darrick J. Wong. All rights reserved.
#
# This file is part of Bcache. Bcache is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
@bugparty
bugparty / room_bandwith_test_steamdeck.cpp
Created June 16, 2025 03:38
steamdeck room hip gpu bandwidth test
#include <hip/hip_runtime.h>
#include <iostream>
#include <chrono>
#include <hip/hip_fp16.h>
#include "utils.hpp"
#define N (2047 * 1024 * 1024) // MB
#define THREADS_PER_BLOCK 256
__global__ void read_kernel(const int* __restrict__ data, long long* __restrict__ sum_out, size_t count) {
size_t idx = threadIdx.x + blockIdx.x * blockDim.x;
@bugparty
bugparty / nvidia_dgx_spark cuda info
Created November 21, 2025 06:34
nvidia dgx spark cuda info
❯ ./cuda_probe
Detected 1 CUDA device(s)
====================================================
Device 0: NVIDIA GB10
----------------------------------------------------
Total global memory : 122572 MiB
Shared mem per block : 49152 bytes
Registers per block : 65536
Warp size : 32