Skip to content

Instantly share code, notes, and snippets.

View tspannhw's full-sized avatar
💭
Unstructured Data, Vector Database, Cloud, AI, Edge, Streaming, SQL

Timothy Spann tspannhw

💭
Unstructured Data, Vector Database, Cloud, AI, Edge, Streaming, SQL
View GitHub Profile
@cobaohieu
cobaohieu / fix-os-upgrade.md
Last active June 11, 2025 05:45
fix Your python3 install is corrupted. Please fix the '/usr/bin/python3' symlink.

sudo apt install --reinstall python3

sudo apt install --reinstall python

`` sudo update-alternatives --remove-all python

echo ""
echo ""
echo "▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔"
echo " Building Schemas"
echo ""
echo "▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔"
echo ""
echo ""
#
@Mob97
Mob97 / mxnet-xavier.md
Last active December 3, 2020 15:14
MXNET on Nvidia Xavier

Python Dependencies

To use the Python API you need the following dependencies:

sudo apt update
sudo apt -y install \
                        build-essential \
                        git \
                        graphviz \
 libatlas-base-dev \
@NISH1001
NISH1001 / plates.py
Created May 24, 2020 13:29
Process plate images for stopmotion video
#!/usr/bin/env python3
from tqdm import tqdm
import glob
import os
import sys
import cv2
import matplotlib.pyplot as plt
import numpy as np
@ehab-qadah
ehab-qadah / SlackApiClient.java
Last active February 16, 2024 10:32
Spring boot java slack API client to send messages and reply to it (thread) with retries
package com.qadah.slack;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.http.HttpEntity;
@narendrans
narendrans / Main.java
Last active May 30, 2023 10:38
Dremio JDBC example
// Requires JDK 1.8
// Run it with:
// javac Main.java && java -cp .:dremio-jdbc-driver-20.0.0-202201050826310141-8cc7162b.jar Main
// If the output in terminal shows the following then the test is successful.
// Printing the result
// -------------------
// User: dremio
// -------------------
import java.sql.*;
@andredurao
andredurao / docker-cheat-sheat.md
Created August 6, 2019 19:04 — forked from dwilkie/docker-cheat-sheat.md
Docker Cheat Sheet

Build docker image

$ cd /path/to/Dockerfile
$ sudo docker build .

View running processes

#!/usr/bin/env bash
sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm
sudo yum update -y
sudo yum install xz-devel -y
sudo yum install -y python34u python34u-libs python34u-devel python34u-pip
#sudo yum install centos-release-scl -y
#sudo yum install rh-python34 -y
# need to run outside . scl enable rh-python34 bash
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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
# distributed under the License is distributed on an "AS IS" BASIS,
@dusty-nv
dusty-nv / nano-read-mac.sh
Created June 7, 2019 19:49
Tool to read the real MAC address of a Jetson Nano
#!/bin/bash
#
# This script reads the correct MAC address of a Jetson Nano from the onboard EEPROM over i2c.
# First install i2c-tools package. Then make this script executable, and run it with sudo:
#
# $ sudo apt-get install i2c-tools
# $ chmod +x nano-read-mac.sh
# $ sudo ./nano-read-mac.sh
# MAC address is xx:xx:xx:xx:xx:xx
#