Skip to content

Instantly share code, notes, and snippets.

@harunkurtdev
harunkurtdev / install_nvidia_driver.md
Created May 14, 2021 22:11 — forked from espoirMur/install_nvidia_driver.md
How I fix this issue NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

I had many driver installed I my virtual machine , so It was actually the reason why I was having the error.

To fix it I had first to remove all driver I have installed before using :

  • sudo apt-get purge nvidia-*

  • sudo apt-get update

-sudo apt-get autoremove After that I when a head and installed the latest version of it nvidia driver:

@harunkurtdev
harunkurtdev / triangulation.py
Created January 20, 2023 18:45 — forked from davegreenwood/triangulation.py
Triangulate image points to world points comparing openCV to pure python.
from __future__ import print_function
import numpy as np
import cv2
import time
np.set_printoptions(formatter={'float': '{: 0.3f}'.format})
def triangulate_nviews(P, ip):
"""
import 'package:app/app.dart' as app;
class MarkerID {
final String? markerID;
MarkerID({this.markerID});
}
class Marker {
final MarkerID? markerID;
final void onTap;
@harunkurtdev
harunkurtdev / zeromq.sh
Last active August 4, 2023 11:36 — forked from pwichmann/zeromq.sh
How to install ZeroMQ on Ubuntu
#!/bin/bash
# Install required packages and dependencies
sudo apt-get update
sudo apt-get install -y libltdl-dev pkg-config build-essential autoconf automake
# Install libsodium
git clone https://github.com/jedisct1/libsodium.git
cd libsodium
./autogen.sh
@harunkurtdev
harunkurtdev / README.md
Created August 29, 2023 10:05 — forked from corenel/README.md
RTSP Port Forwarding

之前在这里研究过的用iptables配置跨网段的端口转发

Assume we have the following network environments:

  • Device:
    • eth0 (192.168.6.59): for external access
    • enx000ec6a490c5 (192.168.1.2): for ip camera
  • IP Camera:192.168.1.10
  • PC:192.168.6.2
@harunkurtdev
harunkurtdev / keyevents.json
Created September 1, 2023 11:58 — forked from arjunv/keyevents.json
All Android Key Events for usage with adb shell
{
"key_events": {
"key_unknown": "adb shell input keyevent 0",
"key_soft_left": "adb shell input keyevent 1",
"key_soft_right": "adb shell input keyevent 2",
"key_home": "adb shell input keyevent 3",
"key_back": "adb shell input keyevent 4",
"key_call": "adb shell input keyevent 5",
"key_endcall": "adb shell input keyevent 6",
"key_0": "adb shell input keyevent 7",
@harunkurtdev
harunkurtdev / Makefile
Created September 5, 2023 10:29 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
@harunkurtdev
harunkurtdev / chroot-to-pi.sh
Created September 19, 2023 06:44 — forked from htruong/chroot-to-pi.sh
Chroot to pi sd card
#!/bin/bash
# This script allows you to chroot ("work on")
# the raspbian sd card as if it's the raspberry pi
# on your Ubuntu desktop/laptop
# just much faster and more convenient
# credits: https://gist.github.com/jkullick/9b02c2061fbdf4a6c4e8a78f1312a689
# make sure you have issued
@harunkurtdev
harunkurtdev / intel-edison-iot-linux.md
Created January 23, 2024 23:07 — forked from tappoz/intel-edison-iot-linux.md
Getting started with Intel Edison IoT board on a Linux Debian/Ubuntu environment

Make sure the following packages are installed

sudo apt-get install gdebi libncurses5:i386 libstdc++6:i386

Then install the Intel Phone Flash Tool Lite (cfr. their website), the key tool chain Intel provides to flash the Intel Edison board.

sudo gdebi phoneflashtoollite_5.2.4.0_linux_x86_64.deb 

Then you should be able to find the gui (graphical user interface) at /usr/bin/phoneflashtoollite and the cli (command line interface) at /usr/bin/phoneflashtoollitecli.

@harunkurtdev
harunkurtdev / main.py
Last active March 3, 2024 13:37
yolov8-uav
from ultralytics import YOLO
import cv2
import cvzone
import math
import time
classNames = ["uav", "bicycle", "car", "motorbike", "aeroplane", "bus", "train", "truck", "boat",
"traffic light", "fire hydrant", "stop sign", "parking meter", "bench", "bird", "cat",
"dog", "horse", "sheep", "cow", "elephant", "bear", "zebra", "giraffe", "backpack", "umbrella",
"handbag", "tie", "suitcase", "frisbee", "skis", "snowboard", "sports ball", "kite", "baseball bat",