Skip to content

Instantly share code, notes, and snippets.

View kizilkayabayram's full-sized avatar
🎯
Focusing

Bayram Kızılkaya kizilkayabayram

🎯
Focusing
View GitHub Profile
@kizilkayabayram
kizilkayabayram / install_mongoxx.sh
Created September 13, 2022 06:11
install mongoxx
#$/bin/bash
cd /tmp \
&& curl -OL https://github.com/mongodb/mongo-c-driver/releases/download/1.17.2/mongo-c-driver-1.17.2.tar.gz \
&& tar xzf mongo-c-driver-1.17.2.tar.gz \
&& cd mongo-c-driver-1.17.2 \
&& mkdir cmake-build \
&& cd cmake-build \
&& cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF .. \
&& make \
&& make install \
@kizilkayabayram
kizilkayabayram / README.md
Last active July 6, 2021 14:17
Jetson AGX Docker config
  • 1 Runtime config enables Cuda
  • 2 -H parameter enables docker server at port 2376 for jenkins builds
@kizilkayabayram
kizilkayabayram / sanitizers.cmake
Created March 19, 2021 13:17
cmake sanitizers
#
# Copyright (C) 2018 by George Cave - gcave@stablecoder.ca
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@kizilkayabayram
kizilkayabayram / exc.sh
Last active March 2, 2021 10:33
rosbag record exclude lidar regex
#!/bin/bash
rosbag record -a -O data.bag -x "/(.*)packets|/(.*)points|/laser_cloud(.*)|/velodyne(.*)|/scan_sim"
@kizilkayabayram
kizilkayabayram / clear_serial.c
Created March 1, 2021 16:20
Linux clear serial buffer
#include <termios.h>
int main(){
char *portname = "/dev/ttyUSB1"
// termios options here
int fd = open (portname, O_RDWR | O_NOCTTY | O_SYNC);
ioctl(fd, TCFLSH, 0); // flush receive
ioctl(fd, TCFLSH, 1); // flush transmit
ioctl(fd, TCFLSH, 2); // flush both
@kizilkayabayram
kizilkayabayram / sig_handle.c
Last active March 1, 2021 16:15
C signal handling
#include <signal.h>
volatile sig_atomic_t stop;
void inthand(int signum)
{
stop = 1;
}
int main(){