Skip to content

Instantly share code, notes, and snippets.

View ysonggit's full-sized avatar
:octocat:

Yang Song ysonggit

:octocat:
View GitHub Profile
@vfdev-5
vfdev-5 / README.md
Last active August 14, 2023 11:00
ROS development on MacOSX using docker

ROS development on MacOSX using docker

We need to use docker-machine to handle USB ports inside the docker.

Docker Machine (0.16.1)

@bb01100100
bb01100100 / kafka-change-replication-factor
Last active October 7, 2024 04:47
Change the replication factor for an existing Kafka topic by nominating a new set of replicas
#!/bin/bash
# Author: Kel Graham
# Date: 2022-05-19
# Purpose: Increase the replication factor of one or more topics, using only
# a connection to the Kafka broker (no Zookeeper, REST APIs etc)
# and the standard kafka-topics, kafka-reassign-partitions scripts
# that come with Kafka.
#
@dlime
dlime / CMakeLists.txt
Last active May 12, 2025 13:50
Install Google Test and Google Mock on Ubuntu
cmake_minimum_required(VERSION 3.5)
project(example LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(GTest REQUIRED)
include_directories(${GTEST_INCLUDE_DIRS})